Ktor is a framework for building web applications with Kotlin that allows for quickly creating backends. It is a pure Kotlin framework that is unopinionated and supports asynchronous programming and various features like logging, templating, messaging and persistence out of the box. Ktor applications can be deployed to servlet containers or run standalone with embedded servers like Netty or Jetty. The framework is highly performant thanks to its use of Kotlin coroutines and thread pooling. It also supports building RESTful APIs and websockets. The presentation provides examples of implementing common backend services like user registration, verification, subscriptions and chat with Ktor.
6. 6
Ktor vs. Kotlin Frameworks
Mobile BackEnd Development with Ktor
Ktor Http4K Spring
Pure Kotlin Pure Kotlin Needs plug-ins
Kotlin Coroutine Support No Kotlin Coroutine Support 3rd
Party Coroutine Support
No Opentracing or Micrometer Micrometer Opentracing + Micrometer
3rd
Party Swagger Support Swagger Support Swagger Support
Free-marker & Velocity 5 Template Engines Over 7 Template Engines
Supports WebSockets Supports WebSockets Supports WebSockets
Very fast Moderate Speed Slowest Kotlin framework
Google App Engine AWS Lambda Deployment AWS Lambda & App Engine