Databases · Senior · Question 41 of 75

Why is a 'dual write' (write to the database, then publish to Kafka) risky, and what's the alternative?

Explanation

The outbox stores the event in the same transaction as the change; a relay publishes it at least once. Consumers must be idempotent.

Further reading

Problem with a question

Databases · Senior · question 41

Test yourself

Take the Databases · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz