Topics

Spring Boot and concurrency in Kotlin

Coroutines vs Reactor vs virtual threads for Spring Boot in Kotlin: which to pick, plus validating input and carrying per-request context.

6 posts · newest July 14, 2026

Start with

  1. Coroutines vs Reactor vs Virtual Threads in Kotlin

    Coroutines vs Reactor vs virtual threads for Kotlin on Spring: how each model works, what it costs in debugging and tracing, and which one to pick first.

  2. Validating HTTP Arguments Safely in Kotlin

    Validate HTTP arguments in a Kotlin Spring controller without binding errors: string inputs with defaults, Bean Validation, then a domain type.

For a new Kotlin service on Spring, my default is Spring MVC on virtual threads and Java 25, with coroutines only where a request fans out to several services. Reactor is still the best tool for streaming with backpressure, and a WebFlux service that works doesn’t need a rewrite.

Choosing a concurrency model Link to heading

A Kotlin team on Spring now has three credible ways to keep threads from sitting idle while they wait on I/O: Project Reactor, Kotlin coroutines, and JVM virtual threads. Coroutines vs Reactor vs Virtual Threads in Kotlin compares how each one works, what it costs in debugging and tracing, and which to pick first.

If you’re already on WebFlux, Project Reactor and Why Kotlin Is the Perfect Fit introduces Mono and Flux with the Kotlin extensions, and Waiting Without Blocking in Reactor shows a small pattern for waiting on a condition with delayUntil and Mono.defer.

Handling the request Link to heading

For the language side of Kotlin on the backend, see Kotlin for Java developers.

All posts in this topic