Run multiple instances of your hub behind a Load Balancer .
Every request passing through the hub must carry a JSON Web Token (JWT). The hub should verify this token before passing the request to internal services. How To Make A Serverside Hub Part 2/2
Since the hub is the central point of contact, it is also the primary target for attacks. Run multiple instances of your hub behind a Load Balancer
When a request hits your hub, the server should check the cache (Redis) first. If the data isn't there, fetch it from the main DB and update the cache for next time. 2. Real-Time Synchronization (WebSockets) How To Make A Serverside Hub Part 2/2
How to Build a Server-Side Hub (Part 2/2): Logic & Execution