SLA Design and Composite SLAs

Watch the video to deepen your understanding.
SubscribeComplete the full lesson to earn 25 points — 50 with Pro
Work through each section, then tap “Mark as Complete” on the last one.
✦ Skip the page breaks, the wait, and see fewer ads — read each lesson on a single page with Pro
Lesson: SLA Design and Composite SLAs
Introduction: Defining the Promise
In the world of cloud architecture, High Availability (HA) is not just a technical goal—it is a business contract. A Service Level Agreement (SLA) is a formal agreement between a service provider and a customer that defines the expected level of service, typically measured in terms of uptime (availability).
Why does this matter? If your business application goes offline, you lose revenue, damage your brand reputation, and potentially violate legal contracts. Understanding how to design for availability requires moving beyond simple "up/down" metrics and understanding how individual components aggregate into a total system reliability score.
Understanding SLAs and Uptime Percentages
SLA targets are usually expressed as a percentage of time the service is available over a specific period (e.g., a month). The "nines" represent the standard industry shorthand for reliability:
| Availability | Downtime per Year | Downtime per Month |
|---|---|---|
| 99% | 3.65 days | 7.2 hours |
| 99.9% | 8.77 hours | 43.8 minutes |
| 99.99% | 52.6 minutes | 4.32 minutes |
| 99.999% | 5.26 minutes | 25.9 seconds |
The Reality of "The Nines"
Achieving higher availability is exponentially more expensive and complex. Moving from 99% to 99.9% is relatively straightforward (adding redundancy), but moving from 99.99% to 99.999% requires sophisticated automated failover, geo-redundancy, and rigorous change management processes.
Composite SLAs: The Chain Effect
In modern cloud architecture, your application rarely runs on a single service. It is a Composite System. A composite SLA is the aggregate availability of all the components that must be functional for your application to work.
The Mathematical Reality
If your application depends on two services, and both must be running for the application to be available, the composite SLA is the product of their individual availabilities:
- Service A (Web Server): 99.9%
- Service B (Database): 99.9%
- Composite SLA: 0.999 * 0.999 = 99.8%
Key Rule: In a series-dependent system, the total availability is always lower than the availability of the individual components. The more dependencies you add, the lower your total system reliability becomes.
Practical Example: A Multi-Tiered Application
Imagine an e-commerce site consisting of:
- Azure App Service: 99.95%
- Azure SQL Database: 99.99%
- Azure Storage (Blob): 99.9%
Total Availability Calculation:
0.9995 * 0.9999 * 0.999 = 0.9984 (99.84%)
Even though your database is highly available at "four nines," your total application is limited by the weakest link in your architecture.
Designing for Resilience
To improve your composite SLA, you must change how components interact.
1. Parallel Architectures (Redundancy)
If you have a fallback mechanism, the math changes. If you have two independent paths, the system is available if either path is up.
- Availability: 1 - (Probability of failure of A * Probability of failure of B)
2. Graceful Degradation
Design your system so that if a non-essential service fails, the main application remains functional.
- Example: If your "Recommendation Engine" (a separate microservice) goes down, the user can still browse and purchase products, even if they don't see "Recommended for You" items.
3. Code Implementation: Circuit Breakers
Using a pattern like the Circuit Breaker prevents your application from waiting on a failing dependency, allowing the system to fail fast and stay responsive.
// Simple conceptual implementation of a Circuit Breaker
public class CircuitBreaker {
private bool _isOpen = false;
private int _failureCount = 0;
public async Task<Response> Execute(Func<Task<Response>> action) {
if (_isOpen) {
return FallbackResponse(); // Return cached or default data
}
try {
var result = await action();
_failureCount = 0; // Reset on success
return result;
} catch (Exception) {
_failureCount++;
if (_failureCount > 3) _isOpen = true; // Trip the circuit
throw;
}
}
}
Best Practices and Pitfalls
Best Practices
- Identify Critical Paths: Determine which services are truly essential for a core transaction. Isolate these from non-critical services.
- Monitor and Measure: Use tools like Azure Monitor or AWS CloudWatch to track actual uptime versus your SLA.
- Set Realistic Goals: Don't promise 99.99% to stakeholders if your underlying architecture or budget cannot support it.
- Design for Failure: Assume every component will eventually fail. Implement retries, timeouts, and circuit breakers.
Common Pitfalls
- The "Single Point of Failure" (SPOF): Forgetting that a single database instance or load balancer can bring down the entire system.
- Ignoring Dependencies: Failing to account for third-party APIs (like payment gateways) in your composite SLA calculations.
- Over-Engineering: Spending millions to achieve 99.999% for a service that only generates a few hundred dollars a month. Balance the cost of downtime against the cost of prevention.
- Ignoring Human Error: Most downtime is caused by configuration changes, not hardware failure. Automate deployments to reduce risk.
Key Takeaways
- SLA is a Contract: It defines the uptime promise made to the business or customer.
- The Multiplier Effect: In a series-dependent system, your total availability is the product of all component availabilities. Adding more services generally lowers your total availability.
- Weakest Link: Your system's availability is capped by its least reliable component.
- Resilience Patterns: Use patterns like Circuit Breakers, Bulkheads, and Redundancy to mitigate the risk of dependency failure.
- Cost vs. Benefit: Always evaluate the business cost of downtime against the technical investment required to increase availability. High availability is not a "one size fits all" requirement.
Reach the last section to complete this lesson and earn points — you're on section 1 of 4.
- Introduction to Azure Monitor
- Azure Monitor Architecture and Data Sources
- Configuring Log Analytics Workspaces
- Designing Log Routing Solutions
- Configuring Diagnostic Settings
- Application Insights for Solution Architects
- Network Watcher and Network Monitoring
- Azure Monitor Alerts and Action Groups
- Workbooks and Custom Dashboards
- Designing a Comprehensive Monitoring Strategy
- Logging and Monitoring Quiz5q
- Microsoft Entra ID for Solution Architects
- Designing Identity Solutions: B2B Collaboration
- Designing Identity Solutions: B2C Scenarios
- Conditional Access Policy Design
- Designing for Multi-Factor Authentication
- Managed Identities for Azure Resources
- Service Principals and App Registrations
- Role-Based Access Control Design
- Privileged Identity Management
- Microsoft Entra ID Protection
- Zero Trust Architecture with Microsoft Entra
- Authentication and Authorization Quiz5q
- Introduction to Azure Governance
- Designing Management Group Hierarchies
- Subscription Strategy Design
- Resource Group Organization Patterns
- Azure Policy Design and Assignment
- Custom Policy Definitions and Initiatives
- Resource Locks and Tagging Strategies
- Azure Blueprints and Landing Zones
- Cost Management and Budget Design
- Cloud Adoption Framework for Governance
- Governance Solutions Quiz5q
- Introduction to Azure Storage
- Storage Account Types and Replication
- Blob Storage Tiers and Lifecycle Management
- Azure Files and Azure NetApp Files
- Azure Managed Disks Design
- Azure Data Lake Storage Gen2
- Cosmos DB Consistency Models
- Cosmos DB Partitioning and Throughput Design
- Cosmos DB API Selection Guide
- Table Storage and Queue Storage Design
- Storage Security and Encryption
- Non-Relational Storage Quiz5q
- Azure SQL Database Service Tiers
- Azure SQL Managed Instance Design
- Azure Database for MySQL and PostgreSQL
- Database Scaling: Vertical and Horizontal
- Read Replicas and Geo-Replication
- Database Security and Auditing Design
- Transparent Data Encryption and Always Encrypted
- Caching with Azure Cache for Redis
- Azure SQL Elastic Pools Design
- Relational Storage Quiz5q
- Azure Data Factory Design Patterns
- Data Integration Pipeline Architecture
- Azure Synapse Analytics Design
- Azure Databricks Integration Patterns
- Azure Stream Analytics for Real-Time Data
- Azure Event Hubs for Data Ingestion
- Data Migration Strategies and Tools
- Azure Purview for Data Governance
- Data Integration Quiz5q
- Introduction to High Availability in Azure
- Availability Zones and Availability Sets
- Azure Load Balancer Design
- Application Gateway and WAF Design
- Azure Front Door and Global Load Balancing
- Azure Traffic Manager Routing Methods
- Multi-Region Architecture Design
- SLA Design and Composite SLAs
- Health Probes and Failover Configuration
- Azure Service Fabric for Stateful HA
- High Availability Quiz5q
- Azure Backup Architecture and Vaults
- Backup Policies for VMs and Databases
- Azure Site Recovery Design
- RTO and RPO Planning Strategies
- Geo-Redundant and Cross-Region Recovery
- Hybrid and On-Premises Backup Solutions
- Resiliency Patterns and Chaos Engineering
- Disaster Recovery Testing and Drills
- Azure Immutable Backup and Soft Delete
- Backup and Disaster Recovery Quiz5q
- Introduction to Azure Compute Options
- Virtual Machine Design and Sizing
- VM Scale Sets and Autoscaling Strategies
- Azure Batch for Large-Scale Workloads
- Azure App Service Plans and Design
- App Service Environments and Isolation
- Azure Container Instances
- Azure Kubernetes Service Architecture
- AKS Networking and Storage Design
- Azure Functions and Serverless Design
- Durable Functions and Orchestration
- Compute Decision Framework
- Azure Virtual Desktop Design
- Compute Solutions Quiz5q
- Microservices Architecture Patterns
- Azure API Management Design
- Azure Service Bus Messaging Design
- Azure Event Grid and Event-Driven Architecture
- Azure Event Hubs for Streaming
- Azure Logic Apps and Integration Workflows
- Azure SignalR and Web PubSub
- Caching Strategies and Azure CDN
- App Configuration and Feature Flags
- Designing for Scalability and Performance
- Azure Container Apps Design
- Application Architecture Quiz5q
- Virtual Network Design and Address Planning
- Subnet Design and Network Segmentation
- Hub-Spoke Network Topology
- Azure Virtual WAN Design
- VPN Gateway Design and Configuration
- ExpressRoute Circuit Design
- Network Security Groups Design
- Azure Firewall and Firewall Manager
- Azure DDoS Protection Design
- Private Endpoints and Private Link
- Azure DNS and DNS Architecture
- Network Performance and Traffic Routing
- Azure Bastion and Secure Access
- Network Solutions Quiz5q
- Azure Migrate Overview and Assessment
- Migration Assessment and Discovery
- Azure Cloud Adoption Framework for Migration
- VM Migration with Azure Migrate
- Database Migration with Azure DMS
- Application Migration to App Service
- Containerizing Applications for Migration
- Migration Cost Planning and Optimization
- Data Box and Offline Migration Methods
- Migrations Quiz5q
Enjoying the courses?
Everything stays free. Pro shows fewer ads, doubles the points you earn on every lesson and quiz so you progress twice as fast, unlocks half of every practice exam — plus full case studies — with the Learn & Exam study modes, and lets you read each lesson on one page.
- ✓ Fewer advertisements
- ✓ 2× points per lesson & quiz
- ✓ 50% of every exam unlocked
- ✓ Learn & Exam modes
- ✓ Distraction-free lessons