3 ms·
I haven't looked into this, but I've noticed a lot of things being migrated to Go recently. I assume they also migrate to a more event driven architecture at th
by alexchamberlain 11y ago
I haven't looked into this, but I've noticed a lot of things being migrated to Go recently. I assume they also migrate to a more event driven architecture at the same time. Is that true or have I got the wrong end of the stick?
- nickcw 11y agoGo doesn't expose events to the user - the programming interface is one go routine (green thread) per connection. Internally the go scheduler does lots of clever stuff with events but you as the programmer don't have to worry about it. go routines are very light weight - you can have 10 or 100 thousand easily so this is a very efficient way of running servers with lots of connections. It is also very easy to program - it is much easier to reason about one thread per connection than to reason about asynchronous event handling.