Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DLQ Examples #106

Open
yordis opened this issue May 1, 2023 · 1 comment
Open

DLQ Examples #106

yordis opened this issue May 1, 2023 · 1 comment

Comments

@yordis
Copy link

yordis commented May 1, 2023

Hey there, it would be amazing to collect examples of dealing with DLQs and showcasing different strategies around it.

Links

@MauriceVanVeen
Copy link
Collaborator

One way of doing it could be the following:

  • have a WorkQueue stream with no max age (ensures message is only removed if explicitly acked by a consumer and it's not removed by TTL)
  • use a consumer with infinite retries
  • once a message hits a certain retry count:
    • sync publish into another stream, with a unique subject requirement
    • only if the sync publish was successful, Ack the message
  • otherwise just process normally

But there are definitely more ways to do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants