Hands-on labs for backend infrastructure concepts.
- DB Caching - Reduce database load with Redis cache
- Cache Invalidation - TTL vs manual invalidation
- Session Sharing - Share sessions across multiple app instances
- Round-robin distribution across multiple backends
- Health checks with Prometheus
- Alert rules when server goes down
- Metrics collection (
/metricsendpoint)
- SSL termination at reverse proxy
- Self-signed certificate generation
- HTTP → HTTPS redirect
- Security headers
- Centralized logging with Elasticsearch, Kibana, Filebeat
- JSON structured logging for easy parsing
- Log aggregation from multiple app instances
- Search and visualize logs in Kibana
- 3-Tier Architecture - Presentation → Business → Data layers
- Clean Architecture - Dependency inversion, swappable infrastructure
- When to use which
- Monolith vs Microservices - When to split
- API Gateway - Nginx routing, single/multi host setup
- Service Discovery - Consul for dynamic service registration
Each lab runs with Docker Compose:
cd <lab-folder>
docker compose up --build