Topic: Distributed systems

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

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

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

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

  9. Does your Kafka share consumer tell you when an acknowledgement fails?

    Spring Kafka's default synchronous share-container path logged nothing when a commit returned a per-partition failure.

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