Re: [go-nuts] Multiplexing blocking call on Go routine

2017-01-05 Thread zohaibsh
I think there a confusion of what I am trying to say. With the go routine approach there is cost of 1M connections + cost of 1M go routines running a blocking call all the time. With an event based system where I can multiplex code execution over a fixed size go routines, the cost is already cu

[go-nuts] Multiplexing blocking call on Go routine

2017-01-04 Thread zohaibsh
Hey guys, So for some time now I have been trying to build a high performance Pub/Sub server in Go. I am using gorilla websocket library, which in it self has a Read, Write methods ( https://godoc.org/github.com/gorilla/websocket#Conn.ReadMessage) that will block my current routine. In order t

[go-nuts] Most efficient way to implement PubSub pattern using channels

2016-12-25 Thread zohaibsh
Hey guys, So for a while I have been working on a chat system that is written in Go and it targets itself to run efficiently on low resources systems like Raspberry Pi (under 512MB) and handle hundreds of thousands of connections easily (for really curious people URL is http://beta.raspchat.co