Backend key Concepts

Md Mustafizur Rahman Sayem
4 min readDec 23, 2021

CRUD Operations-

CRUD in a simple way C=Create, R=Read, U=Update, D=Delete. The basic operation that request-response is handled by the server and client is this CRUD operation.CRUD operation is important because we know we have to handle the data in the database, and these CRUD operations keep tracking the changes in the database with the help of off-course HTTP requests.

JWT-

JWT, J=JSON, W=Web, T=Token.So we can see that this JWT is actually a token that considers maintaining the web traffic like users authentication using these JSON web tokens or JWT. So when it comes to sharing information with clients as well as for servers, it’s very important to track a user’s activity to make a more secure web platform. Like a user can access certain things on the web, like if he/she is a registered user so their email address is verified so a certain user can access only their information, not everyone’s like information of ordering a product.

Mongoose-

Mongoose is a library for MongoDB and Node where these library helps to organize the object very smoothly using Object Data Modeling(ODM). This Mongoose library provides to manage a document’s logic or relationships between the data. And also helps to manage the data as a schema format, so that the schema can store in the MongoDB database, and it also provides how-to change the relationship on those objects/data stored in MongoDB.

Relational database (MySql)-

We already know that there is two kinds of databases like One is relational Databases and the next one is known as No-SQL databases.

So we can understand that relational databases focus on data relationships, which means how the data will be managed there should be some rules to handle and communicate those data. In a relationship, databases are organized with a set of tables, having rows and columns. And these rows can be or can not be unique depending on logic where we want to save a duplicate or we don’t want to save a duplicate. And this is handled by a primary key in a relational database. Connecting to different tables we need a foreign key to maintain the relation between multiple tables.

Aggregation-

We know that aggregation truly means combining data into one single data or entity.

So when we need to join or combine multiple data’s in the databases we need this aggregation function and this concept to handle the data so that it remains meaningful to understand the data for future purposes as well. Some Aggregation functions max, min, sum.

Node js-

Nodejs is a javascript run-time and nodejs handles large scalable applications on the network side. Nodejs works as an asynchronous event-driven style. If there is something to fetch and load from the server nodejs is working on that communication channel otherwise it sleeps. Javascript is a programming language and this language is run in web browsers. And Nodejs is an interpreter and run time environment where javascript and its libraries can run.

Nodejs is mainly worked for the application as if the request is non-blocking. So we can see that Nodejs is behaving as non-blocking. And this is the reason nodejs becomes popular.

Express js-

So as we know about Nodejs, now Expressjs makes it easier to handle these Nodejs functions/modules and make lesser code to handle the request, response. So if we wish to develop a web application more quickly and organized way we should use Expressjs. Let’s see how lesser code we can use in below Nodejs and Expressjs images-

That’s all for today.

Thank you

MD MUSTAFIZUR RAHMAN

Support me at Youtube:https://www.youtube.com/channel/UCU_GV9uLrxHl4-1WkTPzr1g

Linkedin:https://www.linkedin.com/in/md-mustafizur-rahman-sayem-22b856156/

Github:https://github.com/rahmancoder

--

--