4 ms·
Have you checked out https://github.com/valyala/fasthttp https://github.com/valyala/fasthttp
by nemothekid 8y ago
Have you checked out https://github.com/valyala/fasthttp https://github.com/valyala/fasthttp
- jonathan-kosgei 8y agoShould 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_from_nethttp_to_fasthttp_is_it_worth_it/ https://www.reddit.com/r/golang/comments/5w3ang/switching_fr...
- sagichmal 8y agoLike 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.
- kasey_junk 8y agoWe 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.