Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Websocket server should consume from a queue so all instances broadcast the same events #37

Closed
smoya opened this issue Sep 10, 2021 · 0 comments · Fixed by #61
Closed

Comments

@smoya
Copy link
Collaborator

smoya commented Sep 10, 2021

Current application exposes a websocket server that broadcasts message validation errors.
It is done using Go channels, meaning only validation errors that happened in that particular machine will be broadcasted later.

The issue comes whenever you have more than one instance of the app running (e.g. behind a LB).
Example: The client connects to the websocket server of machine A, but the message validation error happens on machine B.

Add an option to publish validation errors to another queue (Kafka topic in this first implementation) so it can be consumed by all instances at the same time.

@smoya smoya changed the title Websocket server should consume from a queue so all instances broadcast the same Websocket server should consume from a queue so all instances broadcast the same events Sep 10, 2021
@smoya smoya closed this as completed in #61 Oct 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant