CODESEEDSign in
Explore projects
Kotlinadvancedbackend

Reactive Microservice with Kotlin Coroutines

Kotlin microservice with Ktor, coroutines, R2DBC (reactive PostgreSQL), circuit breaker, and distributed tracing with OpenTelemetry.

5 steps

Project steps

  1. 01

    Ktor server

    Ktor configuration with JSON content negotiation, status pages, and routing.

  2. 02

    R2DBC reactive

    Asynchronous queries with R2DBC + Exposed or jOOQ reactive for PostgreSQL.

  3. 03

    Circuit breaker

    Resilience4j CircuitBreaker on external service calls.

  4. 04

    OpenTelemetry tracing

    Automatic request instrumentation with spans and baggage propagation.

  5. 05

    Health & metrics

    Endpoints /health (liveness, readiness) and /metrics for Prometheus.

Recommended resources

Ready to build this?

Fork the repo on GitHub and start building. A mentor will review your code when you open a PR.

5 steps

Tech stack

KotlinKtorR2DBCPostgreSQLOpenTelemetryResilience4j