Skip to main content

Posts

Showing posts with the label NodeJs

Basic concepts on NodeJs

Usecases of NodeJS. Walmart and ebay. Node is not the best platform for CPU intensive heavy computational applications. But it is ideal for building fast and scalable network applications.  NodeJS is capable of handling a huge number of simultaneous connections with high throughput. For each connection NodeJS does not spawn new Thread causing max out of memory instead handle all in single thread using non-blocking I/O model. Using this architecture NodeJS has achieved over 1 Million concurrent connections. Bubbling errors up to NodeJS core event loop will cause crashing the entire program. Netflix and Uber. NodeJs is best for, I/O bound applications. Data streaming applications. Data intensive real-time applications. JSON APIs based applications. Single page applications. Modules in NodeJS. In order  a design to be reliable and maintainable should avoid defining variables and functions in the global scope. Instead we can use modular...

Introduction to NodeJS

NodeJS is know as a  highly scalable, data intensive and  a real time back-end service. NodeJS is an open source, cross platform runtime environment for server-side and networking applications. To build a back-end services there are other tools and framework such as rails, Django, asp.net etc.. Node is not a programming language not a framework. There are few characteristics that make Node more popular. Characteristics of NodeJS. Easy to get started. Can be used for prototyping and agile development. It is good to build super fast and highly scalable services.          Eg -: Paypal, Uber, Netflix, Walmart It use JavaScript. Source code will be cleaner and more consistence. Large Eco-system of open source library. Node is a runtime environment for executing JavaScript code. Runtime environment of NodeJs.  In JavaScript the application runs inside the browser . Browser has a JavaScript engine taht convert the code to ...