Is there a limit on how many users you can create in a RabbitMQ server? #7805
-
We are planning to create a RabbitMQ server for our thousands of IOT devices to connect to. Each IOT device will have a dedicated user. And we would like to know if there is a limit on how many users you can create and store in a RabbitMQ server. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
How many are you thinking? Users are generally "cheap", since they don't have any runtime component. When testing some metadata operations like imports, I sometimes use a JSON file with 100k users: https://github.com/rabbitmq/sample-configs/tree/main/users |
Beta Was this translation helpful? Give feedback.
-
Tens of thousands of users won't be an issue. Hundreds of thousands of users per se should not be but |
Beta Was this translation helpful? Give feedback.
-
I'm about a year tardy to the party but thought I should mention this. Unless the http api has changed in the recent versions, which it doesn't look like, the |
Beta Was this translation helpful? Give feedback.
How many are you thinking? Users are generally "cheap", since they don't have any runtime component. When testing some metadata operations like imports, I sometimes use a JSON file with 100k users: https://github.com/rabbitmq/sample-configs/tree/main/users
As with anything else, if you are planning to use software at scale, you should spend some time simulating the workload to make sure it will work as expected. You can easily generate/import files like the one above + simulate the traffic using https://perftest.rabbitmq.com/ or https://github.com/emqx/emqtt-bench (based on the protocol you want to use).