- Application logs are collected via
docker logs - Nginx access logs help identify traffic patterns
- Azure Monitor / ELK stack can be integrated for centralized logging
- Docker container restart policies improve resilience
- Healthcheck endpoint ensures service availability
- Load balancer can be added for redundancy
- Horizontal scaling using multiple containers
- VM Scale Sets or Kubernetes for auto-scaling
- Stateless architecture to allow scaling
- Middleware can track API usage
- Threshold alerts can notify via email or Slack
- Use smaller VM size for staging
- Schedule non-production shutdown during low usage
- Use autoscaling to match demand
- GitHub Secrets
- Azure Key Vault
- Avoid storing secrets in codebase