Events between services
Event notification, event-carried state transfer, and the channel and message design that lets services stay independent.
Event notification
An event that says only that an order was placed: how the consumer fetches the facts back from the source, what that costs when the source is down, and why it reads current state.
Event-carried state transfer and claim check
Put the whole order in the event so consumers keep a local copy and answer without the source, then keep the large part out of the event with a claim check.
Ordering and partitioning
Kafka orders records only within a partition. Key an order's events by the order id, and hold events in a per-order buffer when the key cannot change.
Optimizing publishers
How the Kafka producer batches, compresses and acknowledges records, which settings change throughput, and how to measure a publisher from Camel.
Optimizing subscribers
How a Kafka consumer fetches, polls and shares partitions, which settings change drain time and duplicates, and how to measure a subscriber from Camel.
Queues for Kafka
A consumer group gives each partition to one worker, so one slow job holds back the jobs behind it. A share group lets any worker take any record and acknowledge it one at a time.