SpinTheMic
Pro

Interview practice question

Exactly-once processing for payments

Data Engineering · Kafka Streaming · Experienced

A payments pipeline must never double-count or lose a transaction between Kafka and the ledger database. How do you design it?

What a strong answer covers

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

  • Unique transaction IDs from the source.
  • Idempotent producer and transactions within Kafka.
  • Sink writes idempotent: unique constraint, upsert.
  • Store consumer offsets in the same DB transaction as ledger updates.
  • Reconciliation jobs against source totals.
Practise this topic

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

See all topics