Skip to content
Sharp

Microservice Architecture · interview question

In an event-driven architecture using Kafka, what happens if a consumer is offline when a producer sends an event?

Multiple choiceMediumchapter-18-curatedpremiummicroservice-architecturemessage-brokers-kafka
Choose one answer
Answer and explanation

Correct answer

B. The message is stored in Kafka until the consumer is available

Why

Kafka retains messages in its log, allowing consumers to catch up on missed messages when they come back online. This ensures reliable delivery even when consumers experience downtime.

Test yourself on Microservice Architecture

A free test with instant, explained results. No account needed.

Start free test
All Microservice Architecture questions →