Mostafa Tavassoli
Systems, tested and explained.
I’m Mostafa, a backend engineer. I find out how real systems behave, from Kafka and Kubernetes to Java and databases, and write it down so you don’t have to learn it the hard way.
Findings at a glance
Bugs found in SmallRye Reactive Messaging and Spring for Apache Kafka · 1 confirmed by a maintainer · 2 proposed fixes verified on a real broker
- OutboxNaive: event lostOutbox: duplicate, no loss
- Retry commitRecord lost on crashBug reported · fix verified
- Stale decisionOne row can keep the wrong decision
- Ordered keyKey order kept after crash
- PostgreSQL replayOne row after crash
- Silent ack failuresAck failures not loggedBug reported · fix verified
- Share-group lockSame record delivered 5×Bug confirmed by maintainer
Case file
What does a Kafka consumer lose when it's killed mid-retry?
- 3/4 processed (fail-slow lost)
- 4/4 processed with the proposed fix (one duplicate)
Tested: Quarkus 4.0.1 · SmallRye 5.0.0 · Kafka 4.2.1 · one partition · one forced-kill schedule
Reproduce
mvn -pl loss-fuzzer verifyIssue #3655 · PR #3656 — Reported; proposed fix verified on a real broker
Latest posts
- 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.
- 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.
- 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.
- streamjack 0.4.0 released
The loss fuzzer is now in the streamjack release.
Projects
- streamjack active
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.
- kafka-oncall paused
A read-only investigation lab: did Kafka autoscaling stop, or did Kubernetes fail to schedule pods? Lines up Kafka lag, KEDA, the HPA, and pods.
- failure-lab paused
Reproduce failures. Prove recovery. A hands-on lab for event-driven systems.
- infra-agent-conformance paused
Deterministic security conformance checks for Kubernetes AI agents: forbidden operations and synthetic secret disclosure in sandboxed runs.
Career
- Software Engineer II, Doctolib
- Software Engineer, Hlpy
- Software Developer, Digit
- Web Developer, Impakter
- Frontend Developer, Illimity