Skip to content

eveningcafe/leaning-by-practice

Repository files navigation

learning-by-practice

Hands-on labs for backend infrastructure concepts.

Labs

  • 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 (/metrics endpoint)
  • 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

Quick Start

Each lab runs with Docker Compose:

cd <lab-folder>
docker compose up --build

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors