Queues & streams
medium 30 minA message queue stores work between the program that asks for it and the program that does it.
What each level should show
The same question is judged differently for mid, senior and staff.
Mid
Must show
- Explains send, receive, hide and acknowledge
- Names the three guarantees
- Adds a dead letter queue
Will be probed on
- What a crash does at each step
- Why duplicates happen
Stands out
Makes the handler idempotent without being asked.
Senior
Must show
- Chooses queue or stream with a reason
- Limits order to a key
- Sizes workers and the backlog
Will be probed on
- Rebalancing
- Poison messages and order
- What the system behind the workers can take
Stands out
Computes the drain time and asks whether that delay is acceptable.
Staff
Must show
- Weighs a jobs table against a broker
- Plans replay, retention and schema changes
- Names an owner for dead letters
Will be probed on
- Cost of running it
- Many teams on one cluster
- What happens when the broker is down
Stands out
Removes a queue that hides a capacity problem, and shows the numbers.