News for hackers. Stuff that matters.
Re:An Analysis of the Performance of WebSockets in Various P... by donjoe on Saturday November 23, 2024 @02:19AM (#42219633)
Which is perfectly fine. However, you will be able to process only a single message per connection at once.

What you would do in go is:

- either a new goroutine per message

- or installing a worker pool with a predefined goroutine size accepting messages for processing

Re:An Analysis of the Performance of WebSockets in Various P... by jand on Saturday November 23, 2024 @05:54AM (#42220281)
Another option is to have a read-, and a write-pump goroutine associated with each gorilla ws client. I found this useful for gateways wss <--> *.