liveBook · Manning

Monolithic architecture

As explained in Software Security for Developers

A monolith, or monolithic application, is an application architecture in which the system's components run within one codebase, process, or deployable unit.

A monolithic application keeps business logic, data access, and user interactions in one codebase, usually within one process or deployable unit. This makes authorization practical because user, resource, and business context are available where access decisions occur. section 17.2.1

Authorization in a monolith can use several models:

  • RBAC checks roles such as ADMIN or MANAGER and is usually the simplest starting point. section 17.2.1
  • ABAC evaluates attributes such as department or region, for example allowing access when user.department equals invoice.department. section 17.2.1
  • ReBAC evaluates relationships such as membership or ownership among users, teams, projects, and documents. section 17.2.1

A nonmodular monolith can scatter authorization across controllers, services, and helpers, allowing checks to be missed. A modular monolith keeps one deployable unit while separating modules and their data, improving consistency and auditing without distributed-service complexity. section 17.2.1 section 17.3

How Software Security for Developers covers it

How deep it goes
Explains authorization models, failure modes, and modular boundaries, but stops short of deployment or implementation details.
Examples
Uses role checks, department-to-invoice comparisons, and ownership or membership relationships as authorization examples.
What you can do after
Apply RBAC, ABAC, or ReBAC using shared user, resource, and relationship data.
How it connects
Connects monolithic architecture with authorization, RBAC, ABAC, ReBAC, modular monoliths, and microservices.

Also explained in

Compare how 8 books explain monolithic architecture →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Software Security for Developers. The section links point to the parts of the book it draws on.