@@ -59,27 +59,31 @@ Queue Options
5959Each queue can have their own options that determine how messages are published or received.
6060The options and their descriptions are listed below.
6161
62- +--------------------------+-------------------------------------------------------------------------------------------+---------------+
63- | Option | Description | Default Value |
64- +==========================+===========================================================================================+===============+
65- | ``queue_name `` | The name used to describe the queue on the Provider's side | ``null `` |
66- +--------------------------+-------------------------------------------------------------------------------------------+---------------+
67- | ``push_notifications `` | Whether or not to POST notifications to subscribers of a Queue | ``false `` |
68- +--------------------------+-------------------------------------------------------------------------------------------+---------------+
69- | ``notification_retries `` | How many attempts notifications are resent in case of errors - if supported | ``3 `` |
70- +--------------------------+-------------------------------------------------------------------------------------------+---------------+
71- | ``message_delay `` | Time in seconds before a published Message is available to be read in a Queue | ``0 `` |
72- +--------------------------+-------------------------------------------------------------------------------------------+---------------+
73- | ``message_timeout `` | Time in seconds a worker has to delete a Message before it is available to other workers | ``30 `` |
74- +--------------------------+-------------------------------------------------------------------------------------------+---------------+
75- | ``message_expiration `` | Time in seconds that Messages may remain in the Queue before being removed | ``604800 `` |
76- +--------------------------+-------------------------------------------------------------------------------------------+---------------+
77- | ``messages_to_receive `` | Maximum amount of messages that can be received when polling the queue | ``1 `` |
78- +--------------------------+-------------------------------------------------------------------------------------------+---------------+
79- | ``receive_wait_time `` | If supported, time in seconds to leave the polling request open - for long polling | ``3 `` |
80- +--------------------------+-------------------------------------------------------------------------------------------+---------------+
81- | ``subscribers `` | An array of Subscribers, containing an ``endpoint `` and ``protocol `` | ``empty `` |
82- +--------------------------+-------------------------------------------------------------------------------------------+---------------+
62+ +---------------------------------+--------------------------------------------------------------------------------------------+---------------+
63+ | Option | Description | Default Value |
64+ +=================================+============================================================================================+===============+
65+ | ``queue_name `` | The name used to describe the queue on the Provider's side | ``null `` |
66+ +---------------------------------+--------------------------------------------------------------------------------------------+---------------+
67+ | ``push_notifications `` | Whether or not to POST notifications to subscribers of a Queue | ``false `` |
68+ +---------------------------------+--------------------------------------------------------------------------------------------+---------------+
69+ | ``notification_retries `` | How many attempts notifications are resent in case of errors - if supported | ``3 `` |
70+ +---------------------------------+--------------------------------------------------------------------------------------------+---------------+
71+ | ``message_delay `` | Time in seconds before a published Message is available to be read in a Queue | ``0 `` |
72+ +---------------------------------+--------------------------------------------------------------------------------------------+---------------+
73+ | ``message_timeout `` | Time in seconds a worker has to delete a Message before it is available to other workers | ``30 `` |
74+ +---------------------------------+--------------------------------------------------------------------------------------------+---------------+
75+ | ``message_expiration `` | Time in seconds that Messages may remain in the Queue before being removed | ``604800 `` |
76+ +---------------------------------+--------------------------------------------------------------------------------------------+---------------+
77+ | ``messages_to_receive `` | Maximum amount of messages that can be received when polling the queue | ``1 `` |
78+ +---------------------------------+--------------------------------------------------------------------------------------------+---------------+
79+ | ``receive_wait_time `` | If supported, time in seconds to leave the polling request open - for long polling | ``3 `` |
80+ +---------------------------------+--------------------------------------------------------------------------------------------+---------------+
81+ | ``fifo `` | If supported (only aws), sets queue into FIFO mode | ``false `` |
82+ +---------------------------------+--------------------------------------------------------------------------------------------+---------------+
83+ | ``content_based_deduplication `` | If supported (only aws), turns on automatic deduplication id based on the message content | ``false `` |
84+ +---------------------------------+--------------------------------------------------------------------------------------------+---------------+
85+ | ``subscribers `` | An array of Subscribers, containing an ``endpoint `` and ``protocol `` | ``empty `` |
86+ +---------------------------------+--------------------------------------------------------------------------------------------+---------------+
8387
8488Symfony Application as a Subscriber
8589-----------------------------------
@@ -131,14 +135,32 @@ A working configuration would look like the following
131135 my_queue_key :
132136 provider : ironmq # or aws or in_band or another_aws_provider
133137 options :
134- queue_name : my_actual_queue_name
135- push_notifications : true
136- notification_retries : 3
137- message_delay : 0
138- message_timeout : 30
139- message_expiration : 604800
140- messages_to_receive : 1
141- receive_wait_time : 3
138+ queue_name : my_actual_queue_name
139+ push_notifications : true
140+ notification_retries : 3
141+ message_delay : 0
142+ message_timeout : 30
143+ message_expiration : 604800
144+ messages_to_receive : 1
145+ receive_wait_time : 3
146+ fifo : false
147+ content_based_deduplication : false
148+ subscribers :
149+ - { endpoint: http://example1.com/, protocol: http }
150+ - { endpoint: http://example2.com/, protocol: http }
151+ my_fifo_queue_key :
152+ provider : aws
153+ options :
154+ queue_name : my_actual_queue_name.fifo
155+ push_notifications : true
156+ notification_retries : 3
157+ message_delay : 0
158+ message_timeout : 30
159+ message_expiration : 604800
160+ messages_to_receive : 1
161+ receive_wait_time : 3
162+ fifo : true
163+ content_based_deduplication : true
142164 subscribers :
143165 - { endpoint: http://example1.com/, protocol: http }
144166 - { endpoint: http://example2.com/, protocol: http }
0 commit comments