Cloud computing & AWS
Cloud computing means renting infrastructure on demand and paying for what you use. The Be A Better Dev videos cover the concepts that come up in every cloud design, and the most important AWS services that implement them.
Scaling
Vertical scaling (scaling up) means a bigger machine: more CPU and RAM. It's simple but has a ceiling, and upgrading usually means a restart. Horizontal scaling (scaling out) means more machines of the same size behind a load balancer. There's practically no ceiling and no single point of failure, but the app must be stateless: session data lives in a shared database or cache, not on one server, so any server can answer any request.
Autoscaling adds and removes servers (or containers) automatically based on a metric like CPU usage or request count: more machines at peak times, fewer at night, so you pay for what you actually need.
Serverless and event-driven
With serverless functions (AWS Lambda) you upload just a function; the cloud runs it when it's triggered, scales it automatically, and bills per call. There are no servers to patch, at the cost of time limits, cold starts and less control. It suits event-driven designs, where services react to events instead of calling each other directly: "a file was uploaded", "an order was placed". Queues and topics (SQS, SNS, EventBridge) pass those events along and keep services loosely connected, so one slow service doesn't bring down the rest.
Storage types
- Object storage (S3): files ("objects") in buckets, reached over HTTP. Practically unlimited and cheap. Used for backups, images, logs, static websites.
- Block storage (EBS): a virtual hard disk attached to one server. Used for operating systems and databases.
- File storage (EFS): a shared network drive that many servers mount at once.
Availability and durability
Availability is whether the service is up and answering, measured in "nines": 99.9% availability allows about 8.8 hours of downtime a year, 99.99% about 53 minutes. Durability is whether stored data survives: S3 is designed for 11 nines of durability, meaning it's practically never lost. They're different: a system can be temporarily down (unavailable) while your data is perfectly safe (durable).
Clouds are split into regions (geographic areas, like Frankfurt) and each region into several availability zones: separate data centres with their own power and network. Running copies in two or more zones keeps you up if one fails.
The main AWS services, by job
| Job | AWS service |
|---|---|
| DNS for your domains | Route 53 |
| Virtual machines | EC2 |
| Containers | ECS, EKS (Kubernetes), Fargate (serverless containers), ECR (image registry) |
| Functions | Lambda |
| Load balancing and autoscaling | Elastic Load Balancing (ALB/NLB), Auto Scaling groups |
| Storage | S3 (objects), EBS (disks), EFS (shared files) |
| CDN | CloudFront |
| Databases and caching | RDS / Aurora (SQL), DynamoDB (NoSQL), ElastiCache (Redis) |
| APIs and user login | API Gateway, Cognito |
| Messaging | SQS (queues), SNS (notifications), EventBridge (events), Step Functions (workflows) |
| Secrets and config | Secrets Manager, Systems Manager Parameter Store |
| Monitoring and logs | CloudWatch |
| Permissions | IAM (users, roles, policies) |
| Private network | VPC (see Networking) |
| Infrastructure as code and CI/CD | CloudFormation / CDK, CodePipeline, CodeBuild, CodeDeploy |
IAM deserves a special mention: every action in AWS is checked against IAM policies. The golden rule is least privilege: give each user, server and pipeline only the permissions it actually needs, and give servers roles instead of storing access keys on them.
CI/CD on AWS
The edureka AWS DevOps tutorial builds the same pipeline with AWS's own services: CodeCommit (Git hosting), CodeBuild (build and test), CodeDeploy (deploy to EC2 or other targets) and CodePipeline, which chains them together and triggers on every change. Jenkins, GitHub Actions and GitLab CI do the same job; the choice is mostly about where your code already lives.