Open keinsell opened 9 months ago
So far the best potential solution I've found is hyper-express
https://www.techempower.com/benchmarks/#hw=ph&test=json§ion=data-r22&l=yyku7z-cn3
I think Node is not that bad, maybe if we combine Deno or Bun with things like hyper-express
and build a little more improvements to typesystem on top of that (ex. how deepkit made bytecode typings) we can have really nice thing that will be productive.
The least performant things in JS are validation and serialization, so once solutions for these problems will be found it can definitely be better than express.js - but I would like to keep a compatiblity layer between express.js and fastify (through proxies)
The challenge to create a HTTP Server in JavaScript/TypeScript that will be able to handle single request in less than 5ms in local environment, the such server such include connection to database, authentication and overall end-to-end returning information to user. For learning purposes this can be extended to writing a simple HTTP in Golang and comparing it to Node.js.
40ms
delay as codebase delay from Nest.js and 20ms from Express.js where code itself is able to run in like 3ms. This shows up the platform is fucked up and I belive this can be done much better in multiple ways.Overall recommendedations for API is to response in less than 100ms to provide "instant" feeling to user as so will be standard I choose.