by withinboredom · 2y ago · 0 comments
I love that they basically reimplemented libc to get more performance, but they also threw away decades of edge cases that it doesn't (yet) handle very well. I'm confident they'll get there, eventually, especially when people do things like this and report issues.
It works great! No memory pressure/GC issues at all. Its really not that hard to write go that can perform well in moderately constrained environments.
It’s entirely possible to run a server that will handle tens of thousands of req/sec on hardware with comparatively small amounts (by todays standards) of RAM e.g. 512MB
> It’s entirely possible to run a server that will handle tens of thousands of req/sec
Indeed, you can do this. I'm talking about what happens once the Go starts getting memory pressure and the GC starts dominating the CPU. This is what it is designed to do. If your code can prevent that from happening, you are correct then, as it won't be an issue.
Go does not need me much memory, it's in the same ballpark as a C++ server, using way way less memory than Java / C#.