Load balancing is a concept that is used to increase the performance and uptime of the web servers. In load balancing, the network traffic is equally distributed to a group of servers, so that any one server would not get…
req and res objects in Express Js
You must have seen the req and res object passed to the callback functions in Express Js. You may have wondered, what are these parameters. req object : req object is passed to any route handler function or in middlewares.…
Difference between Sessions and Cookies
Sessions Session starts when you request the server for the first time and it remains till you close that site. The amount of time you have spent on the site is called a session. As sessions get deleted when the…
How to install Python?
1. Installing Python on Windows: Download the Installer: Go to the official Python website: python.org/downloads. Download the latest version of Python by clicking on the appropriate link for Windows. Run the Installer: After downloading, run the installer. Check the box…
What is Python?
Python is a high-level, interpreted programming language known for its readability and versatility. It was created by Guido van Rossum and first released in 1991. Here are some key aspects of Python.1. Easy to Learn and Use Syntax: Python’s syntax…
Sessions in Express Js
As we know HTTP is a stateless protocol, i.e it doesn’t stores any data. There are many cases where we have to store the user data to keep track of the user, here comes the use of sessions. When the…
Advantages and Disadvantages of Express Js
Express Js is a web framework used for creating server side code in Node Js. It is a lightweight framework, which offers almost all the necessary and basic features like routing and middlewares out of the box. Nowadays, the number…
Using MongoDB with Express Js
MongoDB is a NoSql database which is used to store a large volume of data. NoSql database not uses the tables and rows approach. In MongoDB the database is collection of documents, documents are collection of key-value pairs. Javascript developers…
Express Js Scaffolding
Scaffolding is the process of creating the skeleton of the project. In simple terms, the arrangement of different types of files in various folders. For example, managing all the CSS files, js files that we want to be public, in…
Templating in Express Js
Templating helps in converting the content of the static html page to dynamic. By using templating engines we can replace the values in html document with the actual data values. For example, if we want to show the employees and…