Today I Learned - Rocky Kev

TIL about why Node was invented

POSTED ON:

TAGS:

Today I learned about why Node was created.

Ryan Dahl, a PHP developer, faced some difficult issues developing features with intense input and output flow using synchronous programming and multi-threaded server-side platforms. Traditional server-side programming languages like Java and PHP - they were made to handle multiple requests simultaneously by spawning new threads or processes for each request. You can only grow as fast as how much 'metal' you throw in there.

Node.js was built to solve a specific problem: deal with intense asynchronous input and output events to scale. It is based on an event-driven, non-blocking I/O model, which allows it to handle large numbers of connections simultaneously using a single thread.

This makes Node.js ideal for building real-time web applications, streaming applications, and other network services that require high concurrency and low latency.

One of the key features of Node is that there's No Buffering.

Node.js applications never buffer data, which dramatically reduces the processing time of uploading files, such as videos or audios. In other words, it simply outputs data in chunks, meaning that, for example, a user can watch videos without any interruption.

Basic Concepts of Node.js


Related TILs

Tagged:

TIL what is npm Script

Despite their high usage they are not particularly well optimized and add about 400ms of overhead. In this article we were able to bring that down to ~22ms.

TIL keywords in package.json

Today I learned what keywords are in a package.json file! It's a collection of keywords about a module. Keywords can help identify a package, related modules and software, and concepts.

TIL functional async/await

PLACEHOLDER