1 / 44

Node.js Architecture | NodeJS Architecture Explained | NodeJS Tutorial For Beginners | Simplilearn

This video will help you understand all about the Node.js architecture. Node.js architecture is all about managing the incoming requests and providing an appropriate repsonse to each of those requests. This video dives deeper into the working of Node.js and the workflow of the whole server environment.<br>This Node.js training enables you to build network applications quickly and efficiently using JavaScript. The Node.js certification training course is designed to help developers understand and build web applications with the help of JavaScript.<br><br>Node.js Training Key Features<br>1. 100% Money Back Guarantee<br>2. 36 hours of instructor-led online training<br>3. Three real-life, industry-based projects<br>4. 16 chapter-end quizzes<br>5. Master Node.js, Socket.io, Express.js with MongoDB, and SQLite<br>6. Flexibility to choose classes<br><br>Node.js Course Overview:<br>The Node. js certification training course helps you gain an in-depth knowledge of concepts such as Express.js, Node Packet Manager (NPM), shrink-wrap, NPM Vet, REST, Express.js with MongoDB, and SQLite CRUD operations. This Node.js training focuses on the essential concepts of Node.js and provides hands-on experience in building an HTTP server.<br><br>Eligibility:<br>This Node.js Certification Training is ideal for technical project managers, technical leads, full-stack web developers, quality analysts, architects, and students or aspiring professionals who wish to lead web development.<br><br>ud83dudc49Learn more at: https://bit.ly/2W6kBXN

Simplilearn
Download Presentation

Node.js Architecture | NodeJS Architecture Explained | NodeJS Tutorial For Beginners | Simplilearn

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. What’s in it for you? Web Applications

  2. What’s in it for you? Web Applications Node.js Architecture

  3. Click here to watch the video

  4. What’s in it for you? Web Applications Node.js Architecture Advantages

  5. Web Applications

  6. In the Forefront User interacts only with the “Client” of the web application, the rest is handled by “Server” Server Database Client

  7. Behind the Scenes Client Server Database

  8. Behind the Scenes Client Server Database

  9. React JS, Angular Client Server Database

  10. React JS, Angular Node.js, PHP, Java Client Server Database

  11. React JS, Angular Node.js, PHP, Java MySQL, MongoDB Client Server Database

  12. React JS, Angular • User interacts with the “Client” of a web application Client

  13. Node.js, PHP, Java • User interacts with the “Client” of a web application • Server is responsible for taking the client requests, performing the required tasks, and sending the responses back to the clients Server

  14. MySQL, MongoDB • User interacts with the “Client” of a web application • Server is responsible for taking the client requests, performing the required tasks, and sending the responses back to the clients • Database stores the data for a web application. The data can be created, updated and deleted whenever the client requests Database

  15. Node.js Architecture

  16. Architecture • Node.js uses “Single Threaded Event Loop” architecture to handle multiple concurrent clients

  17. Architecture • Node.js uses “Single Threaded Event Loop” architecture to handle multiple concurrent clients • Node.js Processing model is based on the JavaScript Event based model along with the JavaScript callback mechanism.

  18. Node.js Server Event Queue Computation Operation Complete Database Event Loop File System Requests Thread Pool

  19. Node.js Server Event Queue Computation Database Event Loop File System Requests Thread Pool

  20. Node.js Server Event Queue Computation Operation Complete Database Let’s now get to know each part of the Node.js architecture Event Loop File System Requests Thread Pool

  21. Node.js Server Event Queue Computation Database Event Loop File System Requests Thread Pool

  22. Node.js Server Event Queue Computation Database Event Loop File System Requests Thread Pool

  23. Node.js Server Event Queue Computation Operation Complete Database • Clients send request to Web Server Event Loop File System Requests Thread Pool

  24. Node.js Server Event Queue Computation Operation Complete Database • Clients send request to Web Server • Requests can be : • querying for data Event Loop File System Requests Thread Pool

  25. Node.js Server Event Queue Computation Operation Complete Database • Clients send request to Web Server • Requests can be : • querying for data • deleting data Event Loop File System Requests Thread Pool

  26. Node.js Server Event Queue Computation Operation Complete Database • Clients send request to Web Server • Requests can be : • querying for data • deleting data • updating the data, etc. Event Loop File System Requests Thread Pool

  27. Node.js Server Node.js is a server-side platform that takes requests from users, processes those requests and returns responses to the corresponding users Event Queue Computation Database Event Loop File System Requests Thread Pool

  28. Node.js Server Node.js receives requests and places them into the Event Queue Event Queue Computation Database Event Loop File System Requests Thread Pool

  29. Node.js Server Event Queue Computation Database Event Loop File System Requests Node.js internally maintains a Thread Pool Thread Pool

  30. Node.js Server Event Queue Computation Event Loop indefinitely receives requests and processes them Database Event Loop File System Requests Thread Pool

  31. Node.js Server Event Queue Computation External components such as database, file system, and computation Database Event Loop File System Requests Thread Pool

  32. Node.js Server Event Queue Computation Operation Complete Database Now let’s go ahead and understand the workflow Event Loop File System Requests Thread Pool

  33. Requests

  34. Event Queue Requests

  35. Event Loop Event Queue Requests

  36. Non- Blocking Operations Event Loop Event Queue Requests I/O Polling (epoll, kqueue, etc.)

  37. Blocking Operations Non- Blocking Operations Event Loop Event Queue Thread Pool Requests I/O Polling (epoll, kqueue, etc.)

  38. Blocking Operations Computation External Resources Database File System Non- Blocking Operations Event Loop Event Queue Thread Pool Requests I/O Polling (epoll, kqueue, etc.)

  39. Advantages

  40. Advantages • Handling multiple concurrent client requests is fast and easy

  41. Advantages • Handling multiple concurrent client requests is fast and easy • There is no need of creating multiple threads because of Event loop

  42. Advantages • Handling multiple concurrent client requests is fast and easy • There is no need of creating multiple threads because of Event loop • Node.js utilizes less resources and memory

More Related