You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: Queues is GA, with higher throughput & consumer concurrency
10
+
description: |-
11
+
Queues is now generally available.
12
+
13
+
The per-queue message throughput has increased from 400 to 5,000 messages per second. This applies to new and existing queues.
14
+
15
+
Maximum concurrent consumers has increased from 20 to 250. This applies to new and existing queues. Queues with no explicit limit will automatically scale to the new maximum. Review the [consumer concurrency documentation](/queues/configuration/consumer-concurrency) to learn more.
Copy file name to clipboardExpand all lines: src/content/docs/queues/configuration/consumer-concurrency.mdx
+2-6Lines changed: 2 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,7 @@ To configure the concurrency settings for your consumer Worker from the dashboar
68
68
2. Select **Workers & Pages** > **Queues**.
69
69
3. Select your queue > **Settings**.
70
70
4. Select **Edit Consumer** under Consumer details.
71
-
5. Set **Maximum consumer invocations** to a value between `1` and `10`. This value represents the maximum number of concurrent consumer invocations available to your queue.
71
+
5. Set **Maximum consumer invocations** to a value between `1` and `250`. This value represents the maximum number of concurrent consumer invocations available to your queue.
72
72
73
73
To remove a fixed maximum value, select **auto (recommended)**.
74
74
@@ -97,7 +97,7 @@ To remove the limit, remove the `max_concurrency` setting from the `[[queues.con
97
97
### wrangler CLI
98
98
99
99
```sh
100
-
# where `N` is a positive integer between 1 and 10
100
+
# where `N` is a positive integer between 1 and 250
@@ -120,7 +120,3 @@ Billing for consumers follows the [Workers standard usage model](/workers/platfo
120
120
### Example
121
121
122
122
A consumer Worker that takes 2 seconds to process a batch of messages will incur the same overall costs to process 50 million (50,000,000) messages, whether it does so concurrently (faster) or individually (slower).
Copy file name to clipboardExpand all lines: src/content/docs/queues/configuration/javascript-apis.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ Cloudflare Queues is integrated with [Cloudflare Workers](/workers). To send and
13
13
14
14
A Worker that can send messages to a Queue is a producer Worker, while a Worker that can receive messages from a Queue is a consumer Worker. It is possible for the same Worker to be a producer and consumer, if desired.
15
15
16
-
In the future, we expect to support other APIs, such as HTTP endpoints to send or receive messages. To report bugs or request features, go to the [Cloudflare Community Forums](https://community.cloudflare.com/c/developers/workers/40). To give feedback, go to the [`#queues-beta`](https://discord.cloudflare.com) Discord channel.
16
+
In the future, we expect to support other APIs, such as HTTP endpoints to send or receive messages. To report bugs or request features, go to the [Cloudflare Community Forums](https://community.cloudflare.com/c/developers/workers/40). To give feedback, go to the [`#queues`](https://discord.cloudflare.com) Discord channel.
Copy file name to clipboardExpand all lines: src/content/docs/queues/get-started.mdx
+5-9Lines changed: 5 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,11 +18,7 @@ To use Queues, you will need:
18
18
19
19
<Renderfile="prereqs"product="workers" />
20
20
21
-
## 1. Enable Queues
22
-
23
-
<Renderfile="enable-queues" />
24
-
25
-
## 2. Create a Worker project
21
+
## 1. Create a Worker project
26
22
27
23
You will access your queue from a Worker, the producer Worker. You must create at least one producer Worker to publish messages onto your queue.
28
24
@@ -52,7 +48,7 @@ Move into the newly created directory:
52
48
cd producer-worker
53
49
```
54
50
55
-
## 3. Create a queue
51
+
## 2. Create a queue
56
52
57
53
To use queues, you need to create at least one queue to publish messages to and consume messages from.
58
54
@@ -68,7 +64,7 @@ Queue names must be 1 to 63 characters long. Queue names cannot contain special
68
64
69
65
You cannot change your queue name after you have set it. After you create your queue, you will set up your producer Worker to access it.
70
66
71
-
## 4. Set up your producer worker
67
+
## 3. Set up your producer Worker
72
68
73
69
To expose your queue to the code inside your Worker, you need to connect your queue to your Worker by creating a binding. [Bindings](/workers/runtime-apis/bindings/) allow your Worker to access resources, such as Queues, on the Cloudflare developer platform.
74
70
@@ -140,7 +136,7 @@ Copy your `*.workers.dev` subdomain and paste it into a new browser tab. Refresh
140
136
141
137
You have built a queue and a producer Worker to publish messages to the queue. You will now create a consumer Worker to consume the messages published to your queue. Without a consumer Worker, the messages will stay on the queue until they expire, which defaults to four (4) days.
142
138
143
-
## 5. Create your consumer Worker
139
+
## 4. Create your consumer Worker
144
140
145
141
A consumer Worker receives messages from your queue. When the consumer Worker receives your queue's messages, it can write them to another source, such as a logging console or storage objects.
146
142
@@ -213,7 +209,7 @@ With your `wrangler.toml` file and `index.ts` file configured, publish your cons
213
209
npx wrangler deploy
214
210
```
215
211
216
-
## 6. Read messages from your queue
212
+
## 5. Read messages from your queue
217
213
218
214
After you set up consumer Worker, you can read messages from the queue.
Copy file name to clipboardExpand all lines: src/content/docs/queues/index.mdx
+1-11Lines changed: 1 addition & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,6 @@ type: overview
4
4
pcx_content_type: overview
5
5
sidebar:
6
6
order: 1
7
-
badge:
8
-
text: Beta
9
7
head:
10
8
- tag: title
11
9
content: Cloudflare Queues
@@ -24,15 +22,7 @@ Send and receive messages with guaranteed delivery and no charges for egress ban
24
22
25
23
<Plantype="paid" />
26
24
27
-
:::note
28
-
29
-
30
-
[Cloudflare Queues is now in open Beta](https://blog.cloudflare.com/cloudflare-queues-open-beta/). Join the [`#queues-beta`](https://discord.cloudflare.com) channel in our Developer Discord to learn more.
31
-
32
-
33
-
:::
34
-
35
-
Cloudflare Queues integrates with [Cloudflare Workers](/workers/) and enables you to build applications that can [guarantee delivery](/queues/reference/delivery-guarantees/), [offload work from a request](/queues/reference/how-queues-works/), [send data from Worker to Worker](/queues/configuration/configure-queues/), and [buffer or batch data](/queues/configuration/batching-retries/).
25
+
Cloudflare Queues integrate with [Cloudflare Workers](/workers/) and enable you to build applications that can [guarantee delivery](/queues/reference/delivery-guarantees/), [offload work from a request](/queues/reference/how-queues-works/), [send data from Worker to Worker](/queues/configuration/configure-queues/), and [buffer or batch data](/queues/configuration/batching-retries/).
Copy file name to clipboardExpand all lines: src/content/docs/queues/platform/limits.mdx
+12-25Lines changed: 12 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,48 +8,35 @@ sidebar:
8
8
9
9
import { Render } from"~/components"
10
10
11
-
:::note
12
-
13
-
14
-
Many of these limits will increase during Queues' public beta period. [Follow our changelog](/queues/platform/changelog/) or join the [`#queues-beta`](https://discord.cloudflare.com) channel in our Developer Discord to keep up-to-date with changes.
|`delaySeconds` (when sending or retrying) | 12 hours |
37
28
| Requests to the Queues API (incl. pulls/acks) |[1200 requests / 5 mins](/fundamentals/api/reference/limits/)|
38
29
39
30
40
31
41
-
<sup>beta</sup> This limit is beta only and is expected to increase over time.
42
-
43
32
<sup>1</sup> 1 KB is measured as 1000 bytes. Messages can include up to \~100 bytes of internal metadata that counts towards total message limits.
44
33
45
-
<sup>2</sup> The maximum message throughput per queue will continue to increase during the beta period.
46
-
47
-
<sup>3</sup> Exceeding the maximum message throughput will cause the `send()` and `sendBatch()` methods to throw an exception with a `Too Many Requests` error until your producer falls below the limit.
34
+
<sup>2</sup> Exceeding the maximum message throughput will cause the `send()` and `sendBatch()` methods to throw an exception with a `Too Many Requests` error until your producer falls below the limit.
48
35
49
-
<sup>4</sup> Messages in a queue that reach the maximum message retention are deleted from the queue. Queues does not delete messages in the same queue that have not reached this limit.
36
+
<sup>3</sup> Messages in a queue that reach the maximum message retention are deleted from the queue. Queues does not delete messages in the same queue that have not reached this limit.
50
37
51
-
<sup>5</sup> Individual queues that reach this limit will receive a `Storage Limit Exceeded` error when calling `send()` or `sendBatch()` on the queue.
38
+
<sup>4</sup> Individual queues that reach this limit will receive a `Storage Limit Exceeded` error when calling `send()` or `sendBatch()` on the queue.
52
39
53
-
<sup>6</sup> Refer to [Workers limits](/workers/platform/limits/#cpu-time).
40
+
<sup>5</sup> Refer to [Workers limits](/workers/platform/limits/#cpu-time).
Copy file name to clipboardExpand all lines: src/content/docs/queues/tutorials/web-crawler-with-browser-rendering/index.mdx
-6Lines changed: 0 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,12 +31,6 @@ You can use Puppeteer to request all images on a page, save the colors used on a
31
31
32
32
<Renderfile="prereqs"product="workers" />
33
33
34
-
### Queues access
35
-
36
-
Additionally, you will need access to Queues.
37
-
38
-
<Renderfile="enable-queues" />
39
-
40
34
## 1. Create new Workers application
41
35
42
36
To get started, create a Worker application using the [`create-cloudflare` CLI](https://github.com/cloudflare/workers-sdk/tree/main/packages/create-cloudflare). Open a terminal window and run the following command:
Copy file name to clipboardExpand all lines: src/content/partials/queues/enable-queues.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,12 +3,12 @@
3
3
4
4
---
5
5
6
-
Queues is currently in [Public Beta](https://blog.cloudflare.com/cloudflare-queues-open-beta/) and is included in the monthly subscription cost of your Workers Paid plan, and charges based on operations against your queues. Refer to [Pricing](/queues/platform/pricing/) for more details.
6
+
Queues are included in the monthly subscription cost of your Workers Paid plan, and charges based on operations against your queues. Refer to [Pricing](/queues/platform/pricing/) for more details.
7
7
8
8
Before you can use Queues, you must enable it via [the Cloudflare dashboard](https://dash.cloudflare.com/?to=/:account/workers/queues). You need a Workers Paid plan to enable Queues.
9
9
10
10
To enable Queues:
11
11
12
12
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com).
0 commit comments