Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FastSimpleServer for using Julien Schmidt’s httprouter #43

Closed
heunglee opened this issue Mar 30, 2016 · 2 comments
Closed

FastSimpleServer for using Julien Schmidt’s httprouter #43

heunglee opened this issue Mar 30, 2016 · 2 comments

Comments

@heunglee
Copy link

I am developing an API with gizmo microservice toolkit. One of use cases is a sudden load spike for short period of time like 4 hours 2 days per week. For the use case, I am trying to optimize performance of the API in various parts as much as I can. A a part of the optimization, I would like to incorporate HttpRouter in gizmo Sever. Based on the benchmarks of various Go http routers (https://github.com/julienschmidt/go-http-routing-benchmark), HttpRouter shows very good performance with very low heap allocation rate. At this point, SimpleServer uses Gorilla mux as a http router. To use HttpRouter, it needs FastSimpleServer , which is planned this year per http://open.blogs.nytimes.com/2015/12/17/introducing-gizmo. I am looking forward to adding FastSimpleServer with HttpRouter to gizmo for those who want HttpRouter as a http router.

@jprobinson
Copy link
Contributor

Instead of creating a FastSimpleServer, I've created a new Router interface that works with server.SimpleServer and server.RPCServer. It allows the use of either Gorilla web toolkit's mux or Julien Schmidt’s httprouter: #44

@jprobinson
Copy link
Contributor

💥 This has been merged into master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants