Amazon Web Services to najpopularniejsza platforma chmurowa na świecie z ponad 200 usługami. AWS oferuje compute (EC2, Lambda), storage (S3), bazy danych (RDS, DynamoDB), AI/ML (SageMaker, Bedrock), networking, CDN i wiele więcej.
AWS to standard dla enterprise i startupów. Netflix, Airbnb, Slack, Twitch — wszystkie działają na AWS. Model pay-as-you-go, globalna infrastruktura, 99.99% SLA.
import { APIGatewayProxyHandler } from 'aws-lambda';
export const handler: APIGatewayProxyHandler = async (event) => {
const { userId } = event.pathParameters!;
const user = await dynamodb.get({
TableName: 'users',
Key: { id: userId },
}).promise();
return {
statusCode: 200,
body: JSON.stringify(user.Item),
headers: { 'Content-Type': 'application/json' },
};
};
import * as cdk from 'aws-cdk-lib';
import { Construct } from 'constructs';
export class ApiStack extends cdk.Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
const table = new dynamodb.Table(this, 'Users', {
partitionKey: { name: 'id', type: dynamodb.AttributeType.STRING },
billingMode: dynamodb.BillingMode.PAY_PER_REQUEST,
});
const fn = new lambda.Function(this, 'Handler', {
runtime: lambda.Runtime.NODEJS_20_X,
handler: 'index.handler',
code: lambda.Code.fromAsset('lambda'),
});
table.grantReadData(fn);
}
}
Serwery wirtualne, kontenery, serverless containers. Auto-scaling, load balancing.
Serverless functions. Pay-per-invocation. Event-driven. Zero zarządzania serwerami.
Object storage. Pliki, obrazy, backupy, static hosting. 99.999999999% durability.
Managed PostgreSQL, MySQL. DynamoDB — NoSQL z single-digit ms latency.
CDN globalny. Edge locations na całym świecie. Cache, SSL, WAF.
Managed auth. Sign-up, sign-in, MFA, social login. Integracja z API Gateway.
Idealny gdy: budujesz skalowalne systemy, potrzebujesz enterprise-grade infrastruktury, masz zespół DevOps, potrzebujesz specjalistycznych usług (AI, IoT, analytics).
Nie najlepszy gdy: budujesz prosty MVP (lepiej Vercel + Firebase), nie masz doświadczenia z chmurą (stroma krzywa uczenia), budżet jest ograniczony.