Atreugo alternatives and similar packages
Based on the "Web Frameworks" category.
Alternatively, view atreugo alternatives based on common mentions on social networks and blogs.
-
Gin
Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin. -
Iris
The fastest HTTP/2 Go Web Framework. New, modern and easy to learn. Fast development with Code you control. Unbeatable cost-performance ratio :rocket: -
Gorilla WebSocket
DISCONTINUED. A fast, well-tested and widely used WebSocket implementation for Go. -
GoFrame
GoFrame is a modular, powerful, high-performance and enterprise-class application development framework of Golang. -
goa
🌟 Goa: Elevate Go API development! 🚀 Streamlined design, automatic code generation, and seamless HTTP/gRPC support. ✨ -
GoFr
An opinionated GoLang framework for accelerated microservice development. Built in support for databases and observability. -
Huma
A modern, simple, fast & flexible micro framework for building HTTP REST/RPC APIs in Go backed by OpenAPI 3 and JSON Schema. -
Faygo
Faygo is a fast and concise Go Web framework that can be used to develop high-performance web app(especially API) with fewer codes. Just define a struct handler, faygo will automatically bind/verify the request parameters and generate the online API doc. -
go-server-timing
DISCONTINUED. Go (golang) library for creating and consuming HTTP Server-Timing headers -
golongpoll
golang long polling library. Makes web pub-sub easy via HTTP long-poll servers and clients :smiley: :coffee: :computer:
CodeRabbit: AI Code Reviews for Developers
Do you think we are missing an alternative of Atreugo or a related project?
Popular Comparisons
README
Atreugo
High performance and extensible micro web framework with zero memory allocations in hot paths.
It's built on top of fasthttp.
Install
go get github.com/savsgio/atreugo/v11
Supported Go versions:
- 1.19.x
- 1.18.x
- 1.17.x
- 1.16.x
Documentation
See: docs
Organization
Find useful libraries like middlewares, websocket, etc.
- See: Organization
Feature Overview
Optimized for speed. Easily handles more than 100K qps and more than 1M concurrent keep-alive connections on modern hardware.
Optimized for low memory usage.
Easy 'Connection: Upgrade' support via RequestCtx.Hijack.
Server provides anti-DoS limits.
Middlewares support:
- Before view execution.
- After view execution.
Easy routing:
- Path parameters (mandatories and optionals).
- Views with timeout.
- Group paths and middlewares.
- Static files.
- Serve one file like pdf, etc.
- Middlewares for specific views.
- fasthttp handlers support.
- net/http handlers support.
Common responses (also you could use your own responses):
- JSON
- HTTP
- Text
- Raw
- File
- Redirect
Examples:
Go to examples to see how to use Atreugo.
Note:
*atreugo.RequestCtx
is equal to *fasthttp.RequestCtx
, but with extra functionalities, so you can use
the same functions of *fasthttp.RequestCtx
. Don't worry :smile:
Benchmark
Best Performance: Atreugo is one of the fastest go web frameworks in the go-web-framework-benchmark.
- Basic Test: The first test case is to mock 0 ms, 10 ms, 100 ms, 500 ms processing time in handlers.
- Concurrency Test (allocations): In 30 ms processing time, the test result for 100, 1000, 5000 clients is:
* Smaller is better
Contributing
Feel free to contribute or fork me... :wink: