Idempotent Kafka Consumer: Duplicate Writes, Offset Commits and a Second Database
Company: Alibaba
Role: Software Engineer
Category: System Design
Difficulty: medium
Interview Round: Technical Screen
Overview: A backend design discussion on making a concurrent Kafka consumer idempotent: how to stop duplicate effects when the same message is processed twice, whether a duplicate write should throw or return the existing data, how offsets keep advancing, and how to keep a second database consistent when publishing fails.
Read the full Alibaba Software Engineer interview experience this question came from