Skip to content

Commit a5f8274

Browse files
committed
[Messenger] Add options for PostgreSQL LISTEN/NOTIFY support
1 parent 07b139b commit a5f8274

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

messenger.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,6 +1096,29 @@ auto_setup Whether the table should be created
10961096
automatically during send / get. true
10971097
================== ===================================== ======================
10981098

1099+
.. versionadded:: 5.1
1100+
1101+
The ability to leverage PostgreSQL's LISTEN/NOTIFY was introduced
1102+
in Symfony 5.1
1103+
1104+
When using PostgreSQL, you have access to the following options
1105+
to leverage the [LISTEN/NOTIFY](https://www.postgresql.org/docs/current/sql-notify.html)
1106+
feature. This allow for a more performant approach than the default polling behaviour
1107+
of the Doctrine transport because PostgreSQL will directly notify the workers when a
1108+
new message is inserted in the table.
1109+
1110+
======================= ===================================== ======================
1111+
Option Description Default
1112+
======================= ===================================== ======================
1113+
use_notify Whether to use LISTEN/NOTIFY. true
1114+
check_delayed_interval The interval to check for delayed 1000
1115+
messages, in milliseconds.
1116+
Set to 0 to disable checks.
1117+
get_notify_timeout The length of time to wait for a 0
1118+
response when calling
1119+
PDO::pgsqlGetNotify, in milliseconds.
1120+
======================= ===================================== ======================
1121+
10991122
Beanstalkd Transport
11001123
~~~~~~~~~~~~~~~~~~~~
11011124

0 commit comments

Comments
 (0)