What is Nodejs?
The DifferanceIn other programming languages that work server-side, when the user makes any request, only that request is answered and other requests are queued. A request taking a long time can affect other users.
Since Node.js does not block and process commands, it does not slow down the system with long-lasting commands and also responds to other users. The best example of this can be called the food ordering system. In normal server-based programming languages, when a meal is ordered, customers standing in other rows wait for the order to be prepared. When a food order arrives, Node.js notifies the chef of the order and takes notes, and then takes the next customer's order.
Whichever of the given food orders is prepared first, responds to that food order. Therefore, the customer does not wait long in line for his meal. Thanks to this structure, real-time applications such as game systems and instant messaging can be made easily and with less cost.
Express.jsExpress.js package is a Node.js based web application server framework Building a robust API is quick and easy, thanks to the unlimited HTTP layers and utilities that Express.js offers. Express.js is also one of the components of the MEAN software bundle. MEAN (MongoDB, Express.js, Angular.js, and Node.JS) is a free and open source software bundle used to develop dynamic websites and web applications. Also, Express.js is part of many frameworks besides MEAN.
What is ORM (Object Relational Mapping)?SQL language is used to perform a transaction in the database. Sometimes we have to write a long SQL query even for simple operations. At this point, ORM technology makes database operations that can be done while working with any platform almost independent from SQL. This is simply the logic of the ORM. We create objects and functions to represent each structure in the database with the OOP / Object Oriented Programming language that we use while developing the project, and we use these objects and functions while performing the operation.
Simpler object insertion:With SQL: With ORM:
In short, ORM technology saves you from writing long SQL codes for simple operations.