Cloudflare Queue Provider
Sends messages to Cloudflare Queues by resolving bindings from the environment. Used in production environments where Cloudflare Workers handle queue processing.
Binding Resolution: Queue names are converted to binding names:
notifications-queue
NOTIFICATIONS_QUEUE
const provider = new CloudflareQueueProvider(env)await provider.send('notifications-queue', message) Copy
const provider = new CloudflareQueueProvider(env)await provider.send('notifications-queue', message)
Send a message to a Cloudflare Queue
Queue name (e.g., 'notifications-queue')
Complete message with id, timestamp, and payload
If queue binding is not configured
Cloudflare Queue Provider
Sends messages to Cloudflare Queues by resolving bindings from the environment. Used in production environments where Cloudflare Workers handle queue processing.
Binding Resolution: Queue names are converted to binding names:
notifications-queue→NOTIFICATIONS_QUEUEExample