
Cloud
Learning Level
Cloud providers offer multiple ways to run your application. Each model has different tradeoffs between control, complexity, and cost.
You rent a virtual computer that runs your operating system and applications.
What you do: Install OS, deploy applications, manage everything
What provider does: Manages physical hardware
Best for: Full control, legacy applications, custom configurations
Example: AWS EC2, Google Compute Engine, Azure Virtual Machines
Your app
āāāāāāāāāāāā
Operating System
āāāāāāāāāāāā
Hypervisor (Provider manages)
āāāāāāāāāāāā
Physical Hardware (Provider manages)Pros:
Cons:
Applications run in isolated containers (like lightweight virtual machines) that include your application and its dependencies.
What you do: Build container image, deploy it
What provider does: Manages container orchestration and infrastructure
Best for: Consistent deployments, microservices, rapid scaling
Example: Docker, Kubernetes, AWS ECS, Google Cloud Run, Azure Container Instances
Your app 1
āāāāāāāāāāāā
Container Runtime (Docker)
āāāāāāāāāāāā
Kubernetes/Orchestration (Provider manages)
āāāāāāāāāāāā
Physical Hardware (Provider manages)Pros:
Cons:
Upload your code (function), specify when it runs, cloud runs it automatically.
What you do: Write code, deploy function
What provider does: Manages infrastructure, scaling, everything
Best for: Event-driven workloads, APIs, background jobs
Example: AWS Lambda, Google Cloud Functions, Azure Functions
Your function
āāāāāāāāāāāā
Serverless Runtime (Provider manages)
āāāāāāāāāāāā
Auto-scaling (Provider manages)
āāāāāāāāāāāā
Physical Hardware (Provider manages)Pros:
Cons:
Complex, stateful services. Need maximum control. Runs on VMs for flexibility.
Microservices architecture. Each service in container. Easy to scale independently.
Mobile app sends data ā Lambda function processes ā Stores in database. Pay $0 when app not used.
| Aspect | VMs | Containers | Serverless |
|---|---|---|---|
| Control | Maximum | High | Minimum |
| Setup Time | Hours | Minutes | Seconds |
| Scaling | Manual | Automatic | Automatic |
| Cost | Medium (fixed per VM) | Low (per container) | Lowest (per invocation) |
| Complexity | High | Medium | Low |
| Learning Curve | Moderate | High | Low |
| Best For | Legacy apps, full control | Microservices | APIs, events |
| Scaling Speed | Slow (minutes) | Fast (seconds) | Very fast (instant) |
Running same application:
VMs: $200/month (you pay even when idle)
Containers: $100/month (scale with demand)
Serverless: $10/month (pay per execution, idle = $0)
*Actual costs vary by workload and utilization*
Want architectural patterns? āļø Compute Options (Experienced)
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