Queues, Cloudflare’s managed message queue, now exposes realtime backlog metrics via the dashboard, REST API, and JavaScript API. Three new fields are available:
backlog_count— the number of unacknowledged messages in the queuebacklog_bytes— the total size of those messages in bytesoldest_message_timestamp_ms— the timestamp of the oldest unacknowledged message
The following endpoints also now include a metadata.metrics object on the result field after successful message consumption:
/accounts/{account_id}/queues/{queue_id}/messages/pull/accounts/{account_id}/queues/{queue_id}/messages/accounts/{account_id}/queues/{queue_id}/messages/batch
Javascript APIs
Call env.QUEUE.metrics() to get realtime backlog metrics:
const { backlogCount, // number backlogBytes, // number oldestMessageTimestamp, // Date | undefined} = await env.QUEUE.metrics();env.QUEUE.send() and env.QUEUE.sendBatch() also now return a metrics object on the response.
You can also query these fields via the GraphQL Analytics API or view realtime backlog on the dashboard.
For more information, refer to Queues metrics.
Source: Cloudflare
Latest Posts
- MC1431377: Microsoft Defender for Office 365 Pauses Auto-Refresh and Adds Manual Refresh with Simplified Investigation Naming

- MC1422063: OneDrive for Business Adds Guided Fix for Max Path Errors in Windows Desktop Sync

- MC1420901: Microsoft 365 Copilot App Adds Notebooks for Organized Project Work and OneNote Sync

- MC1401303: Microsoft Teams Adds Events Templates with Optimize for Large Audience and Policy-Based Controls







