---
title: Realtime backlog metrics now available for Queues
description: Cloudflare Queues metrics now include realtime backlog size (in count &#38; bytes) and oldest message timestamp
image: https://developers.cloudflare.com/changelog-preview.png
---

> Documentation Index  
> Fetch the complete documentation index at: https://developers.cloudflare.com/changelog/llms.txt  
> Use this file to discover all available pages before exploring further.

[Skip to content](#%5Ftop) 

# Changelog

New updates and improvements at Cloudflare.

[ Subscribe to RSS ](https://developers.cloudflare.com/changelog/rss/index.xml) [ View RSS feeds ](https://developers.cloudflare.com/fundamentals/new-features/available-rss-feeds/) 

![hero image](https://developers.cloudflare.com/_astro/hero.CVYJHPAd_26AMqX.svg) 

[ ← Back to all posts ](https://developers.cloudflare.com/changelog/) 

## Realtime backlog metrics now available for Queues

Apr 28, 2026 

[ Queues ](https://developers.cloudflare.com/queues/) 

[Queues](https://developers.cloudflare.com/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 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:

TypeScript

```

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](https://developers.cloudflare.com/analytics/graphql-api/) or view realtime backlog on the [dashboard ↗](https://dash.cloudflare.com/?to=/:account/workers/queues).

![Queues realtime backlog](https://developers.cloudflare.com/_astro/2026-04-28-queues-metrics.BYi0hgrD_149xlT.webp) 

For more information, refer to [Queues metrics](https://developers.cloudflare.com/queues/observability/metrics/).