David Denton, co-creator of http4k, joins host Giovanni Asproni to talk about this lightweight toolkit for building HTTP applications in Kotlin. http4k is built on a simple idea, borrowed from Twitter’s Finagle: A server is just a function that turns a request into a response. Endpoints and clients work the same way. David explains how this makes testing fast and easy, so that whole systems of services can be tested in memory, in milliseconds.
They explore the toolkit’s design choices: no hidden “magic,” very little boilerplate, and API documentation generated straight from the code. David also tours some of http4k’s 220+ modules, including fake AWS services for testing and support for AI tools through MCP. He counsels that testing matters more than ever as AI speeds up coding.
Finally, they discuss when to choose http4k, how to move an existing app to it step-by-step, and how the team uses AI to find security issues.
Brought to you by IEEE Computer Society and IEEE Software magazine.
Show Notes
Related Episodes
- SE Radio 682: Duncan McGregor and Nat Pryce on Refactoring from Java to Kotlin
- SE Radio 537: Adam Warski on Scala and Tapir
- SE Radio 418: Vladimir Khorikov on Functional Programming in Enterprise Applications
- SE Radio 326: Dmitry Jemerov and Svetlana Isakova on the Kotlin Programming Language
Articles and Resources
- Get started with Kotlin – Install, first project, and guides by use case (backend, multiplatform, Android).
- Server as a Function in Kotlin (David Denton, slides) – The talk that introduced http4k.
- http4k-by-example – Complete http4k app built London-TDD style, with outside-in acceptance tests and consumer-driven contracts.
- http4k: Testing – Chaos – The http4k-testing-chaos module (ChaosEngine) for injecting failures via a Filter.
- The London School of Test Driven Development (Emily Bache) – Outside-in, double-loop TDD and “Tell, Don’t Ask” design.
- ApprovalTests – Home of the ApprovalTests libraries, created by Llewellyn Falco.
- Book: Growing Object-Oriented Software, Guided by Tests by Steve Freeman and Nat Pryce (Addison-Wesley, 2009) – The foundational text of the London school.
- OpenAPI Initiative – Official home of the standard.
- Model Context Protocol – Official documentation.
- Jakarta Enterprise Beans (Wikipedia) – Overview, history, and bean types.



