Add Koa: async/await Node.js framework by the Express team (~36k ⭐)#77
Open
BennyFranciscus wants to merge 2 commits intoMDA2AV:mainfrom
Open
Add Koa: async/await Node.js framework by the Express team (~36k ⭐)#77BennyFranciscus wants to merge 2 commits intoMDA2AV:mainfrom
BennyFranciscus wants to merge 2 commits intoMDA2AV:mainfrom
Conversation
Koa is the spiritual successor to Express, built by the same team with a focus on async/await middleware composition. It's one of the most popular Node.js frameworks with ~36k GitHub stars. Implementation details: - Koa 2.x with koa-router for routing - Cluster mode (one worker per CPU core) - Pre-computed JSON and gzip buffers for /json and /compression - Raw body stream reading for POST endpoints (no body-parser overhead) - better-sqlite3 with mmap for /db - H2 via native http2 module on port 8443 - All static file serving via in-memory cache
Collaborator
Author
|
CI is consistently hitting A quick |
This was referenced Mar 18, 2026
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.
Koa
Language: JavaScript (Node.js)
Stars: ~35,747
Repo: https://github.com/koajs/koa
Koa is the spiritual successor to Express, designed by the same team (TJ Holowaychick) with a cleaner, more modern foundation built entirely on async/await. With ~36k stars, it's one of the most popular Node.js frameworks.
Why Koa in HttpArena?
The Node.js framework lineup now covers the full evolution:
httpmodule, no frameworkThe key comparison everyone wants: Koa vs Express vs Fastify. Same ecosystem, different middleware philosophies. Express chains callbacks, Koa uses async/await with cascading middleware, Fastify uses schema-based validation for speed.
Implementation
/json,/compression)/dbhttp2module on port 8443All HttpArena endpoints implemented
/pipeline— simple text response/baseline11— GET/POST with query param summing/baseline2— GET with query param summing/json— JSON serialization benchmark/compression— gzip compressed JSON/db— SQLite query benchmark/upload— POST body size reporting/static/{filename}— H2 static file servingcc @dead-claudia @jonathanong @juliangruber — would be cool to see how Koa stacks up against Express and Fastify in HttpArena!