3 ms·
There are definitely few things which are done in different way in Deno as part of re-design. But that does not mean NodeJS does not take care of it or at lea
by truth_seeker 6y ago
There are definitely few things which are done in different way in Deno as part of re-design.
But that does not mean NodeJS does not take care of it or at least provide the some API to tackle that issue.
In this case, Stream interface API in NodeJS are the solution to the problem. They help you build layer over native EventEmitter interface or rather strictly speaking they help extend it.
This links might be helpful for you.
Backpressuring in Streams - https://nodejs.org/es/docs/guides/backpressuring-in-streams/ https://nodejs.org/es/docs/guides/backpressuring-in-streams/
Official Docs on Stream API - https://github.com/nodejs/node/blob/master/doc/api/stream.md https://github.com/nodejs/node/blob/master/doc/api/stream.md
Note that HTTP server in NodeJS already implements it.