APIs Overview
The Coderz Stack exposes two backend APIs behind an Nginx API Gateway with Redis caching. All API traffic is logged to ELK for full observability.API Architecture
Services
| Service | Port | Language | Purpose |
|---|---|---|---|
| Nginx API Gateway | 80 | — | Routing, caching, rate limiting |
| .NET API | 5050 | C# / ASP.NET | Main REST API |
| Python Web API | 8888 | Python / Flask | Utility API |
| Redis | 6379 | — | Caching & rate limiting |
| PostgreSQL | 5433 | — | Primary database |
Request Lifecycle
- Client sends request to port 80
- Nginx checks Redis cache — if hit, returns immediately (< 1ms)
- If miss, Nginx routes to appropriate backend
- Backend processes request, queries PostgreSQL if needed
- Backend returns response to Nginx
- Nginx stores response in Redis cache (with TTL)
- Nginx returns response to client
- Request is logged to Logstash → Elasticsearch → Kibana