Skip to main content

Backend

Updated 2 min read

Share this page

Send the link, quote the definition with a link back, or show it as a card on your own site.

https://softwaredictionary.org/terms/backend

In short

The backend is the server side of an application: the code, databases and services that store data, apply business rules and answer the frontend's requests.

What is the backend?

The backend runs on servers, out of the user's sight. It receives requests from the frontend or from other programs, checks who is asking and whether they are allowed, reads and writes data in databases, applies the application's rules, and sends back a response, usually as JSON over HTTP.

A typical backend is made of a web framework such as Express, Django, Spring Boot or ASP.NET, the application's own code, one or more databases, and supporting pieces such as caches, message queues and background jobs. It exposes what it can do through an API, so a website, a mobile app and partner systems can all use the same logic.

Because the backend holds the data and enforces the rules, it is where security matters most: passwords are hashed there, permissions are checked there, and anything the frontend sends is validated there, since a request can always be forged. Backend work also covers scaling, logging and keeping the service available as traffic grows.

Key takeaways

  • The backend is the server side: data, business rules and security.
  • It answers requests from the frontend and other programs through an API.
  • It usually combines application code, databases, caches and queues.
  • Every check that matters, such as permissions and validation, belongs in the backend.

Example

A backend endpointjavascript
// Node.js + Express: check who is asking, read the data, answer with JSON
import express from "express";
import { db } from "./db.js";
import { authenticate } from "./auth.js";

const app = express();
app.use(authenticate); // sets req.user from the session or token

app.get("/api/orders", async (req, res) => {
  if (!req.user) return res.status(401).json({ error: "Sign in first" });
  const orders = await db.orders.findMany({ where: { userId: req.user.id } });
  res.json(orders);
});

app.listen(3000);

Readers ask

Which languages are used for backend development?

Almost any general-purpose language: JavaScript or TypeScript with Node.js, Python, Java, C#, Go, PHP and Ruby are all common. The choice usually depends on the team, the libraries available and how fast the service needs to be.

Can an application have no backend?

A purely static site, or an app that keeps everything on the device, can work without a backend of its own. Many apps instead rely on managed services, such as a backend-as-a-service or serverless functions, so someone else runs the servers.

Often compared

See also

Spotted a mistake or something missing on this page?Suggest an edit

Read a random page
Open today's review
Switch to the dark theme
Read this page in Türkçe

More

Settings