Skip to content

Conversation

@odesenfans
Copy link
Collaborator

Problem: the websocket uses the DB to apply filters to processed messages to determine whether they must be sent on the websocket. This leads to an exhaustion of DB connections when many websockets are open with the same filters.

Solution: send the full message on the RabbitMQ topic and apply filters in Python instead of using a DB query.

@odesenfans odesenfans force-pushed the od-websocket-avoid-db-calls branch from 9bbf8d5 to 5b7ffe6 Compare June 12, 2023 13:46
Problem: the websocket uses the DB to apply filters to processed
messages to determine whether they must be sent on the websocket.
This leads to an exhaustion of DB connections when many websockets
are open with the same filters.

Solution: send the full message on the RabbitMQ topic and apply
filters in Python instead of using a DB query.
@odesenfans odesenfans force-pushed the od-websocket-avoid-db-calls branch from 5b7ffe6 to bb4818f Compare June 12, 2023 14:31
@odesenfans odesenfans changed the base branch from master to dev June 12, 2023 16:11
@odesenfans odesenfans marked this pull request as ready for review June 12, 2023 16:11
@odesenfans odesenfans merged commit 85b283f into dev Jun 14, 2023
@odesenfans odesenfans deleted the od-websocket-avoid-db-calls branch June 14, 2023 14:08
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.

3 participants