Mux – A lightweight, fast HTTP request router for Go
21–30 of 80 posts
Re: Mux – A lightweight, fast HTTP request router for Go
#22Earlier quoted context omitted.
That's why we have namespaces. There's gorilla/mux and now there's donutloop/mux.
This. It's actually more idiomatic to use the same name, then you can often just sub out one library for another without any hassle.
Re: Mux – A lightweight, fast HTTP request router for Go
#23Re: Mux – A lightweight, fast HTTP request router for Go
#24Earlier quoted context omitted.
That's why we have namespaces. There's gorilla/mux and now there's donutloop/mux.
This. It's actually more idiomatic to use the same name, then you can often just sub out one library for another without any hassle.
Re: Mux – A lightweight, fast HTTP request router for Go
#25In what sense? Can it support many, many more routes? Or does it scale better in the sense that it causes zero or near zero GC pressure? Better than what?
Re: Mux – A lightweight, fast HTTP request router for Go
#26Earlier quoted context omitted.
That's why we have namespaces. There's gorilla/mux and now there's donutloop/mux.
This. It's actually more idiomatic to use the same name, then you can often just sub out one library for another without any hassle.
Re: Mux – A lightweight, fast HTTP request router for Go
#27Earlier quoted context omitted.
This. It's actually more idiomatic to use the same name, then you can often just sub out one library for another without any hassle.
What? No! There's no indication at all these two libraries are compatible - why would you want two completely disparate projects to give some indication they support the same interface?
Re: Mux – A lightweight, fast HTTP request router for Go
#28Does it use a trie? If not, it probably should. Here's a wonderful talk on using that datastructure (with go) for the gov uk url router: https://gdstechnology.blog.gov.uk/2013/12/05/building-a-new-... The Vulcan proxy from Mailgun does the same thing: http://vulcand.github.io/proxy.html#route It looks like it doesn't, so existing open source golang url routers will perform much better, contrary to this post. The one…
Looks like it uses regexp... There isn't any benchmark code as one would expect when making a claim that it's "fast".
Re: Mux – A lightweight, fast HTTP request router for Go
#29Does it use a trie? If not, it probably should. Here's a wonderful talk on using that datastructure (with go) for the gov uk url router: https://gdstechnology.blog.gov.uk/2013/12/05/building-a-new-... The Vulcan proxy from Mailgun does the same thing: http://vulcand.github.io/proxy.html#route It looks like it doesn't, so existing open source golang url routers will perform much better, contrary to this post. The one…
Looks like it uses regexp... There isn't any benchmark code as one would expect when making a claim that it's "fast".
Re: Mux – A lightweight, fast HTTP request router for Go
#30I don't usually say this but - isn't this a poor choice of name? Gorilla framework's Mux [0] has been around awhile and is quite popular for routing in Go. [0] https://github.com/gorilla/mux