Serksa
All Concepts
API & Backend

Backend Explained

1

What is it?

The <strong>backend</strong> is the part of a system that users don't see. It handles business logic, database operations, authentication, and everything that happens 'behind the scenes' on the server.

2

Think of it like...

The Kitchen of a Restaurant

Customers see the dining room (frontend), but the real work happens in the kitchen (backend).

🍽️

Frontend

Dining area (what you see)

👨‍🍳

Backend

Kitchen (where work happens)

🗄️

Database

Pantry (where ingredients are stored)

3

Visual Flow

👤User

Interacts with frontend

⚙️Backend

Processes logic

💾Database

Stores data

4

Where you see it

1

Receives Requests

Frontend sends user actions to backend

2

Validates Data

Checks if the request is valid and authorized

3

Business Logic

Runs calculations, rules, workflows

4

Database Operations

Reads or writes data as needed

5

Sends Response

Returns result to frontend

5

Common Mistake

Wrong

Backend is just a database

Correct

Backend is the code that runs on the server. It includes business logic, APIs, authentication, and talks to the database. The database is just one component the backend uses.

💡 Real-World Example

When you post on Facebook:

1

Frontend: You type and click 'Post'

2

Backend: Validates you're logged in

3

Backend: Checks post content for spam/violations

4

Backend: Saves post to database

5

Backend: Notifies your friends

6

Frontend: Shows success message