⚖️ Scalability & Auto Scaling

📌 Overview

Scalability is the ability of a system to handle increased load. In Azure, this is a core benefit of the cloud. You can add resources manually or automatically to meet demand.


1. Types of Scaling

⬆️ Vertical Scaling (Scale Up/Down)

"Making the machine bigger."

↔️ Horizontal Scaling (Scale Out/In)

"Adding more machines."


2. Azure Scaling Solutions

🖥️ Azure Virtual Machine Scale Sets (VMSS)

Allows you to create and manage a group of load-balanced VMs. The number of VM instances can automatically increase or decrease in response to demand or a defined schedule.

🌐 Azure App Service Autoscale

Built-in feature for PaaS Web Apps.


3. Architecture Diagram

Vertical vs Horizontal Scaling

       VERTICAL SCALING (Scale Up)             HORIZONTAL SCALING (Scale Out)
       ===========================             ==============================

      +-------------------+                       +-----+    +-----+    +-----+
      |   Big Server      |                       | VM1 |    | VM2 |    | VM3 |
      |  (8 vCPU, 32GB)   |                       +-----+    +-----+    +-----+
      |                   |                          ^          ^          ^
      +-------------------+                          |          |          |
               ^                               +--------------------------+
               |                               |      Load Balancer       |
               |                               +--------------------------+
      +-------------------+                                 ^
      |   Small Server    |                                 |
      |  (2 vCPU, 8GB)    |                              (Traffic)
      +-------------------+

3. Elasticity

The ability to automatically scale out and scale in based on demand.



💡 Hinglish Explanation (Scaling)

1. Vertical Scaling (Scale Up/Down)

2. Horizontal Scaling (Scale Out/In)

3. Elasticity (Auto-Scaling)


💡 Exam Tips for AZ-900