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

Using other framework instead of Gorilla Mux #13

Open
i-am-yuvi opened this issue Feb 8, 2023 · 3 comments
Open

Using other framework instead of Gorilla Mux #13

i-am-yuvi opened this issue Feb 8, 2023 · 3 comments

Comments

@i-am-yuvi
Copy link
Contributor

Is your proposal related to a problem?

We're using Gorilla Mux as http webframework which has very low performance. We can see here.
Also Gorilla Mux project has been archived due to no active maintainer, which means there will be no future updates.

Describe the solution you'd like

I'ld like to suggest the use of Fiber which is very fast and has very low latency. The fiber can be easily understood by the new developers, also it has nice documentation. The composite benchmarks of fiber is far above than the gorilla/mux framework.

@ankitm123
Copy link
Member

Why not use something that is compatible with net/http? How about chi which is a pretty performant router and actively maintained.
Fiber is good for very specific use cases, but the fact that it breaks compatibility with standard library makes it pretty unattractive to me.

Also if performance is an issue, we should measure it first in this repo before we seriously think about fiber.

@i-am-yuvi i-am-yuvi changed the title Using Go Fiber instead of Gorilla Mux Using other framework instead of Gorilla Mux Feb 8, 2023
@i-am-yuvi
Copy link
Contributor Author

Yes, I think you're right. Since we're building a restful type API, chi would be better for building a scalable RESTful API and it is also compatible for net/http as well as standard library.

Should I go forward with chi?

@ankitm123
Copy link
Member

Yes, that would be awesome, thanks for looking into this :)

This was referenced Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants