Elastic

Responsive under varying workload

“The system stays responsive under varying workload.” – Reactive Manifesto

When to use

Systems with “spiky” traffic (Ticketing sites, Black Friday).

Why it matters

  • Cost: You don’t want to pay for 100 servers when traffic is low.
  • Performance: You don’t want to crash when traffic is high.

Signs of Violation

  • Static server provisioning (Fixed 2 servers).
  • Manual scaling (Waking up an admin to add servers).

Explanation

Problem

Static resources result in either waste (over-provisioning) or downtime (under-provisioning).

Solution

The system reacts to load changes by spinning up or spinning down resources automatically.

Real world analogy

Rubber band. It stretches when you pull, and shrinks when you let go. It accommodates the size of the bundle.

Pros and Cons

Pros Cons
  • Cost efficiency
  • Complex orchestration
  • Comparison

    • Scalability: Scalability is the ability to handle more. Elasticity is the automatic action of doing so up and down.

    Code example

    Typescript

    Good (Adherence)

    PHP

    Good (Adherence)