You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I find that the documentation is insufficient in describing how to handle DB connections when using the gem as a Rails worker. This example of having a hook close existing connection and create a new one for every worker does not seems efficient. Is there a recommended way to simply use the connection from the pool and return it cleanly?
Thanks!
The text was updated successfully, but these errors were encountered:
Opening a new connection for long running processes is perfectly efficient and matches how connections in the messaging protocols supported by RabbitMQ are expected to be used.
Due to fork(2) effects on previously opened file handles, you won't be able to avoid doing what the example does, one way or another.
Opening a new connection for long running processes is perfectly efficient and matches how connections in the messaging protocols supported by RabbitMQ are expected to be used.
Due to fork(2) effects on previously opened file handles, you won't be able to avoid doing what the example does, one way or another.
Hi,
I find that the documentation is insufficient in describing how to handle DB connections when using the gem as a Rails worker. This example of having a hook close existing connection and create a new one for every worker does not seems efficient. Is there a recommended way to simply use the connection from the pool and return it cleanly?
Thanks!
The text was updated successfully, but these errors were encountered: