问题
Could not find anything about this in either the docs or on google, except that it should be bound to the available resources of the server.
Does anyone have experience with really large numbers of exchanges at a time in a working environment? Just creating exchanges should not be the issue (simply until the memory limit is reached) but to use it in a working project with high-message throughput and mostly dynamic exchange creation/deletion.
回答1:
Given how everything else in RabbitMQ is built (and knowing that it's written in Erlang and uses services like Mnesia internally) there probably isn't any hardcoded limit. You'll probably hit a resource limit on your broker's machine before anything else.
If you plan on using non-persistent exchanges (that is, ones that don't survive a broker restart) you could likely create very large numbers of them. Why don't you use the HTTP management API to write a script that just keeps creating exchanges using curl and see how far you get?
来源:https://stackoverflow.com/questions/10103519/is-there-a-limit-to-the-number-of-exchanges-for-rabbitmq