Cloud Notes
Understanding cloud architecture components including front-end, back-end, cloud infrastructure, and design principles for building scalable, resilient cloud systems.
Cloud architecture refers to the components and subcomponents required for cloud computing. These components typically consist of a front-end platform, back-end platforms, a cloud-based delivery model, and a network. Together, these components make up cloud computing architecture.
Cloud Architecture Components
The Four Pillars of Cloud Architecture
1. Front-End Architecture
The front end is what the user interacts with. It includes the client device, browser, or application interface that sends requests to cloud services.
- Thin Clients — Web browsers accessing cloud applications
- Thick Clients — Desktop applications with cloud sync capabilities
- Mobile Clients — Native or hybrid mobile applications
- API Clients — Programmatic access via SDKs and REST APIs
2. Back-End Architecture
The back end is the cloud itself—servers, databases, and systems that deliver cloud services.
3. Cloud-Based Delivery
The model through which services are delivered (IaaS, PaaS, SaaS, FaaS).
4. Network
The medium enabling communication between front end and back end, including Internet connections, VPNs, and dedicated connections.
AWS Well-Architected Framework
Amazon's Well-Architected Framework provides six pillars for building robust cloud architectures:
| Pillar | Description | Key Practices |
|---|---|---|
| Operational Excellence | Run and monitor systems | Automate changes, respond to events |
| Security | Protect information and systems | Least privilege, encrypt everything |
| Reliability | Recover from failures | Multi-AZ, auto-healing, backups |
| Performance Efficiency | Use resources efficiently | Right-sizing, caching, CDN |
| Cost Optimization | Avoid unnecessary costs | Reserved instances, spot instances |
| Sustainability | Minimize environmental impact | Efficient code, right regions |
Common Architecture Patterns
Three-Tier Architecture
Microservices Architecture
Each service is independently deployable, scalable, and maintainable:
# docker-compose.yml for microservices
version: '3.8'
services:
api-gateway:
image: kong:latest
ports:
- "8000:8000"
user-service:
image: myapp/user-service:v2.1
deploy:
replicas: 3
environment:
- DB_HOST=users-db
order-service:
image: myapp/order-service:v1.8
deploy:
replicas: 5
environment:
- DB_HOST=orders-db
- QUEUE_URL=amqp://rabbitmq
notification-service:
image: myapp/notification-service:v1.3
deploy:
replicas: 2Event-Driven Architecture
Services communicate through events rather than direct calls:
| Producer | Event Bus (SNS/EventBridge) → Consumer Services |
| ├── Order Created | Inventory Service |
| ├── Order Created | Notification Service |
| └── Order Created | Analytics Service |
Serverless Architecture
No server management—code runs in response to events:
# Deploy a serverless API
serverless deploy
# Result:
# endpoints:
# GET - https://abc123.execute-api.us-east-1.amazonaws.com/prod/users
# POST - https://abc123.execute-api.us-east-1.amazonaws.com/prod/users
# GET - https://abc123.execute-api.us-east-1.amazonaws.com/prod/ordersDesign Principles for Cloud Architecture
- Design for failure — Assume everything will fail and build recovery mechanisms
- Decouple components — Use queues and event buses between services
- Think elastic — Design for horizontal scaling from day one
- Automate everything — Infrastructure as Code, CI/CD, auto-scaling
- Use managed services — Don't reinvent what providers offer
- Implement defense in depth — Multiple security layers
- Optimize for cost — Monitor and right-size continuously
High Availability Architecture
Interview Questions
- Describe the main components of cloud architecture.
Cloud architecture consists of four main components: front-end (client devices and interfaces), back-end (servers, databases, storage), cloud-based delivery model (IaaS/PaaS/SaaS), and network (Internet, VPN, dedicated connections). The infrastructure layer includes physical hardware, hypervisors, and management software.
- What are the six pillars of the AWS Well-Architected Framework?
Operational Excellence, Security, Reliability, Performance Efficiency, Cost Optimization, and Sustainability. Each pillar provides best practices and design principles for building robust cloud solutions.
- Explain the difference between three-tier and microservices architecture.
Three-tier separates an application into presentation, logic, and data layers but deploys as a monolith. Microservices decompose the application into independent, loosely-coupled services that can be developed, deployed, and scaled independently.
- What does "design for failure" mean in cloud architecture?
It means assuming that hardware, software, and network components will eventually fail, and building systems that gracefully handle these failures through redundancy, automated recovery, graceful degradation, and fault isolation.
- How do you achieve high availability in cloud architecture?
Through multi-AZ deployment (spreading resources across isolated data centers), load balancing, auto-scaling, health checks with automatic replacement of failed instances, database replication, and DNS-based failover routing.
Exam Focus
Revise definitions, diagrams, examples, and short-answer points for Cloud Architecture.
Interview Use
Prepare one clear explanation, one practical example, and one common mistake for this Cloud Computing topic.
Search Terms
cloud-computing, cloud computing, cloud, computing, fundamentals, architecture, cloud architecture
Related Cloud Computing Topics