Easy Backends for Android Developers with Ktor
summary
Company notification service handling over 1,000,000 monthly messages is rewritten from Python to Kotlin and Ktor, yielding noticeably higher throughput, fewer crash loops, and lower memory use. Architecture reuses Android patterns (MV → controller + repository), uses Koin for DI, Exposed* as the ORM, Firebase Admin via coroutine adapters, Gradle/Kotlin DSL, and Netty/CIO engines. Tests run with Testcontainers and Ktor test engine; mockk and Kotest cover assertions. Demo shows a working subscribe endpoint and end-to-end integration tests.
AI-written summary · about
chapters (13)
- 0:00Introduction and speaker background
- 4:40Challenges with Python backend
- 10:16Why Kotlin for backend
- 13:49Hello world in Ktor
- 20:12Project setup and structure
- 22:01Application architecture
- 25:35Ktor features and routing
- 27:39Building notification service
- 31:50Firebase integration
- 33:36Repository pattern
- 35:43Dependency injection
- 37:06Testing strategies
- 41:04Q&A session
