How do you test a service that processes events from a queue, for example from Kafka, and how do you deal with asynchrony in automated tests?
~4 min by voice
How to approach it
This checks whether you understand the nature of a message broker (at-least-once, ordering only within a partition, asynchrony) and can turn those properties into concrete, stable automated tests instead of relying on sleep and the happy path.
The interviewer will ask this question and listen. Think out loud and ask for a hint if you need one. When you're done, pause or tap “That's my answer”. In about a minute, your score and the points you covered show up here.