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 | |
|---|---|
| Ktor | Asynchronous framework for creating microservices, web applications |
| Javalin | Simple web framework for Java and Kotlin |
| http4k | Lightweight but fully-featured HTTP toolkit |
| Spark | Simple expressive web framework for Java and Kotlin |
| KVision | Object oriented web framework for Kotlin/JavaScript |
| Kobweb | Modern framework for full stack web apps |
| Jooby | Modern, performant and easy to use web framework for Java and Kotlin |
| Vaadin-on-Kotlin | Web application framework for building database-backed applications |
| Kilua | Composable web framework |
| Hexagon | Build server applications that run inside a cloud platform |
Read our verdict in the software roundup.
| Java Web Microframeworks | |
|---|---|
| Spring Boot | Create Spring-powered, production-grade applications and services |
| Javalin | Simple web framework for Java and Kotlin |
| Ktor | Asynchronous framework for creating microservices, web applications and more |
| Quarkus | Kubernetes native Java stack tailored for OpenJDK HotSpot and GraalVM |
| Dropwizard | Java framework for developing RESTful web services |
| Spark | Simple expressive web framework for Java |
| Ratpack | Simple, capable, toolkit for creating high performance web applications |
| Armeria | Build any type of microservice leveraging your favorite technologies |
| Light-4J | High-performance framework designed for cloud-native services |
| Jooby | Modern, performant and easy to use web framework for Java and Kotlin |
| Helidon | Set of Java libraries for writing microservices |
| Pippo | Aims to be easy to use and hack |
| Takes | Compact web framework built around immutable HTTP messages |
| tinystruct | Modular application framework with a small, flexible core |
| Jodd | Set of micro-frameworks and developer-friendly tools and utilities |
| Rapidoid | HTTP server and modern Java web framework / application container |
Read our verdict in the software roundup.
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. |


Please read our Comment Policy before commenting.