Distribute work or distribute an event#
| Question | Queue-oriented | Pub/Sub-oriented |
|---|---|---|
| Who receives it? | One competing worker typically handles the job | Each independent subscription may receive the event |
| Example | Resize one image | OrderCreated to email, analytics, fraud |
| Backlog | Owned by work queue | Often per durable subscription |
| Purpose | Distribute execution | Fan out a fact |
Products combine both: an event fans out to several subscriptions, and each subscription feeds its own competing worker pool.
Related practice problems
Use the manifest-backed prompts below to apply this lesson in a complete design.
- RabbitMQ exchangesRabbitMQ Documentation
- Apache Kafka introductionApache Kafka Documentation
Reach this point to mark the lesson as read.