Queue Groups

    To create a queue subscription, subscribers register a queue name. All subscribers with the same queue name form the queue group. This requires no configuration. As messages on the registered subject are published, one member of the group is chosen randomly to receive the message. Although queue groups have multiple subscribers, each message is consumed by only one.

    One of the great features of NATS is that queue groups are defined by the application and their queue subscribers, not on the server configuration.