Development Tools

Ktor – asynchronous application framework

Ktor is a framework for developing connected applications, including HTTP services, web applications and clients. It provides separate server and client libraries built around asynchronous request processing and structured concurrency. Developers can use the framework for applications that communicate over HTTP without adopting a large collection of unrelated application components.

The framework follows a modular design in which functionality is added through plugins. Server applications define routes and handlers for incoming requests, while client applications use an HTTP client engine to communicate with remote services. Both sides support features such as content negotiation, authentication and request processing. Ktor is particularly useful when asynchronous I/O is central to an application’s design, as coroutine-based operations allow network requests and other tasks to be handled without dedicating a separate operating-system thread to every waiting operation.

This is free and open source software.

Key Features

  • Coroutine-based asynchronous request processing.
  • HTTP server routing with nested routes and parameter extraction.
  • Multiple server engines, including Netty and CIO.
  • Client engines for JVM, JavaScript and supported native targets.
  • Content negotiation and automatic JSON serialisation.
  • Authentication plugins supporting Basic, Digest, Bearer, JWT and other mechanisms.
  • WebSocket connections for bidirectional communication.
  • Server-Sent Events for streaming server updates.
  • Sessions and cookie management.
  • Cross-Origin Resource Sharing configuration.
  • Request compression, caching and content encoding facilities.
  • HTML templating through supported rendering integrations.
  • HTTP client request and response interception.
  • Custom server and client plugins for additional processing.
  • OpenAPI and Swagger UI integration for API documentation.
  • Testing facilities for server routes and HTTP clients.

Website: github.com/ktorio/ktor
Support:
Developer: JetBrains
License: Apache License 2.0

Ktor is written in Kotlin. Learn Kotlin with our recommended free books and free tutorials.


Related Software

Kotlin Web Frameworks
KtorAsynchronous framework for creating microservices, web applications
JavalinSimple web framework for Java and Kotlin
http4kLightweight but fully-featured HTTP toolkit
SparkSimple expressive web framework for Java and Kotlin
KVisionObject oriented web framework for Kotlin/JavaScript
KobwebModern framework for full stack web apps
JoobyModern, performant and easy to use web framework for Java and Kotlin
Vaadin-on-KotlinWeb application framework for building database-backed applications
KiluaComposable web framework
HexagonBuild server applications that run inside a cloud platform

Read our verdict in the software roundup.

Java Web Microframeworks
Spring BootCreate Spring-powered, production-grade applications and services
JavalinSimple web framework for Java and Kotlin
KtorAsynchronous framework for creating microservices, web applications and more
QuarkusKubernetes native Java stack tailored for OpenJDK HotSpot and GraalVM
DropwizardJava framework for developing RESTful web services
SparkSimple expressive web framework for Java
RatpackSimple, capable, toolkit for creating high performance web applications
ArmeriaBuild any type of microservice leveraging your favorite technologies
Light-4JHigh-performance framework designed for cloud-native services
JoobyModern, performant and easy to use web framework for Java and Kotlin
HelidonSet of Java libraries for writing microservices
PippoAims to be easy to use and hack
TakesCompact web framework built around immutable HTTP messages
tinystructModular application framework with a small, flexible core
JoddSet of micro-frameworks and developer-friendly tools and utilities
RapidoidHTTP server and modern Java web framework / application container

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted