Why scalability became central

Early web and enterprise applications combined three layers—frontend (such as a web interface), business logic (for instance in PHP, Python, or Java), and data storage (a database)—inside a single software monolith. Classic examples include e-commerce portals, teaching portals such as Moodle, and applications built on the LAMP stack (Linux, Apache, MySQL, PHP). Inside a monolith, logical parts such as the product catalog, shopping cart, and recommendation engine live inside one large, tightly integrated codebase with no runtime boundary between them.

Historically, scalability was rarely urgent because corporate software (billing, accounting, warehouse management) was relatively small, ran on dedicated on-premises servers for a limited and predictable user base, and tolerated delayed security patches or upgrades inside private networks. Cloud computing removed those sheltered assumptions: applications now serve unpredictable global audiences, change continuously, and run across huge fleets where hardware faults are normal.

The four dimensions of scalability

The source highlights four distinct, partially orthogonal aspects of scalability:

DimensionProblem solvedWhy traditional practice fails
Software developmentAllowing hundreds or thousands of developers across teams to build one product without blocking each otherTightly coupled modules require constant cross-team coordination and re-testing
Software deploymentShipping individual updates or security patches immediatelyPeriodic whole-application release cycles force small fixes to wait months
PerformanceServing anywhere from a few users to hundreds of millions without rewriting the app, while keeping CPU usage cost-efficientSingle-machine capacity hits a ceiling and inefficient code multiplies cloud cost
ResilienceStaying available despite frequent server and network failures at cloud scaleRelying purely on redundant hardware (such as a backup server) is insufficient; resilience must live in software

Why monoliths break at scale

  • Development bottlenecks: Every small change—even a Pull Request touching one tiny function—requires testing and redeploying the entire application. Developers spend substantial effort coordinating interfaces between modules inside the shared codebase.
  • Deployment bottlenecks: Components are typically installed together inside one Virtual Machine (VM) or a small set of VMs. When only one part (such as business logic) needs more CPU or memory, you cannot scale that part alone—you must clone the entire VM, wasting resources on idle components.
  • Database duplication trap: If that monolithic VM also contains the database, cloning the VM creates multiple separate databases, breaking data uniqueness and consistency across replicas.

Think of a monolith as a single restaurant kitchen where one team prepares appetizers, mains, desserts, dishes, and billing in one room: if dessert orders triple on Friday night, you have to build a second identical kitchen—including extra grills and a second conflicting cash register. (Limit of the analogy: inside software, a monolith’s components also share process memory and communicate via fast local calls, which can be an advantage when scale is modest—see Microservices Costs Traffic and Eventual Consistency.)

Concrete example: Black Friday spike

Suppose an online store runs its web UI, recommendation logic, and MySQL database in a single VM. On Black Friday, recommendation traffic spikes and saturates CPU while email notifications and billing sit mostly idle. Cloning that VM three times replicates the idle modules and splits the MySQL database into three independent copies, creating diverging order and inventory state instead of solving the bottleneck.

Common confusions

  • Scalability is not only requests per second: Exams often distinguish performance scaling (user load and CPU efficiency) from development scaling (team independence), deployment scaling (independent releases), and resilience scaling (surviving infrastructure faults).
  • Splitting files into folders does not remove a monolith: Even clean modular code remains a deployment monolith if all modules are built, tested, deployed, and scaled together as one unit.

Retrieval

  1. Why can duplicating a monolithic VM containing both application logic and a database fail to solve a CPU bottleneck?
    Cloning the VM duplicates all components—wasting capacity on parts that are not busy—and creates multiple separate copies of the database, making it hard to guarantee unique, consistent data across replicas.
  2. Which scalability dimension explains why a security patch for one small bug should not wait for a quarterly release?
    Scaling software deployment: decoupling components lets teams release urgent patches independently rather than waiting for full-application release cycles.

Source: Lecture 10 - Microservices and Containers Orchestration, PDF pages 2–5.