-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* queues: HTTP Pull docs * queue: changelog * queues: http pull * queues: pull consumers * queues: pull auth * queues: typo * queues: fix url * queues: fix header * queues: update pull guide * queues: update pull guide * queues: add breadcrumb on pull to tutorial * queues: MORE PULLING * queues: ack ack ack * queues: update ack payload schema * queues: refactor * queues: short polling * queues: 1200/5 * queues: update wrangler consumer commands * queues: Apply suggestions from code review Co-authored-by: Maddy <130055405+Maddy-Cloudflare@users.noreply.github.com> * queues: remove examples for now * queues: fix limits for push vs. pull * queues: retries * queues: more docs on delays * queues: add limit docs for delaySeconds * queues: Update javascript-apis.md * queue: changelog * queues: pull consumers * queues: fix pull * queues: fix * queues: Apply suggestions from code review * queues: update pull consumer for wrangler * queues: clarify required wrangler version * queues: apply suggestions from code review Co-authored-by: Maddy <130055405+Maddy-Cloudflare@users.noreply.github.com> --------- Co-authored-by: Maddy <130055405+Maddy-Cloudflare@users.noreply.github.com>
- Loading branch information
1 parent
a93a215
commit eba825f
Showing
9 changed files
with
203 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
pcx_content_type: navigation | ||
title: Queues REST API | ||
external_link: /api/operations/queue-create-queue | ||
weight: 100 | ||
_build: | ||
publishResources: false | ||
render: never | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
title: Consumer concurrency | ||
pcx_content_type: concept | ||
weight: 4 | ||
weight: 9 | ||
--- | ||
|
||
# Consumer concurrency | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
title: Dead Letter Queues | ||
pcx_content_type: concept | ||
weight: 5 | ||
--- | ||
|
||
# Dead Letter Queues | ||
|
||
A Dead Letter Queue (DLQ) is a common concept in a messaging system, and represents where messages are sent when a delivery failure occurs with a consumer after `max_retries` is reached. A Dead Letter Queue is like any other queue, and can be produced to and consumed from independently. | ||
|
||
With Cloudflare Queues, a Dead Letter Queue is defined within your [consumer configuration](/queues/reference/configuration/). Messages are delivered to the DLQ when they reach the configured retry limit for the consumer. Without a DLQ configured, messages that reach the retry limit are deleted permanently. | ||
|
||
For example, the following consumer configuration would send messages to our DLQ named `"my-other-queue"` after retrying delivery (by default, 3 times): | ||
|
||
```toml | ||
--- | ||
filename: wrangler.toml | ||
--- | ||
[[queues.consumers]] | ||
queue = "my-queue" | ||
dead_letter_queue = "my-other-queue" | ||
``` | ||
|
||
You can also configure a DLQ when creating a consumer from the command-line using `wrangler`: | ||
|
||
```sh | ||
$ wrangler queues consumer add $QUEUE_NAME $SCRIPT_NAME --dead-letter-queue=$NAME_OF_OTHER_QUEUE | ||
``` | ||
|
||
To process messages placed on your DLQ, you need to [configure a consumer](/queues/reference/configuration/) for that queue as you would with any other queue. | ||
|
||
Messages delivered to a DLQ without an active consumer will persist for four (4) days before being deleted from the queue. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters