A high-performance HTTP request router for the fasthttp server, optimized for speed and minimal memory footprint.
FastHttpRouter is a high-performance HTTP request router designed for the fasthttp server framework in Go. It efficiently routes incoming HTTP requests to handlers using a radix tree structure, solving the need for fast and scalable routing in high-concurrency applications. The router is optimized for minimal memory usage and maximum speed, making it ideal for performance-critical web services.
Go developers building high-performance web servers or APIs with the fasthttp framework who need efficient and reliable request routing.
Developers choose FastHttpRouter for its exceptional speed, zero garbage allocation during matching, and explicit routing that eliminates ambiguity. It is a stable, production-tested router that scales well under heavy load.
A high performance fasthttp request router that scales well
Benchmarks in the README show it outperforms other routers, handling high concurrency with minimal latency, making it ideal for high-throughput applications.
Each request matches exactly one route, eliminating ambiguity and improving SEO, as highlighted in the features section.
Automatically corrects trailing slashes, wrong cases, and superfluous elements like ../, reducing developer overhead for URL normalization.
The matching process generates no heap allocations for paths without parameters, optimizing memory usage in performance-critical scenarios.
Locked into the fasthttp ecosystem, which may not be compatible with libraries or tools built for the standard net/http package, limiting portability.
As a router only, it lacks integrated middleware or advanced web framework features, requiring manual chaining for common functionalities like authentication.
The README notes no high-level frameworks are built on it yet, indicating a smaller ecosystem compared to more established routers like httprouter.
lightweight, idiomatic and composable router for building Go HTTP services
Package gorilla/mux is a powerful HTTP router and URL matcher for building Go web servers with 🦍
A high performance HTTP request router that scales well
Go Router + Middleware. Your Contexts.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.