Skip to content

Commit

Permalink
Add Explanation for dead letter setup for govuk-chat
Browse files Browse the repository at this point in the history
As the setup introduced by 0e5d205
is a bit unusual, we add some clarification in the readme.
  • Loading branch information
roch committed Jul 22, 2024
1 parent 0e5d205 commit fa55cef
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions terraform/projects/app-publishing-amazonmq/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ It uses remote state from the infra-vpc and infra-security-groups modules.
The Terraform provider will only allow us to create a single user, so all
other users must be added from the RabbitMQ web admin UI or REST API.

We set a dead letter exchange for the govuk_chat_published_documents called govuk_chat_retry_dlx
This dlx then send all incoming messages to a queue called govuk_chat_retry.
this queue has a message-ttl value set and a dead letter exchange set to an exchange called govuk_chat_dlx.
This last exchange route all incoming messages back to govuk_chat_published_documents.

The result of all this is that when a message is rejected in govuk_chat_published_documents,
it ends up in the govuk_chat_retry queue, it will then wait here for the message-ttl value before expiring.
After expiration it is sent back to govuk_chat_published_documents.

## Requirements

| Name | Version |
Expand Down

0 comments on commit fa55cef

Please sign in to comment.