Hacker GitHub

← All repos

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

Mentions per year 34 mentions · busiest year 2019 (5)
20082026
  1. …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
  2. …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
  3. …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…
  4. …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)
  5. …- 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?
  6. …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?
  7. …(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
  8. …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
  9. [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
  10. https://github.com/valyala/fasthttp It has 16.8k stars. Is that good?
  11. …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
  12. …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
  13. …of the project: https://github.com/savsgio/atreugo/blob/master/go.mod it uses well known libs like github.com/valyala/fasthttp.
  14. …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...
  15. Check out https://github.com/valyala/fasthttp
    comment by deepsun · 2019-02-06 · in Benchmarking Go vs. Node vs. Elixir
  16. …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?
  17. 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…
  18. 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
  19. Have you checked out https://github.com/valyala/fasthttp
  20. …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
  21. https://github.com/valyala/fasthttp Crazy fast and has worked fine under heavy load.
  22. …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
  23. …than the one included in go. "In short, fasthttp server is up to 10 times faster than net/http." https://github.com/valyala/fasthttp
  24. 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
  25. …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
  26. 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…
  27. …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…
  28. Never mind, just found it https://github.com/valyala/fasthttp