π Backend Jargons Made Simple (Beginner-Friendly Guide)

When I started learning backend development, I kept hearing terms like protocols, databases, HTTP, and pub-sub. At first, they sounded complicated β but once I broke them down, everything started to make sense.
In this blog, Iβll explain these backend fundamentals in a simple and practical way.
This is my first blog where I break down backend concepts I recently learned in a simple way. Iβve been learning these concepts by following the Harkirat Singh youtube channel, especially his full stack roadmap video . His explanations helped me understand how backend systems actually work behind the scenes.
π 1. Communication Protocols (How Computers Talk)
For two computers to communicate, they must be connected through a network. But connection alone isnβt enough β they also need rules to understand each other.
These rules are called protocols.
π¦ Types of Protocols
πΉ Transport Layer Protocols
These control how data is sent between systems.
β TCP (Transmission Control Protocol)
Reliable and ordered communication
Ensures all data reaches correctly
Example: When you open a website, TCP ensures all files (HTML, CSS, JS) are received properly.
β‘ UDP (User Datagram Protocol)
Faster but less reliable
No guarantee of delivery
Example: Used in video streaming or online gaming where speed matters more than accuracy.
πΉ Application Layer Protocol
π HTTP (HyperText Transfer Protocol)
Used by browsers to communicate with servers
Works on top of TCP
Example Flow:
You type
google.comBrowser sends an HTTP request
Server responds with data (HTML page)
Browser renders it
ποΈ 2. Databases (Where Data Lives)
Backend applications deal with a lot of data β users, passwords, posts, etc.
Storing all this directly in backend code is inefficient and slow.
π So we use databases β a separate system designed to store and manage data efficiently.
π Types of Databases
πΉ SQL Databases (Structured)
MySQL
PostgreSQL
Data stored in tables (rows & columns)
Example:
| id | name | |
|---|---|---|
| 1 | Saga | saga@mail.com |
πΉ NoSQL Databases (Flexible)
MongoDB
Firebase
Data stored as JSON-like objects
Example:
{
"name": "Saga",
"email": "saga@mail.com"
}
π How Browser Interacts with Database
Browser never talks directly to the database.
Instead:
Browser β HTTP Request β Backend β Database
β
Fetch / Store Data
β
Browser β HTTP Response β Backend
β‘ Why Databases Are Needed
Backend alone becomes slow with large data
Databases are optimized for:
Fast queries
Efficient storage
Data security
π‘ 3. Messaging Systems (Pub/Sub)
As applications grow, direct communication between services becomes messy.
π Thatβs where Pub/Sub (PublishβSubscribe) comes in.
π§ Concept
Publisher β sends message
Subscriber β receives message
Message Broker β handles communication
π¦ Example
Imagine an e-commerce app:
User places an order
Order service publishes:
"Order Created"
Now multiple services can react:
Payment service β processes payment
Email service β sends confirmation
Delivery service β starts shipping
π All this happens without direct connection between services
β‘ Why Pub/Sub?
Loose coupling (services donβt depend on each other)
Scalable systems
Better performance
ποΈ 4. HTTP Server Architecture
Now letβs connect everything together.
π Request Flow
Browser β HTTP Server
The browser sends:
πΉ URL / Route
Example:
/users
/login
πΉ HTTP Methods
GET β Fetch data
POST β Send data
PUT β Update data
DELETE β Remove data
πΉ Headers
Extra information about request
Example:
Content-Type: application/json
Authorization: Bearer token
πΉ Query Parameters
Used to send small data in URL
Example:
/users?page=2&limit=10
π Pagination (Important Concept)
When there is a large amount of data, we donβt send everything at once.
π Instead, we send it in parts.
Example:
/products?page=1&limit=10
page=1β first set of datalimit=10β number of items per request
πΉ Request Body
Used in POST/PUT requests
Example:
{
"email": "test@gmail.com",
"password": "123"
}
πΉ Cookies
Used to store small data like:
Login sessions
User preferences
π€ Server Response
After processing, server sends response back.
πΉ Status Codes
200 β Success
201 β Created
403 β Forbidden
404 β Not Found
πΉ Response Types
π Text
Hello World
π¦ JSON
{
"message": "Success"
}
π HTML
Used to render web pages
πΉ Response Headers
Provide metadata about response
Example:
Content-Type: application/json
π Full Cycle Summary
Browser β HTTP Request β Server β Database
β
Process Data
β
Browser β HTTP Response β Server
π Final Thoughts
Understanding backend jargon is the first step toward becoming a solid developer.
Protocols β define communication rules
Databases β manage data efficiently
Pub/Sub β handles large-scale communication
HTTP β connects everything together
Once you understand these concepts, backend development becomes much easier and more logical.
π Whatβs Next?
Now that I understand the theory, I started implementing it by building an HTTP server from scratch in Node.js.
Thatβs where things started getting really interesting.
Thanks for reading π

