You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit adds a test case to explicitly verify that the
`x-modulus-hash` exchange supports weighted routing.
Because the exchange uses `lists:sort/1` instead of `lists:usort/1`
when fetching the bound destinations, a user can bind the exact same
queue multiple times to the exchange (using different dummy binding
keys) to increase its weight. If a queue is bound N times, it will
appear N times in the destination list, giving it a proportionally
higher chance of receiving messages.
(cherry picked from commit d7b3d19)
0 commit comments