codewars / runner

Issue tracker for Code Runner
33 stars 8 forks source link

Add Fastify for JavaScript #192

Open DonaldKellett opened 2 years ago

DonaldKellett commented 2 years ago

Please complete the following information about the package:

Fastify is a "fast and low overhead web framework, for Node.js" considered as a modern replacement of Express by many Node.js developers specializing in RESTful HTTP(S) services. According to its homepage, it is:

According to their benchmarks, Fastify can handle about 53976 requests per second, a whopping 340% increase in performance compared to Express' 12267 requests per second.


:+1: reaction might help to get this request prioritized.

Voileexperiments commented 2 years ago

Do we really need to add another web framework in JS environment?

If we're talking about HTTP server libraries, we already have React and express (not to mention http/https exists). Besides, there are barely any katas that utilizes this topic, and the existing ones are elementary level so adding another web framework isn't really helping making content that contains actual value. This is also an issue for many React katas, they're really just elementary level katas teaching React-specific concepts that aren't well explained in the official documentation, when they should belong to, you know, the official documentation.

If we're instead talking about HTTP client libraries, like the handful of JS scraping katas (such as this), there are already 6 whooping libraries in the current CW Node 14.x environment that can make HTTP requests: jsdom, request, express, axios, CheerioJS (and http/https, which request is a wrapper of).

That is, we can certainly add more newer web libraries as trends rise and fall, but we aren't even utilizing the existing libraries well. Adding more libraries will divert even more attention from the existing libraries.