Queue Manager
Singleton service for processing queue message batches. Routes messages to consumers based on message type.
Message Routing:
Note: For sending messages to queues, use IQueueSender instances obtained via @InjectQueue('queue-name') or module bindings.
// In Cloudflare Worker queue handlerawait queueManager.processBatch('notifications-queue', batch) Copy
// In Cloudflare Worker queue handlerawait queueManager.processBatch('notifications-queue', batch)
Process a batch of queue messages
Routes messages to registered consumers based on message type. Uses ConsumerRegistry to find matching consumers.
Name of the queue (for logging, not used for routing)
Batch of messages from Cloudflare Queue
Queue Manager
Singleton service for processing queue message batches. Routes messages to consumers based on message type.
Message Routing:
Note: For sending messages to queues, use IQueueSender instances obtained via @InjectQueue('queue-name') or module bindings.
Example: Processing a queue batch