4 ms·
https://medium.com/@14domino/using-nats-to-build-a-very-functional-websocket-server-8f4de44c3f12 https://medium.com/@14domino/using-nats-to-build-a-very-func...
by unraveller 4y ago
https://medium.com/@14domino/using-nats-to-build-a-very-functional-websocket-server-8f4de44c3f12 https://medium.com/@14domino/using-nats-to-build-a-very-func...
no database, just have the user's websocket reach a simple websocket server which always sends on requests to a fuller API server which can speak back to the NATS server who triggers a push to the user since the websocket server is coupled to NATS. This gives horizontal scale to API servers (if they ignore users/work not for them) and websocket servers.