Connecting
Learn/L0 · The Map of Software

What is backend?

Backend is the trusted part the user cannot see — it runs logic and talks to the database.

Difficulty 1/5

Mental model

requestread/writeresultresponseFrontendBackendDatabase

Plain English

The backend lives on a server you control. It checks permissions, runs business logic, reads and writes the database, and returns clean results to the frontend. Anything secret or risky belongs here.

Analogy

The backend is the kitchen: it has the fridge, the recipes, and the chef. The customer never enters.

Jessica's wedding portal

When a planner clicks 'Send vendor email', a backend function checks they're on the team, fetches the vendor, and triggers the email.

Agentify CRM

When a WhatsApp message arrives, the backend writes it to the database and pushes it to the inbox in realtime.

Go deeper

The trusted, hidden part of the app.

Common mistakes

  • Letting the frontend do permission checks. Always re-check on the backend.
  • Returning raw database rows that include other users' fields.

AI-agent trap

Agents sometimes skip the permission check because the UI 'already hides' the button. Always require server-side authorization.
Quick check
Where should the rule 'only the assigned planner can edit this wedding' live?

Summary

Backend code runs on a server (or serverless function). It receives requests, validates them, reads or writes data, and returns a response.

Confidence: