# Choosing cloud services for your app

Cloud providers offer hundreds of services with confusing names. Fortunately, they are made up of just a handful of building blocks, and a standard web app only needs a few of them.

## The building blocks

| Building block | What it is | AWS | Google Cloud | Azure |
|---|---|---|---|---|
| Virtual machine | A server you rent | EC2 | Compute Engine | Virtual Machines |
| Container hosting (PaaS) | Run your container without managing servers | ECS / App Runner | Cloud Run | Container Apps |
| Serverless functions | Stand-alone functions that only run in response to a request | Lambda | Cloud Functions | Functions |
| Managed SQL database | MySQL/PostgreSQL with regular updates and backups | RDS / Aurora | Cloud SQL | Azure SQL / Database for PostgreSQL |
| NoSQL / document database | Flexible storage without fixed tables | DynamoDB | Firestore | Cosmos DB |
| Managed cache | Redis/Memcached for speed and sessions | ElastiCache | Memorystore | Cache for Redis |
| Object storage | Files (uploads, backups) via a URL | S3 | Cloud storage | Blob storage |
| CDN | Fast file delivery from servers close to the user | CloudFront | Cloud CDN | Front Door / CDN |
| DNS | Domain names pointing to your servers | Route 53 | Cloud DNS | Azure DNS |
| Load balancer | Distributing traffic across servers | ALB / NLB | Cloud Load Balancing | Load Balancer / App Gateway |
| Queue / events | Messages between components | SQS / SNS | Pub/Sub | Service Bus |
| Secrets | Keeping passwords and keys secure | Secrets Manager | Secret Manager | Key Vault |
| Access Management (IAM) | Who is authorised to do what | IAM | Cloud IAM | Entra ID + RBAC |
| Monitoring | Metrics, logs and alerts | CloudWatch | Cloud Monitoring | Azure Monitor |
| Container registry | Storage for your Docker images | ECR | Artifact Registry | Container Registry |
| Managed Kubernetes | Kubernetes without having to manage the cluster yourself | EKS | GKE | AKS |

## What does a standard Laravel app need?

For most business apps, this is enough:

1. **One place to run the app:** a managed platform, container hosting or a VPS.
2. **A managed SQL database** with automatic backups.
3. **Object storage** for uploads (Laravel’s `Storage::disk('s3')` works with S3 and compatible storage).
4. **An email service** for transactional emails.
5. **Monitoring and error messages** (see *Logging and monitoring for your app*).

You can add a CDN, cache, queue service and load balancer if you really need them.

## What to look out for

- **Location:** Choose a data centre in the EU (e.g. Frankfurt, Amsterdam, Dublin) if you process personal data, and check the data processing agreement (GDPR).
- **Costs:** triggers a budget warning. Data sent out of the cloud (egress) and forgotten test servers are the typical cost drivers.
- **Permissions:** only grant each component the permissions it needs (least privilege). Never use the root account for day-to-day work; enable two-factor authentication.
- **Secrets:** in a secret manager or your platform’s settings, not in your code (see *.env and environment variables*).
- **Vendor lock-in:** standard building blocks (PostgreSQL, S3-compatible storage, Docker) make it easier to switch providers later on.

## Kubernetes, Terraform and multi-cloud?

Not necessary for most small apps. Read *Kubernetes and Terraform: do you need them?* before you get started.

## Need help?

For **Bespoke software and web applications**, I’ll choose the simplest, most affordable setup to suit your app, including backups and monitoring.

## Skills

- [Multi-Cloud Architecture] (/nl/skills/multi-cloud-architecture)
- [Cloud Cost Optimization] (/nl/skills/cost-optimization)
- [Cloud Design Patterns] (/nl/skills/cloud-design-patterns)
- [Secrets Management] (/nl/skills/secrets-management)
- [Deploying with Laravel Cloud] (/nl/skills/deploying-to-cloud)

## Related services

- [Maatwerk software en webapplicaties] (/nl/services#service-03)

