0% found this document useful (0 votes)
17 views10 pages

NodeJS ArchitectureNode

Uploaded by

sushree007
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views10 pages

NodeJS ArchitectureNode

Uploaded by

sushree007
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

NodeJS

Architecture

PW SKILLS
List of content:
1. Architecture of nodeJS

2. Working of nodeJS

3. Components of nodeJS

4. Advantages

PW SKILLS
Node Js

PW SKILLS
How does single-thread work?

PW SKILLS
Why does [Link] use “Single-
threaded event loop model”
architecture?

PW SKILLS
Architecture
● The architecture of [Link] comprises two main concepts: an Asynchronous model that
resembles the event-based approach of JavaScript, and Non-blocking I/O operations.

PW SKILLS
Components :
[Link] architecture consists of several components that work together to handle
incoming client requests and process responses. These components are:
1. Requests
2. [Link] Server.
3. Event Queue
4. Event Loop.
5. Thread Pool.
6. External Resources

PW SKILLS
Working :
1. Incoming client requests are received by [Link], which can be either simple
(non-blocking) or complex (blocking), depending on the task to be performed.
2. Querying for specific data involves searching for particular data in a database.
3. Deleting data involves sending a request to delete specific data or performing a
deleting query.
4. Updating data involves sending a request to change or update a set of data or
performing an updating query on a particular row of tables to update a specific
entry in the database.
5. [Link] adds incoming client requests to its event queue.
6. The event loop in [Link] processes the requests one by one and checks whether
external resources are required. If so, the requests are allocated with external
resources; otherwise, they move on to the next step.
7. Non-blocking (simple) requests are processed in the event loop, such as I/O
polling, and responses are returned to the respective clients.

PW SKILLS
Advantages of NodeJS:
● Its asynchronous model and non-blocking I/O operation improve the scalability
and performance of web applications built on other frameworks.
● Node js can easily handle multiple client requests without requiring multiple
threads, consuming less memory and resources. Additionally, it is highly scalable
and provides high performance.
● Node js is also flexible with multiple frameworks and makes the development
process easier.

PW SKILLS
THANK
YOU
PW SKILLS

You might also like