Java Quarkus CQRS and EventSourcing microservice example 👋💫✨

This page summarizes the projects mentioned and recommended in the original post on

Our great sponsors
  • Scout APM - Less time debugging, more time building
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • JetBrains - Developer Ecosystem Survey 2022
  • Java-Quarkus-Reactive-CQRS-EventSourcing


    Source code you can find in GitHub repository. The main idea of this project is the implementation of Event Sourcing and CQRS using Java, Quarkus with reactive Vertx, Postgresql and Kafka. Previously have written same articles where implemented the same microservice using Go and EventStoreDB, and Spring,as written before, repeat here, think EventStoreDB is the best choice for event sourcing, but in real life at some projects we usually have business restrictions and for example usage of the EventStoreDB can be not allowed, in this case, think postgres and kafka is good alternative for implementing our own event store. Didn't write in this article about Event Sourcing and CQRS patterns, the best place to read is,blog and documentation of this article is very good too, and as written in the previous article, highly recommend Alexey Zimarev "Hands-on Domain-Driven Design with .NET Core" book and also his blog.

  • jaeger

    CNCF Jaeger, a Distributed Tracing Platform

    Flyway - database migrations.

  • Scout APM

    Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.

  • Vert.x

    Vert.x is a tool-kit for building reactive applications on the JVM

    Reactive approach of Quarkus Vertex or Spring Reactor has some tradeoffs, not all libraries has good integration with it, like tracing, it's harder to debug, writing complicated business logic in reactive functional way is very specific and feels more difficult, and not only for writing and for reading too. Quarkus Vertex with Mutiny in my opinion has much better reactive API, documentation and production ready libraries.

  • Quarkus

    Quarkus: Supersonic Subatomic Java.

    Quarkus - Supersonic Subatomic Java.

  • prometheus

    The Prometheus monitoring system and time series database.

    Prometheus - Prometheus

  • Grafana

    The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.

    Grafana - Grafana

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts