WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

support named queues in nats bench #1514

@borjaetxebarria

Description

@borjaetxebarria

Proposed change

Add support for queue names in nats bench

nats bench sub --queue myqueue --clients=5 ---msgs=999 foo
If --queue provided, the 5 clients subscribe with the same queue name, receiving their corresponding share of the foo subject instead of all the messages.
The app stops when the total number of received messages (sum of the 5 subscribers) gets to 999.

Similar behaviour for:

nats bench service serve --queue myqueue --clients=5 --msgs=999 foosvc

Use case

Benchmarking scenarios where load distribution using named queues is needed.

Contribution

No response

Metadata

Metadata

Assignees

Labels

proposalEnhancement idea or proposal

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions