valyala/fasthttp
View on GitHub ↗ ★ 23,503 Go
Fast HTTP package for Go. Tuned for high performance. Zero memory allocations in hot paths. Up to 10x faster than net/http
34 mentions on Hacker News by 31 people: 6 stories, 28 comments · first 2015-11-23 · latest 2026-03-07
20082026
-
…That is a wild choice that the standard library authors would/could never make. [1]: https://pkg.go.dev/github.com/valyala/fasthttp [2]: https://pkg.go.dev/github.com/gofiber/fiber/v3
comment by kbolino · 2026-03-07 · in UUID package coming to Go standard library -
…mean there are a lot of non standard libraries for go that are pretty fast or faster then gohttpd - https://github.com/valyala/fasthttp/ as example
comment by dengolius · 2025-07-09 · in Serving a half billion requests per day with Rust and CGI -
…a number of alternative HTTP stacks written in Go optimized for performance, like fasthttp ( https://github.com/valyala/fasthttp ). (source: https://www.techempower.com/benchmarks/ ) Likewise, the standard library NodeJS http stack will…
comment by Cthulhu_ · 2025-01-28 · in Go 1.24's go tool is one of the best additions to the ecosystem in years -
…4: https://github.com/vmihailenco/msgpack 5: https://github.com/fxamacker/cbor -- 6: https://github.com/valyala/fasthttp#faq -- 7: https://github.com/tidwall/gjson 8: https://github.com/tidwall/sjson
comment by emmanueloga_ · 2023-12-04 · in Gobs of data (2011) -
…- https://github.com/lib/pq - https://github.com/qiangxue/fasthttp-routing - https://github.com/valyala/fasthttp - https://github.com/valyala/quicktemplate - https://github.com/bamiaux/rez - https://github.com/MithrilJS/mithril.js And
comment by craftuser · 2023-01-09 · in Ask HN: Slimvoice Alternative? -
…the standard library is not the "no framework" option. The "no framework" option is more like using https://github.com/valyala/fasthttp , which is its own server implementation with an incompatible API that does in fact remove you from the…
comment by jerf · 2022-11-29 · in The best Go framework: no framework? -
…(after the HTTP/3 fashion dies out). There is an issue about this on `fasthttp`'s repository: < https://github.com/valyala/fasthttp/issues/144 > And I'll quote here what I've said there: > Having experimented in my kawipiko static server…
comment by ciprian_craciun · 2022-09-06 · in Static site hosting hurdles -
…from the OS in this regard. As with regard to the "battle-tested and versatile", Kawipiko uses < https://github.com/valyala/fasthttp > as its HTTP engine, which itself is used in quite a lot of Go-based products, thus one could state that…
comment by ciprian_craciun · 2022-08-29 · in Kawipiko – fast static HTTP server in Go -
[Kawipiko's author here] The main HTTP "engine" behind Kawipiko is `fasthttp`, < https://github.com/valyala/fasthttp > that supports only HTTP/1.1 (with or without TLS). However for experimentation I've also integrated HTTP/2 and HTTP/3…
comment by ciprian_craciun · 2022-08-28 · in Kawipiko – fast static HTTP server in Go -
https://github.com/valyala/fasthttp It has 16.8k stars. Is that good?
comment by neodon · 2022-01-23 · in Golang’s most important feature is invisible -
…I would have expected. [EDIT] > edit: looking at their bug tracker, it might also be something like https://github.com/valyala/fasthttp/issues/518 : the request is not considered responded to so the goroutines never terminate. I don't know…
comment by hardwaresofton · 2021-03-30 · in Down the Golang Nil Rabbit Hole -
…be the most likely culprit. edit: looking at their bug tracker, it might also be something like https://github.com/valyala/fasthttp/issues/518 : the request is not considered responded to so the goroutines never terminate. I don't know the…
comment by masklinn · 2021-03-30 · in Down the Golang Nil Rabbit Hole -
…of the project: https://github.com/savsgio/atreugo/blob/master/go.mod it uses well known libs like github.com/valyala/fasthttp.
comment by Thaxll · 2019-09-12 · in A high-speed network driver written in C, Rust, Go, C#, Java -
…should be very cautious when using[2], as it is not standard and resorts to hacks to implement. [1] https://github.com/valyala/fasthttp [2] https://docs.google.com/presentation/d/e/2PACX-1vTxoBN41dYFB...
comment by apta · 2019-07-09 · in Learning Golang – From Zero to Hero -
Check out https://github.com/valyala/fasthttp
comment by deepsun · 2019-02-06 · in Benchmarking Go vs. Node vs. Elixir -
…amazing and looking at the latency distribution graphs. Tools that clear winners of performance: - https://github.com/valyala/fasthttp - https://www.rapidoid.org Elixir/Cowboy/Plug is in the middle range, kind of like what Techempower[1]…
comment by StreamBright · 2019-01-06 · in Would you still pick Elixir in 2019? -
I'll cautiously mention: https://github.com/valyala/fasthttp It's a net/http replacement that is close to x10 in performance -- however it is not a drop in replacement and you should avoid it unless you really actually need the rps. That's…
comment by 101km · 2018-07-14 · in Ask HN: What is the current state of web frameworks in Golang? -
I am using fasthttp[1] 1. https://github.com/valyala/fasthttp
comment by lossolo · 2018-07-13 · in Learn how to design large-scale systems -
Have you checked out https://github.com/valyala/fasthttp
comment by nemothekid · 2018-07-02 · in Ask HN: What highly scalable thing have you built with Go? -
…like this: https://github.com/inhabitedtype/httpaf/blob/master/lib/pars... instead of this: https://github.com/valyala/fasthttp/blob/master/header.go (and this is only a header) and let the compiler do all the dirty work. > with a dozen…
comment by ernst_klim · 2018-02-22 · in Go 1.10 Release Notes -
https://github.com/valyala/fasthttp Crazy fast and has worked fine under heavy load.
comment by crehn · 2017-09-07 · in Ask HN: What Go framework for web API are you using in production? -
…wouldn't be as much a difference as they claim, but the idea of zero allocations intrigues me) [0]: https://github.com/valyala/fasthttp
comment by mreithub · 2017-02-10 · in Go Web Examples -
…than the one included in go. "In short, fasthttp server is up to 10 times faster than net/http." https://github.com/valyala/fasthttp
comment by andy_ppp · 2017-02-08 · in HTTP throughput regression from Go 1.7.5 to 1.8 -
I wonder how it would compare to the fasthttp libary https://github.com/valyala/fasthttp I don't suppose the hand tuned microhttp parser supports h2? Pipelining is a dead technology that was never really alive. For those who aren't…
comment by shanemhansen · 2017-02-01 · in Million requests per second with Python -
…support HTTP/2 or web sockets yet. If you don't need either, it is a fantastic library. Source: https://github.com/valyala/fasthttp/blob/master/TODO
comment by caleblloyd · 2016-09-29 · in Armor – Simple HTTP server, supports HTTP/2 and auto TLS -
The performance comes from using https://github.com/valyala/fasthttp instead of the stdlib net/http. From this project's FAQ: >Why creating yet another http package instead of optimizing net/http? Because net/http API limits many…
comment by mappu · 2016-06-21 · in Iris: Fast back-end web framework for Go -
…incompatible implementations of relatively low-level functionality in Golang, for example fasthttp: https://github.com/valyala/fasthttp I'm all for standardizing on one solution when the time comes. Rust will have an async I/O story. But…
comment by pcwalton · 2016-05-10 · in Show HN: Hydrogen, a multithread non-blocking Linux server framework in Rust -
Never mind, just found it https://github.com/valyala/fasthttp
comment by pdappollonio · 2016-02-26 · in TechEmpower Framework Benchmarks Round 12 – Race Against the Thermite