phase 3 · 3.5-queue-fundamentals
Message queue fundamentals — nats CLI, no Go
prereqs
0.1-backend-mental-model
The lesson for this task hasn't been written yet. The mastery criteria below is the shortest description of what you'll own when this task is green.
Mastery criteria
- Install and run a local nats-server; use the nats CLI to subscribe and publish on a subject
- Explain: pub/sub vs work queue; when you'd want each
- Define and give one example each: at-most-once, at-least-once, exactly-once (and why exactly-once is a lie)
- Explain backpressure: what happens when a consumer is slower than producers
Verify
Run from your go-dojo repo root:
go-dojo verify 3.5-queue-fundamentals
This runs the task's go test suite in exercises/phase-3/3.5-queue-fundamentals/, commits the attempt to .go-dojo/attempts/, and updates your mastery.