Skip to content

Commit 5fd4187

Browse files
committed
minor #20656 [Messenger] Add consumer name documentation (kkkotov)
This PR was merged into the 7.3 branch. Discussion ---------- [Messenger] Add consumer name documentation Clarify consumer name configuration for Redis transport Commits ------- 3b1505d Messenger: Add consumer name documentation
2 parents cadf459 + 3b1505d commit 5fd4187

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

messenger.rst

+15-1
Original file line numberDiff line numberDiff line change
@@ -1865,7 +1865,21 @@ under the transport in ``messenger.yaml``:
18651865
The Redis consumer group name
18661866

18671867
``consumer`` (default: ``consumer``)
1868-
Consumer name used in Redis
1868+
Consumer name used in Redis. Allows to set explicit consumer name identifier.
1869+
Recommended for environments with multiple workers to prevent duplicate message processing.
1870+
Typically set via environment variable:
1871+
1872+
.. code-block:: yaml
1873+
1874+
# config/packages/messenger.yaml
1875+
framework:
1876+
messenger:
1877+
transports:
1878+
redis:
1879+
dsn: '%env(MESSENGER_TRANSPORT_DSN)%'
1880+
options:
1881+
consumer: '%env(MESSENGER_CONSUMER_NAME)%'
1882+
18691883
18701884
``auto_setup`` (default: ``true``)
18711885
Whether to create the Redis group automatically

0 commit comments

Comments
 (0)