How do you handle an unknown event type?
A consumer should follow an explicit policy for unknown event types: safely ignore, quarantine, or dead-letter them with observability, depending on the contract.
The question library
Explore practical questions, clear explanations, and code examples across developer technologies.
Showing 2545–2556 of 3610 questions
A consumer should follow an explicit policy for unknown event types: safely ignore, quarantine, or dead-letter them with observability, depending on the contract.
A poison message repeatedly fails because of invalid data, a permanent business-rule violation, or a bug.
Exponential backoff increases the wait between attempts, commonly multiplying the previous delay by a factor until a maximum is reached.
Retry when failure is plausibly transient, such as a temporary network issue or throttling response.
A retry topic or queue stores messages for later reprocessing, often with a delay tier such as short, medium, and long backoff.
Replay only after understanding and fixing the cause, then validate payloads, control the replay rate, and monitor side effects.
The outbox pattern prevents a database update and event publication from diverging when they cannot share a single atomic transaction.
An outbox publisher scans or streams unpublished rows, publishes each event, and marks it delivered only after broker confirmation.
CDC captures database changes from a log or change stream and makes them available to downstream systems.
The dual-write problem occurs when an application separately updates a database and publishes a message.
Do not publish an event before the database transaction that creates its underlying fact is committed, because consumers may observe an event for a change that later rolls back.
Kafka transactions can atomically publish records to multiple Kafka partitions and commit consumed offsets as part of the same Kafka transaction.