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

Channel shared between threads for MaxRetry handler #479

Open
oostashchenko-leobit opened this issue Sep 18, 2023 · 0 comments
Open

Channel shared between threads for MaxRetry handler #479

oostashchenko-leobit opened this issue Sep 18, 2023 · 0 comments

Comments

@oostashchenko-leobit
Copy link

oostashchenko-leobit commented Sep 18, 2023

I am very pleased with a solution of retry mechanism this gem provides. Unfortunately there is no documentation for that part and maybe i am missing something.

MaxRetry handler on initialize declares exchanges and queues, i guess this is fine to be performed on the same channel, as we do this on initialization and most likely those already exist.

From other issues i understood that Sneakers utilizes single channel across multiple threads, because it is safe to do so in case of delivery processing (ack/reject). But MaxRetry handler, once it is exhausted, publishes new message to error exchange, and it does so on same channel.

Won't it introduce corrupted messages/errors due to the fact of same channel usage?

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

1 participant