Event-Driven Patterns with Quarkus and Camel
Build a shipping platform whose services talk through events. You publish order events from Quarkus, move them with Camel routes over Kafka, write them out atomically with the transactional outbox and Debezium, store state as events, process streams, trace every hop in Grafana, and deploy the lot to Kubernetes with Strimzi.
The parts
Each pattern chapter states the problem, shows the Quarkus and Camel code that solves it, and ends with a runnable example on Docker Engine. Parts 0 to 5 run on Docker Compose; Part 6 moves the same services to minikube with Strimzi.
Getting started
The shipping domain, the local stack and a first event through Quarkus, Camel, Kafka and the LGTM observability stack.
Events between services
Event notification, event-carried state transfer, and the channel and message design that lets services stay independent.
Getting events out reliably
The transactional outbox, Debezium change data capture, idempotent consumers and delivery guarantees.
Event sourcing
Events as the system of record: append-only stores, projections, CQRS read models, snapshots and schema evolution.
Processing and coordinating streams
Stateful stream processing, windows and joins, and sagas that coordinate work across services.
Observing event flows
Traces, metrics and logs that follow an event across topics and services, with OpenTelemetry and Grafana LGTM.
Running on Kubernetes with Strimzi
Kafka on Kubernetes with the Strimzi operator: the same services deployed to minikube, then monitoring, Cruise Control, MirrorMaker 2 and Kafka Connect as declared resources.
Appendices
Testing, compose to Kubernetes, querying streams, a pattern map and glossary, resequencing in depth, deploying event-driven services, a write-forward cache, an outbox on OpenShift Local, and batch processing with Kueue.