Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

politeiawww: Add websockets package. #1529

Merged
merged 1 commit into from Oct 11, 2021
Merged

Conversation

lukebp
Copy link
Member

@lukebp lukebp commented Oct 6, 2021

This diff moves the websocket code out of main and into a websockets
package. A Manager context is used to manage the websocket connections
instead of of having them stored directly on the politeiawww context.

Packaging the websocket code like this will make it easier to move the
websocket connections into a data store that allows for horizontal
scaling of the politeiawww servers and will allow us to add a websocket
plugin framework at some point in the future.

This does not change any code. It's only re-organizing it.

This diff moves the websocket code out of main and into a `websockets`
package. A `Manager` context is used to manage the websocket connections
instead of of having them stored directly on the politeiawww context.

Packaging the websocket code like this will make it easier to move the
websocket connections into a data store that allows for horizontal
scaling of the politeiawww servers and will allow us to add a websocket
plugin framework at some point in the future.
@lukebp lukebp merged commit 782c236 into decred:master Oct 11, 2021
@lukebp lukebp deleted the websockets branch February 6, 2022 17:13
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.

None yet

2 participants