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.
Appendix A: Testing event-driven code
Event-driven code fails by doing too much, too little or in the wrong order, and a test that only waits for the first record sees none of that. Real brokers from Dev Services, a check proved by breaking the code it guards, topic assertions that wait out the window, ordering and concurrency tests, Camel route tests with AdviceWith, registry contracts and end-to-end checks.
Appendix B: Compose to Kubernetes
A compose file and a set of Kubernetes resources describe the same Kafka and PostgreSQL in two vocabularies, and the settings a service silently relied on can be lost in the move. Where each setting lives in the Kafka resource and the CloudNativePG Cluster, and how a comparison of the running systems finds what differs.
Appendix C: Querying streams without ksqlDB
Operations wants deliveries per carrier per minute of event time. Three open source engines answer it from one topic: an interactive query on a Kafka Streams window store, a Flink SQL job that writes closed windows to a topic, and RisingWave materialized views read with psql.
Appendix D: Pattern map, glossary and EIP Camel cross-reference
Every pattern of the book on one map by part, the terms the chapters use in a short glossary, and where Enterprise Integration Patterns with Camel covers the same pattern, by chapter and by event.
Appendix E: Resequencing across partitions in depth
A per-order buffer in PostgreSQL works because an order's events share a key and a database row. When several producers and topics carry one order, only a sequence that spans all of them can restore order, and the Camel Resequencer holds its records in memory.
Appendix F: Deploying event-driven services on minikube
A deployment stops consumers that own partitions. A stop and restart delays records, a rolling update repeats some, a breaking schema change loses them silently, and a blue-green cut-over needs the old group's offsets. Each is run on minikube under a producer that numbers every record.
Appendix G: Write-forward cache with an outbox and CDC
A cache that the request writes cannot commit with the database. A cache that only the events write can lag but never invent an order. The order and its event commit together, Debezium carries the event out, and a route applies it to Redis behind a version guard.
Appendix H: OpenShift Local
The outbox order-service, Strimzi and CloudNativePG on a single-node OpenShift cluster on the workstation. The code is the code from Docker Compose and minikube; what changes is how operators arrive, how the image gets in and who the pod runs as.
Appendix I: Batch processing with Kueue
A batch has an input that ends and a moment when it is done. Each step runs as a Kubernetes Job, the partition is the unit of parallel work, a failed partition is replayed alone, and Kueue decides which Jobs may start. Run on minikube with a Process Manager in Quarkus and Camel.
Appendix J: Operating and testing an AI step
A model call is expensive and its answer is not guaranteed the same twice. Memoize each answer in a committed row keyed by the note so a redelivery reuses it, keep CI deterministic with a mocked model on Dev Services while a live harness exercises the real one, and re-derive recorded analyses when the model pin or prompt version changes without replaying the corpus through the model.