Skip to content

Commit 5eebab1

Browse files
author
d-ph
committed
Mention the issue with rabbitmq's heartbeat and long running tasks.
1 parent dc96d6e commit 5eebab1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,9 @@ by default to avoid possible breaks in applications already using this bundle.
184184
185185
It's a good idea to set the ```read_write_timeout``` to 2x the heartbeat so your socket will be open. If you don't do this, or use a different multiplier, there's a risk the __consumer__ socket will timeout.
186186
187+
Please bear in mind, that you can expect problems, if your tasks are generaly running longer than the heartbeat period, to which there are no good solutions ([link](https://github.com/php-amqplib/RabbitMqBundle/issues/301)).
188+
Consider using either a big value for the hearbeat or leave the heartbeat disabled in favour of the tcp's `keepalive` (both on the client and server side) and the `graceful_max_execution_timeout` feature.
189+
187190
## Producers, Consumers, What? ##
188191
189192
In a messaging application, the process sending messages to the broker is called __producer__ while the process receiving those messages is called __consumer__. In your application you will have several of them that you can list under their respective entries in the configuration.

0 commit comments

Comments
 (0)