DEV Community

Discussion on: What do you use to create REST APIs with WebSockets?

Collapse
 
krusenas profile image
Karolis

If you are familiar with Go, then this package is really great - github.com/gobwas/ws :)

On the backend side I usually connect websocket to a NATS channel for that customer's resource, this way it's easy to scale websocket clients horizontally without much effort. WebSockets are great for UI updates, a lot better than polling.

Check out SSE as well: developer.mozilla.org/en-US/docs/W...

Collapse
 
davidmm1707 profile image
David MMπŸ‘¨πŸ»β€πŸ’»

I work with Python and Javascript, so I wanted to learn a backend language strongly typed.

And everything points that I should learn Go. Thanks for the link and for pushing me a step more towards Go.