streamjack
Kill your Kafka consumer mid-flight and see what you lost: a real broker, a forced kill, a restart, and a verdict for every record.
Posts about streamjack
- Do you need an outbox?
Use an outbox when a committed change without its event is a correctness problem and the database must stay authoritative.
Decision4 min read - Does the outbox pattern prevent lost Kafka events?
A naive dual write lost its Kafka event after the database committed; the outbox delivered at the same crash point but duplicated an event when the relay died after Kafka acknowledged it.
- The outbox pattern: what it actually guarantees
An outbox commits the business change and the intent to publish together, trading a window for lost events for the possibility of duplicate publication.
Deep dive4 min read - What should block a Kafka consumer release?
Block releases on repeatable real-broker checks for lost records and unsafe replay, and run wider crash and timing tests on a schedule.
Decision4 min read - streamjack 0.4.0 released
The loss fuzzer is now in the streamjack release.
Log1 min read - What does a Kafka consumer lose when it's killed mid-retry?
In a concurrent SmallRye delayed-retry run, one unfinished record never came back after restart.
- Can a 'no duplicates' check pass while the stored decision is wrong?
Every tested case left one row, but only an epoch-checked write preserved the newer decision in both write orders.
- Does SmallRye's ordered-by-key processing survive a crash?
The replacement received the unfinished record in every scheduled attempt, and the next record for the same key never started early.
- Does Kafka replay a record after your database already committed?
Kafka redelivered the same record after a post-commit crash, but a unique key prevented a second database row.
- What happens when a 40-second LLM call outlives Kafka's 30-second lock?
A blocked consumer thread let one record reach its five-delivery limit even though deduplication prevented repeated side effects.