Skip to content
Theory · NATS: subjects and queue groups · lesson 5 of 8

Queue groups

The image service gets photo resize jobs on the subject jobs.resize. One worker can't keep up, so you start two more. Now every photo is resized three times: each worker subscribes to the subject, and each subscription gets its own copy of the message. You need each job to go to only one of the three.

In this lesson

  • Queue group
  • Who got the message
  • No queue on the server
  • Common mistake
  • Key points