Put Your Ktor Microservices on Kubernetes Without a JVM!
May 04, 2023
19 min
Free
kotlin
startup-time
memory-usage
ktor
kotlin-native
kubernetes
docker
microservices
jvm
linux
performance-testing
cpu-usage
Description
This lightning talk explores how to compile Ktor applications to a Linux executable using Kotlin Native, then dockerize and run them in Kubernetes. It covers the benefits of smaller container images and faster startup times compared to traditional JVM-based deployments. The presentation includes performance benchmarks for image size, startup time, memory usage, CPU usage, and request duration, highlighting the trade-offs between native compilation and JVM for different use cases.