Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有 1 个带有 K 个分区的主题,但是消息的大小不同。假设它们的权重范围为 1 到 10,并且消费者花费相同的时间/资源来处理它们。
我们如何设计一个自定义分区器来将消息分散到 K 个分区上,以便 K 个消费者具有相似的负载?