-
Notifications
You must be signed in to change notification settings - Fork 0
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 and thread safety #84
Comments
Hey. It's been a while since I last touched this part of the codebase. IIRC we were thinking about thread safety. We've been running this for years (hundreds of messages per second per instance) without any thread safety problems. I'm relatively sure that regular YARV ruby is fine. The other ruby variants may not though. |
Do you run this in a multi-threaded server such as Puma? Servers like passenger shouldn't have a problem though. |
Yes, we're using puma with multiple threads. I think before starting to rewrite this, we should first try to produce the issue. I don't want to start changing anything if there's no issue. |
Btw, if you're just starting then our experience says that using regular HTTP is better than |
Probably a stress test would help. I may try to test it. |
I was looking at
SendAndWaitResponseProducer
.It seems that it is designed to be thread safe. However since bunny/rabbitmq channel is shared is it really safe?
According to bunny documentation channels must not be shared. Is it a special case?
The text was updated successfully, but these errors were encountered: