
Cloud
Learning Level
The cloud provider manages infrastructure; you manage everything from the OS up.
Responsibility Matrix:
You Manage Provider Manages
āāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāā
Applications Servers
Databases Storage Systems
Middleware Networking
Runtime Power/Cooling
OS Physical Security
DataExamples:
Architectural Patterns:
1. Lift-and-Shift (Legacy): Move on-premise app to cloud VM unchanged
- Pros: Faster migration, minimal code changes
- Cons: Doesn't leverage cloud benefits, high operational overhead
- Use case: Legacy applications with predictable workloads
2. Containerized IaaS: Run containers on IaaS (DIY Kubernetes)
- Pros: More control than managed services
- Cons: Operational burden of managing Kubernetes
- Use case: Complex applications needing custom Kubernetes setup
3. Multi-region IaaS: Deploy across regions
- Pros: Disaster recovery, global reach
- Cons: Data replication complexity, networking latency
- Use case: Mission-critical global applications
Cost Model: Pay per hour/month for VM + storage + bandwidth
Provider manages infrastructure AND platform. You manage applications and data only.
Responsibility Matrix:
You Manage Provider Manages
āāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāā
Applications OS
Data Databases (optionally)
Code Middleware
Runtime
Servers
StorageExamples:
Architectural Patterns:
1. Standard PaaS Deployment: Push code, forget infrastructure
```
git push heroku main
ā Automatic scaling
ā SSL/TLS included
ā Monitoring built-in
```
- Pros: Fastest time to market, no ops overhead
- Cons: Limited customization, vendor lock-in
- Use case: Startups, MVPs, rapid development
2. PaaS + Microservices: Each service deployed independently
- Pros: Scalability per service, polyglot tech
- Cons: Service discovery complexity
- Use case: Growing applications with multiple services
3. Hybrid PaaS: Mix PaaS and IaaS for different components
- Pros: Flexibility, cost optimization
- Cons: Operational complexity
- Use case: Large enterprises with mixed workloads
Cost Model: Pay per app + resource consumption (memory, disk, requests)
Provider manages everything. You just use the software.
Examples:
Integration Patterns:
1. Direct Integration: Use SaaS APIs directly
```
Your App ā Slack API ā Send messages
Your App ā Google Calendar API ā Create events
```
2. Middleware Integration: Connect SaaS via middleware
```
Your App ā Zapier/Make ā Multiple SaaS platforms
```
3. Custom OAuth: SaaS as authentication provider
```
User clicks "Login with Google/GitHub"
ā OAuth flow ā Your app authenticated
```
Cost Model: Per user/month, per request, or hybrid
Traditional On-Premise:
Your Responsibility (100%)
āā Applications
āā Data
āā Middleware
āā OS
āā Virtualization
āā Storage
āā Networking
āā Infrastructure
āā Physical Security
āā FacilitiesIaaS (AWS EC2):
Your Responsibility Provider Responsibility
āā Applications āā Virtualization
āā Data āā Storage Systems
āā Middleware āā Networking
āā OS āā Infrastructure
ā āā Physical Security
ā āā FacilitiesPaaS (App Engine):
Your Responsibility Provider Responsibility
āā Applications āā OS
āā Data āā Middleware
ā āā Runtime
ā āā Databases
ā āā Scaling
ā āā Monitoring
ā āā InfrastructureSaaS (Salesforce):
Your Responsibility Provider Responsibility
āā Data (within SaaS) āā Everything else
āā Access control
āā IntegrationsScalability: System grows with demand permanently
Elasticity: System automatically adjusts to demand
Availability: System is up and running (uptime percentage)
Durability: Data doesn't get lost (data protection)
CAP Theorem: Can't have all three:
Tradeoff choices:
Stage 1: Startup (Traditional IaaS)
Single VPC with 3 servers
āā Web server
āā App server
āā Database server
Cost: $300/month
Uptime: 95% (database crashes)Stage 2: Growth (Containerized)
Multiple availability zones
āā Load balancer
āā 5-10 app containers (auto-scaling)
āā Multi-region databases
āā CDN for static assets
Cost: $1,500/month
Uptime: 99.5%Stage 3: Scale (Microservices)
Kubernetes across 3 regions
āā User service (auto-scales 5-50 pods)
āā Order service (auto-scales 10-100 pods)
āā Payment service (dedicated 20 pods)
āā NoSQL database (multi-region)
āā Message queue (Kafka)
āā Data warehouse (BigQuery)
Cost: $50,000+/month
Uptime: 99.99%Factors:
Optimization:
Bottlenecks:
Optimization:
Global Regulations:
Cloud provider compliance:
High Lock-in (Proprietary):
Low Lock-in (Standards):
Hybrid Strategy:
Resources
Ojasa Mirai
Master AI-powered development skills through structured learning, real projects, and verified credentials. Whether you're upskilling your team or launching your career, we deliver the skills companies actually need.
Learn Deep ⢠Build Real ⢠Verify Skills ⢠Launch Forward