Equal-Vote / star-server

STAR Voting is an upgrade to our current way of voting that allows voters to score candidates from 0 to 5. Ultimately, STAR Voting elects candidates who better represent the whole of the electorate. We are building a site that lets everyone from individuals to organizations use STAR Voting to host simple polls or run secure elections.
GNU Affero General Public License v3.0
17 stars 21 forks source link

Convert front page election stats to websocket #593

Closed ArendPeter closed 1 month ago

ArendPeter commented 1 month ago
mikefranze commented 1 month ago

Example of how to set up websockets https://github.com/Equal-Vote/star-server/commit/e5b5102b7f948d7c2b10a4c8d03c45b2722e9661

Would probably want to convert backend part to middleware or something

mikefranze commented 1 month ago

Info on load balancers and Kubernetes here https://socket.io/docs/v4/using-multiple-nodes/

mikefranze commented 1 month ago

If we ever need socket io rooms with multiple servers https://socket.io/docs/v4/redis-adapter/