Skip to content

Conversation

@odesenfans
Copy link
Collaborator

No description provided.

Problem: opening more than ~2000 message websockets hits the channel
limit of RabbitMQ and resets the connection.

Solution: create one channel per API process, as they are long-lived
and should not be created for each operation according to the doc.
Problem: RabbitMQ queues can stay open indefinitely if the websocket
filters only match few or no message. This can lead to increased
resource consumption.

Solution: add a large timeout (5 minutes) and check periodically
if the websocket connection is still open. If the user is still
listening, keep the queue open. Otherwise, delete the queue and
terminate the request.
@odesenfans odesenfans marked this pull request as draft April 28, 2023 10:24
@odesenfans odesenfans closed this Apr 28, 2023
@odesenfans
Copy link
Collaborator Author

Split in two: #422 and #423.

@Psycojoker Psycojoker deleted the od-fix-websocket-channels-and-timeout branch July 24, 2024 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants