KP
08/19/2025, 4:37 AMRunLLM
08/19/2025, 4:37 AMKP
08/19/2025, 4:39 AMRunLLM
08/19/2025, 4:39 AMKP
08/19/2025, 4:41 AMRunLLM
08/19/2025, 4:41 AMKP
08/19/2025, 4:42 AMRunLLM
08/19/2025, 4:42 AMKP
08/19/2025, 4:43 AMRunLLM
08/19/2025, 4:43 AMhash % 65536, and finds which region (and thus which consumer) the result falls into.
Example:
- 1st consumer (C1): gets [0, 65536)
- 2nd consumer (C2): [0, 32768) (C2), [32768, 65536) (C1)
- 3rd consumer (C3): [0, 16384) (C3), [16384, 32768) (C2), [32768, 65536) (C1)
- 4th consumer (C4): [0, 16384) (C3), [16384, 32768) (C2), [32768, 49152) (C4), [49152, 65536) (C1)
When a consumer disconnects, its region is merged with the adjacent region on the right.
For more, see Pulsar concepts-messaging: auto-split hash range.
Sources:
- Pulsar concepts-messaging: auto-split hash range π 0 button π 0 button π‘ Hint: Mention @runllm in the thread for followups.KP
08/19/2025, 4:46 AMRunLLM
08/19/2025, 4:46 AMKP
08/19/2025, 4:53 AMRunLLM
08/19/2025, 4:53 AMKP
08/20/2025, 8:52 AMRunLLM
08/20/2025, 8:53 AMKP
08/20/2025, 8:54 AMRunLLM
08/20/2025, 8:54 AMKP
08/20/2025, 8:55 AMRunLLM
08/20/2025, 8:55 AMKP
08/20/2025, 9:10 AMRunLLM
08/20/2025, 9:10 AM