Follow-up · depth 8
Design a small subsystem that relies on Kafka Exactly-Once Semantics
Design a small subsystem that relies on Kafka Exactly-Once Semantics
Answers use simple, clear English.
Quick interview answer
Sketch components, data flow, failure modes, and metrics around Kafka Exactly-Once Semantics. Example shape: Stream processor reads payments, updates balance topic and audit topic atomically in one transaction.
Detailed answer
Mini design using Kafka Exactly-Once Semantics: • Components: API edge, worker/queue, store, and observability. • Data flow: request → Kafka Exactly-Once Semantics-related path → response/async side effects. • Failure modes: timeouts, overload, partial dependency loss. • Metrics: latency, errors, saturation for the Kafka Exactly-Once Semantics path. Guardrails: Outbox table + relay; idempotency keys on consumers. Parent context: Baseline: Idempotent producer + transactional writes (read-process-write in one transaction) give EOS within Kafka. End-to-end EOS needs idempotent sinks or outbox pattern.
Full explanation
Interviewers want a crisp architecture story anchored on Kafka Exactly-Once Semantics, not a buzzword list. Idempotent producer + transactional writes (read-process-write in one transaction) give EOS within Kafka. End-to-end EOS needs idempotent sinks or outbox pattern.
Follow-up questions
Only answered follow-ups are shown — click to open with full answers
Parent context — Kafka Exactly-Once Semantics
Baseline: Idempotent producer + transactional writes (read-process-write in one transaction) give EOS within Kafka. End-to-end EOS needs idempotent sinks or outbox pattern.
View full parent question →