Backend
The backend is the server-side part of a software system.
It handles application logic, data access, persistence, security checks, and the interfaces that other systems or the frontend use to interact with the application.
What it does
A backend processes requests and returns data or results.
It is commonly used to:
- Handle business logic
- Read from and write to a database
- Expose an API or REST API
- Validate requests and enforce permissions
- Generate responses over HTTP
Core concepts
Server-side execution
Backend code runs on the server, not in the browser.
That makes it responsible for tasks that should not be exposed directly to the client, such as secrets, database access, and trusted business rules.
Data and application logic
A backend typically sits between the frontend and the data layer.
It decides how requests are handled, what data is returned, and what operations are allowed.
APIs and integration
Many backends expose API endpoints for browser apps, mobile apps, or other services.
Those APIs often exchange JSON over HTTP.
Common use cases
- Website and app data handling
- User accounts and auth
- Admin and business logic workflows
- Integrations between systems
- Background jobs, automation, and service orchestration
Practical notes
- Backend does not mean only database code; it includes application logic, validation, service integration, and operational behavior.
- A backend can render pages directly, expose APIs, or do both.
- Good backend design usually involves clear boundaries between routing, business logic, persistence, and security.
- In web applications, the backend and frontend are separate concerns even when one framework handles both.
Sources Used
- https://developer.mozilla.org/docs/Learn/Server-side/First_steps/Introduction
- https://developer.mozilla.org/en-US/docs/Learn_web_development/Extensions/Server-side/First_steps
Frequently Asked Questions
Is backend the same as server?
Not exactly. The backend is the server-side application layer, while the server can also refer to the machine or hosting environment running it.
Does a backend always use a database?
No, but many backends do. Some backends mostly proxy other services, process files, or run business logic without a traditional database.
Can a backend return HTML and JSON?
Yes. A backend can render pages directly, return JSON, or do both.