Queues - Realtime backlog metrics now available for Queues
2mo ago
Source
CloudflareQueues - Realtime backlog metrics now available for Queuescloudflare.comQueues , 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 queue backlog_bytes โ the total size of those messages in bytes oldest_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

Comments
Sign in to join the conversation.
No comments yet. Be the first.