phantom event
An event published to Kafka for a change that never made it into the database.
In more detail
It happens in a dual write when Kafka is written first and the database write then fails. Consumers act on something that does not exist.
Related terms
- dual write — Writing the same change to two separate systems, such as a database and a message broker, from application code with no shared transaction.
- transactional outbox — Saving an event into an outbox table in the same database transaction as the business change, then having a separate worker publish it.
Taught in
- Dual Writes And Why They Lose Data — Apache Kafka & Event Streaming