Skip to content
Discussion options

You must be logged in to vote

The plugin works as before. We haven't touched it for a while.

All it takes is declaring an exchange of type x-modulus-hash provided by the plugin, then setting up a policy that will match it:

rabbitmqctl set_policy images-shard "^shard.images$" '{"shards-per-node": 2, "routing-key": "1234"}'

Which results in two queues per node declared by the plugin and bound to the x-modulus-hash exchange:

rabbitmq_sharding Relevance in 2025

However, in the age of streams and partitioned streams, rabbitmq_sharding is no longer necessary or relevant.

So, simply use streams or partitioned streams with a RabbitMQ Stream Protocol client. If deploying to an environment that mandates the use of proxies, su…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by michaelklishin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants