File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -48,5 +48,5 @@ SUBSTITUTE_LOCALHOST_IN_VARS=PROTOCOL_BROKER_URL
48
48
# should not be used in production! #
49
49
# ###########################################################
50
50
51
- RABBITMQ_VERSION = 3.8.11 -management-alpine
51
+ RABBITMQ_VERSION = 3.13.6 -management-alpine
52
52
RABBITMQ_MANAGEMENT_LOCAL_PORT = 15676
Original file line number Diff line number Diff line change @@ -137,19 +137,23 @@ async def bind_queue() -> None:
137
137
138
138
# Declare the requested queue along with its corresponding
139
139
# dead-letter queue, and bind it to the peer exchange.
140
+ #
141
+ # TODO: It would probably be better to use a "stream" instead
142
+ # of classic queues here, given that we have figured out
143
+ # how to do the stream offset tracking. This would allow
144
+ # for high-availability. Using a "quorum" queues here is
145
+ # almost certainly not a good idea, because quorum
146
+ # queues consume lots of memory when there are lots of
147
+ # messages in the queue, which should be expected.
140
148
dead_letter_queue_name = queue_name + ".XQ"
141
149
await channel .declare_queue (
142
150
dead_letter_queue_name ,
143
151
durable = True ,
144
- arguments = {
145
- "x-message-ttl" : 604800000 ,
146
- },
147
152
)
148
153
queue = await channel .declare_queue (
149
154
queue_name ,
150
155
durable = True ,
151
156
arguments = {
152
- "x-message-ttl" : 604800000 ,
153
157
"x-dead-letter-exchange" : "" ,
154
158
"x-dead-letter-routing-key" : dead_letter_queue_name ,
155
159
},
You can’t perform that action at this time.
0 commit comments