InterviewTreedInterviewTreed

The question library

Technical interview questions and answers

Explore practical questions, clear explanations, and code examples across developer technologies.

Showing 2521–2532 of 3610 questions

Messaging & Event StreamingIntermediate1 min read

Why can messages be duplicated?

Duplicates can arise when a broker redelivers after missing acknowledgements, a producer retries after an ambiguous timeout, or a consumer crashes after applying a side effect but before committing progress.

Messaging & Event StreamingIntermediate1 min read

How can a consumer deduplicate messages?

A consumer can store each message's stable event ID in a processed-message table with a unique constraint in the same database transaction as its business update.