DEV Community

Akshat Sharma
Akshat Sharma

Posted on

Some important concepts for Backend || Part 2

Hey reader👋Hope you are doing well😊
While studying backend we find a lot of different terminologies coming in our path and if your basic is not clear you are going to scratch your head. Backend development is very much interesting if you know all the basics and all your concepts are clear. I have covered some of the terminologies in my last post. So in this post I'll be covering more basic terminology used in backend developement to make your learning pathway interesting. So let's get started 🔥

Cookie

Cookies are small pieces of data stored on a user's web browser. They are used to remember stateful information (such as items added in the shopping cart in an online store) or to record the user's browsing activity (like recording which pages were visited in the past).
Image description
Cookies are always set and controlled by the server. The web browser is only responsible for sending them across to the server with every request. In the following diagram, you can see that a GET request is made to the server, and the web application on the server chooses to set some cookies to identify the user and the language selected by the user in previous requests. In subsequent requests made by the client, the cookie becomes part of the request.
There are different types of cookies:

  • Session cookies: Temporary cookies that expire once you close your browser. They are used to track user activity during a single session like e-com websites use session cookies to track users' shopping cart items as they browse different pages of the site.

  • Persistent cookies: These remain on your device for a set period specified in the cookie. They are used to remember your preferences like news websites use persistent cookies to store preferred language, region, or layout settings.

  • Third-party cookies: Placed by a website other than the one you are currently visiting, these are often used for advertising and tracking across multiple websites. Ever searched for Ipad on Amazon and started seeing ads on other websites? That's third party cookies.

Caching

Caching is the process of storing copies of files in a cache, or temporary storage location, so that they can be accessed more quickly. Cache memory is located in CPU which stores the frequently used data for quicker access and processing.
Suppose you want to access your Instagram profile and you frequently access it so the request is made to server and instead of going in database again and again to generate response the data is stored in cache from where it is accessed easily in no time.
There are different types of caching.

Network Protocol

Network protocols are a set of rules outlining how connected devices communicate across a network to exchange information easily and safely. Protocols serve as a common language for devices to enable communication irrespective of differences in software, hardware, or internal processes.

Microservices

Microservices architecture is a more modern approach to building software applications, where the application is broken down into smaller, independent services that can communicate with each other through well-defined APIs. Each microservice is responsible for a specific business function, and can be developed, deployed, and scaled independently. It is also known as Distributed system.
Image description

Web Socket

A protocol that enables two-way, real-time communication between the client and the server over a single, long-lived connection. WebSockets are often used for applications that require live updates, like chat apps or real-time gaming.
Image description

REST

Representational State Transfer (REST) is an architectural style that defines a set of constraints to be used for creating web services. REST API is a way of accessing web services in a simple and flexible way without having any processing.It’s used to fetch or give some information from a web service. All communication done via REST API uses only HTTP request.

HTTP Methods

The request methods used in RESTful APIs to perform operations on resources. Common methods include:

  • GET: Retrieve data from the server.

  • POST: Send data to the server to create a new resource.

  • PUT: Update an existing resource on the server.

  • DELETE: Remove a resource from the server.

RESTful web services are very popular because they are light weight, highly scalable and maintainable and are very commonly used to create APIs for web-based applications

SSL/TLS (Secure Sockets Layer/Transport Layer Security)

Protocols that provide secure communication over a computer network. SSL/TLS are used to encrypt data transmitted between a client and a server to ensure privacy and data integrity.

Design Pattern

Design patterns are reusable solution to commonly occurring problem within a given context in Software design. It’s not a finished design that can be transformed directly into app. Rather, it is a template to solve a recurring design problem in code. Design patterns are meant for common problem-solving.

So these were all important terminologies. If you want to do better in backend development I would suggest to understand basics very deeply also you should know the basics of System Design.
You can read System Design here -:
https://medium.com/@akshatsharma0610
So this is it for this blog. I hope you have understood it well.
Thankyou 🤍

Top comments (4)

Collapse
 
drignet profile image
Odibe Ekene

We are still waiting for new tutorial

Collapse
 
akshat0610 profile image
Akshat Sharma

Yes it is on way

Collapse
 
drignet profile image
Odibe Ekene

Ok thanks

Collapse
 
drignet profile image
Odibe Ekene

I really appreciate your works