Re:Ask HN: What highly scalable thing have you built with Go?
by jonathan-kosgei on Monday July 02, 2018 @01:14PM
(#17443504)
Someone shared this with me https://blog.golang.org/share-memory-by-communicating - Share memory by communicating.
And also pointed me to nats.io, a messaging system that handles 10M messages per second on a $50 server.
See the comment at: https://www.indiehackers.com/forum/how-we-handle-25m-api-cal...
Re:Ask HN: What highly scalable thing have you built with Go?
by nemothekid on Monday July 02, 2018 @11:09AM
(#17442287)
Have you checked out https://github.com/valyala/fasthttp
Re:Ask HN: What highly scalable thing have you built with Go?
by jonathan-kosgei on Monday July 02, 2018 @01:17PM
(#17443532)
Should fasthttp be used in production? It seems to get a lot of flak for not fully implementing HTTP.
https://www.reddit.com/r/golang/comments/5w3ang/switching_fr...
Re:Ask HN: What highly scalable thing have you built with Go?
by sagichmal on Monday July 02, 2018 @06:13PM
(#17445817)
Like every engineering decision it is a risk/reward spectrum. But unless you have profiled to know that net/http is your bottleneck, no, you should almost certainly not use fasthttp.
Re:Ask HN: What highly scalable thing have you built with Go?
by kasey_junk on Monday July 02, 2018 @02:34PM
(#17444267)
We use it in production, though fair warning we have very limited endpoint and consumers that allow us to test it aggressively.
What I really meant is we'd need to take things down to the bare network stack. Lots of our memory use/bottlenecks are fairly deep into the std lib.
Similar throughput, our bottleneck at this point is moving data around.
We’ve abandoned channels for most of this. The next major improvement would be to rebuild the http stack & that’s just not worth it.