Skip to main content

Module allocation

Module allocation 

Source

Structs§

AllocateMessageQueueAveragely
Allocates contiguous queue ranges as evenly as possible.
AllocateMessageQueueAveragelyByCircle
Allocates every Nth queue to each consumer.
AllocateMessageQueueByConfig
Returns a statically configured set of queues.
AllocateMessageQueueByMachineRoom
Limits allocation to selected broker machine rooms.
AllocateMessageQueueByMachineRoomNearby
Prefers queues local to a consumer and shares queues from rooms without consumers.
AllocateMessageQueueConsistentHash
Assigns queues through a consistent hash ring of consumer ids.

Traits§

AllocateMessageQueueStrategy
Runtime-neutral queue allocation contract.
MachineRoomResolver
Resolves the deployment room of brokers and consumers.

Functions§

check
Validates the shared preconditions used by allocation strategies.

Type Aliases§

AbstractAllocateMessageQueueStrategy
AllocateMachineRoomNearby