Backend Fundamentals · How a backend is organized
Layered architecture and MVC
Layers split a backend by job. Controllers speak HTTP, the domain holds the business rules, data access speaks SQL, and each layer only calls the one below it. MVC is the web's best-known version.
- Time22 min
- LevelDeveloper
- Pictures12 diagrams
- Check6 questions






Presentation controllers: parse requests, check shape, map results to responses.
Service one operation per use case; opens and commits the transaction.
Data access repositories and the ORM; the only place with SQL.
Database tables plus constraints as the last line of defense.
Controller maps success to 201, or OutOfStock to 409.