Tag: kafka
All the articles with the tag "kafka".
-
Same cancellation, different events: why I put event classification in one place with an outbox
When the resulting state is the same "cancelled" but the receiver wants a different event depending on the situation, where should the event type be decided? I compared three options: the producer passes a reason, a second detector writes the event, or the consumer classifies the state transition. With an outbox whose rows commit separately, two deciders could announce the same cancellation twice. The example is an unpaid booking passing its payment deadline.
-
When equals/hashCode Goes Wrong: A Duplicate Payment Incident Post-Mortem
A deep dive into how forgetting to override hashCode() while implementing equals() caused duplicate payments. Includes Kafka TopicPartition analysis, HashMap internals, and code review checklists.