Using Ktor 3.0 with All the Shiny Things
summary
Builds a concrete StackOverflow-question service using Ktor 3.0: shows code to fetch titles/IDs, uses Ktor client notebooks for rapid prototyping, demonstrates unit tests insulated by a mock engine (sample response JSON), wires dependencies with Koin integration, swaps REST for GraphQL and streams with WebSockets, compiles a native executable (startup ~0.003s), adds OpenTelemetry traces, and uses the request-retry plugin. Repository and examples available at the linked GitHub for step-by-step replication.
AI-written summary · about
chapters (20)
- 0:00Intro
- 1:24What makes Ktor different?
- 7:59Prototyping with Kotlin notebook
- 11:19How do we build the service?
- 16:47How did we build the service?
- 17:37What are our test cases?
- 19:38Creating unit tests
- 21:58But wait! There's more...
- 22:46Koin /Ktor integration
- 25:10But wait! There's more...
- 26:00GraphQL
- 28:11WebSockets
- 31:00But wait! There's more...
- 31:28KMP
- 33:33OpenTelemetry
- 35:46Retries
- 39:123.0 Features
- 39:50Conclusion
- 41:41What did we learn?
- 42:34Outro








