MCPcopy
hub / github.com/segmentio/kafka-go / RoundRobinGroupBalancer

Struct RoundRobinGroupBalancer

groupbalancer.go:103–103  ·  view source on GitHub ↗

RoundrobinGroupBalancer divides partitions evenly among consumers Example: 5 partitions, 2 consumers C0: [0, 2, 4] C1: [1, 3] Example: 6 partitions, 3 consumers C0: [0, 3] C1: [1, 4] C2: [2, 5]

Source from the content-addressed store, hash-verified

101// C2: [2, 5]
102//
103type RoundRobinGroupBalancer struct{}
104
105func (r RoundRobinGroupBalancer) ProtocolName() string {
106 return "roundrobin"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected