SpinTheMic
Pro

Interview practice question

Publishing events reliably after a database write

System Design · Databases · Experienced

After saving an order, your service publishes an "order created" event to Kafka. Sometimes the save succeeds but the event is lost. How do you fix it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Dual write problem.
  • Transactional outbox table.
  • Write order + event in same transaction.
  • Relay publishes outbox rows.
  • Consumers must be idempotent.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics