httprouter

A high performance HTTP request router that scales well (by julienschmidt)

Httprouter Alternatives

Similar projects and alternatives to httprouter

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better httprouter alternative or higher similarity.

Suggest an alternative to httprouter

Reviews and mentions

Posts with mentions or reviews of httprouter. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-10-07.
  • Swagger-UI gives a 404 not found error when using Julien Schmidt's HTTP router
    1 project | reddit.com/r/golang | 27 Oct 2021
    I'm trying to set up the swagger using julien schmidt's HTTP router, but the setup returns a 404 Error Not Found every time. Anything that I'm missing out on here. Link to the router: https://github.com/julienschmidt/httprouter
  • HttpRouter
    1 project | reddit.com/r/devopskhan | 27 Oct 2021
  • BunRouter: Zero allocations HTTP router for Go
    2 projects | reddit.com/r/golang | 7 Oct 2021
    As for the first question, see https://github.com/julienschmidt/httprouter/issues/73 and the lack of middlewares.
  • Go for Backend development
    4 projects | reddit.com/r/golang | 6 Sep 2021
    Pass on the frameworks at first. just use the std library's net/http package and maybe a really basic router like julien schmidt's httprouter(https://github.com/julienschmidt/httprouter) to do your requests and use pgx(https://github.com/jackc/pgx) for postrgres.
  • What are your favorite packages to use?
    55 projects | reddit.com/r/golang | 15 Aug 2021
    httprouter for routing. Several years ago (5 years ago maybe) when I started using Go, I always tried to use the best and fastest packages and this package boasts itself as the fastest router for Go. Fast forward to today, I'm not sure if it still the fastest around, but it's stable and I've never had issues with it, so I keep using it.
  • Noob here. Need recommendation for best REST API framework.
    12 projects | reddit.com/r/golang | 19 Jul 2021
    I use (and love) gorilla/mux as well as julienschmidt/httprouter. They are both on the "lightweight" end of the spectrum. Nothing (to my knowledge) beats the performance of julienschmidt/httprouter, but routing isn't going to be your main bottleneck anyway, so I don't think it matters too much. If you wanted to get started with gorilla, gowebexamples.com is a nice starting point.
  • What's your favourite (go) web framework?
    5 projects | reddit.com/r/golang | 13 Jun 2021
    For me, the middle ground is best, chi, gin, httprouter are the sweetspot. But that's based on skills, style, and requirements (and experience - I've used all the ones I have mentioned in anger)
  • Networking with go
    2 projects | reddit.com/r/golang | 3 Apr 2021
  • What should i pay attention to when building web server that should hold long connections
    2 projects | reddit.com/r/golang | 24 Mar 2021
    therefore, use the gorilla mux router but don't use gorilla sessions, just build your server as being a request based api. If you want to build a chat application or a video streaming platform, then just build your own concept of a session (gorilla is great don't get me wrong, but it's a dependency). I agree with not using gorilla session as it's unnecessarily heavy and it sounds like OP could get away with returning a token to the clients which they'll set as a http header on every request, if sessions are even needed. That being said gorilla mux is also a dependency and pretty much the worst performing router out there. Use the stdlib mux or if you need something more sofisticated I'd recommend httprouter or chi but chi had a semver issue recently and the community was pretty pissed about it so maybe not chi. Using the gorilla mux is also a dependency.
  • Choosing building blocks to move faster
    4 projects | dev.to | 1 Feb 2021
    Another common reason to decide against using an existing component is when it doesn't satisfy your requirements. For this project, I needed to prioritize the performance of the web server, and so I knew I needed an HTTP framework that performed well across a number of benchmarks, but I also needed some unusual capabilities such as being able to swap out the router in real-time. In the end, I decided on a hybrid approach for the web server, choosing to build a custom framework around the well-loved httprouter, which granted the majority of what I needed, and had some extremely well thought-out integration points that made it easy for me to build on top of it. In the case of the message bus, I also had a requirement of decentralization, which the majority of available projects are not.
  • Creating an HTTP server in Go using gin
    4 projects | dev.to | 16 Nov 2020
    httprouter is a fast router for Go that implements a lot of features of which a few are Path auto-correction, Zero Garbage, Best Performance.

Stats

Basic httprouter repo stats
11
13,415
0.0
20 days ago

julienschmidt/httprouter is an open source project licensed under BSD 3-clause "New" or "Revised" License which is an OSI approved license.

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
Find remote Go jobs at our new job board 99remotejobs.com. There are 7 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.