News for hackers. Stuff that matters.
Re:Memory usage of a toy C# server and client with 500K conc... by weberc2 on Monday January 28, 2019 @09:36AM (#19017661)
On the surface, perhaps, but when you factor in the gotchas of both approaches and the debugging difficulty, I much prefer goroutines. In particular, I’ve never witnessed someone DOS a fleet of servers in Go by scheduling a task was making a sync call under the covers, by doing an intensive computation in the event loop, or by scheduling tens of thousands of tiny events. We also have a lot of bugs involving accidentally putting the task/coroutine into a variable instead of the result of the task because the programmer forgot the “await” keyword, but that’s a dynamic typing problem.

There are no comments on this comment yet.