Add Fiber: Express-inspired Go framework on fasthttp (~35k ⭐)#59
Open
BennyFranciscus wants to merge 5 commits intoMDA2AV:mainfrom
Open
Add Fiber: Express-inspired Go framework on fasthttp (~35k ⭐)#59BennyFranciscus wants to merge 5 commits intoMDA2AV:mainfrom
BennyFranciscus wants to merge 5 commits intoMDA2AV:mainfrom
Conversation
Fiber returns 200 by default for unmatched routes. Added a Use() middleware at the end to return 404 for any request that doesn't match a defined route, fixing the noisy resilience validation tests.
Owner
|
@BennyFranciscus revert last commit and disable noisy test. |
This reverts commit c101583.
Fiber (fasthttp) returns 200 for unmatched routes by design. Disabling noisy test per MDA2AV's request.
Collaborator
Author
|
Done — reverted the catch-all handler and removed |
Prefork uses SO_REUSEPORT + process forking which fails in restricted container environments. Fiber still performs well in single-process mode since fasthttp already uses goroutines for concurrency.
Benchmark ResultsFramework: Full log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fiber — Go Web Framework
Fiber is an Express-inspired Go web framework built on fasthttp. With ~35k stars, it's one of the three most popular Go web frameworks alongside Gin and Echo.
Why Fiber?
HttpArena already has a great Go lineup:
Fiber fills the obvious gap: a framework built on top of fasthttp. This creates an awesome comparison:
These are questions Go devs always ask when picking a framework. Now we can answer them with data.
Implementation Details
modernc.org/sqlite(no CGO)Endpoints
/pipeline/baseline11/baseline2/json/compression/upload/db/static/:filenameBuild
cc @Fenny @efectn @ReneWerner87 — thought it'd be cool to see how Fiber stacks up against raw fasthttp and the net/http-based Go frameworks in HttpArena! 🚀