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

  1. OutboxNaive: event lostOutbox: duplicate, no loss
  2. Retry commitRecord lost on crashBug reported · fix verified
  3. Stale decisionOne row can keep the wrong decision
  4. Ordered keyKey order kept after crash
  5. PostgreSQL replayOne row after crash
  6. Silent ack failuresAck failures not loggedBug reported · fix verified
  7. Share-group lockSame record delivered 5×Bug confirmed by maintainer

All findings, with systems, versions and limits →

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)
Record lost on crash

Tested: Quarkus 4.0.1 · SmallRye 5.0.0 · Kafka 4.2.1 · one partition · one forced-kill schedule

Reproduce

mvn -pl loss-fuzzer verify

Issue #3655 · PR #3656 — Reported; proposed fix verified on a real broker

Latest posts

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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