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
@@ -1079,18 +1079,18 @@ A quote from the project README:
1079
1079
> In various scenarios, you may wish to ensure that messages sent to an exchange are consistently and equally distributed across a number of different queues based on
1080
1080
> the routing key of the message. You could arrange for this to occur yourself by using a direct or topic exchange, binding queues to that exchange and then publishing
1081
1081
> messages to that exchange that match the various binding keys.
1082
-
>
1082
+
>
1083
1083
> However, arranging things this way can be problematic:
1084
-
>
1084
+
>
1085
1085
> It is difficult to ensure that all queues bound to the exchange will receive a (roughly) equal number of messages without baking in to the publishers quite a lot of
1086
1086
> knowledge about the number of queues and their bindings.
1087
-
>
1087
+
>
1088
1088
> If the number of queues changes, it is not easy to ensure that the new topology still distributes messages between the different queues evenly.
1089
-
>
1089
+
>
1090
1090
> Consistent Hashing is a hashing technique whereby each bucket appears at multiple points throughout the hash space, and the bucket selected is the nearest
1091
1091
> higher (or lower, it doesn't matter, provided it's consistent) bucket to the computed hash (and the hash space wraps around). The effect of this is that when a new
1092
1092
> bucket is added or an existing bucket removed, only a very few hashes change which bucket they are routed to.
1093
-
>
1093
+
>
1094
1094
> In the case of Consistent Hashing as an exchange type, the hash is calculated from the hash of the routing key of each message received. Thus messages that have
1095
1095
> the same routing key will have the same hash computed, and thus will be routed to the same queue, assuming no bindings have changed.
0 commit comments