2025-09-30 10:00:00.100 [main] INFO com.example.api.ApiGateway - API Gateway initializing 2025-09-30 10:00:00.250 [main] INFO com.example.api.ApiGateway - Registering service endpoints 2025-09-30 10:00:00.450 [main] INFO com.example.api.ApiGateway - Loaded 45 API routes 2025-09-30 10:00:00.600 [main] INFO com.example.api.ApiGateway - API Gateway ready on port 8081 2025-09-30 10:00:05.780 [worker-1] INFO com.example.api.Gateway - Incoming request: GET /api/users 2025-09-30 10:00:05.891 [worker-1] DEBUG com.example.api.Gateway - Routing to user-service 2025-09-30 10:00:06.123 [worker-1] INFO com.example.api.Gateway - Request completed: 200 OK (343ms) 2025-09-30 10:00:08.560 [worker-2] INFO com.example.api.Gateway - Incoming request: POST /api/auth/login 2025-09-30 10:00:08.671 [worker-2] DEBUG com.example.api.Gateway - Routing to auth-service 2025-09-30 10:00:09.023 [worker-2] INFO com.example.api.Gateway - Request completed: 200 OK (463ms) 2025-09-30 10:00:12.340 [worker-3] INFO com.example.api.Gateway - Incoming request: GET /api/products/search 2025-09-30 10:00:12.451 [worker-3] DEBUG com.example.api.Gateway - Routing to product-service 2025-09-30 10:00:12.792 [worker-3] INFO com.example.api.Gateway - Request completed: 200 OK (452ms) 2025-09-30 10:00:15.118 [worker-4] INFO com.example.api.Gateway - Incoming request: POST /api/orders 2025-09-30 10:00:15.229 [worker-4] DEBUG com.example.api.Gateway - Routing to order-service 2025-09-30 10:00:15.340 [worker-4] WARN com.example.api.Gateway - Large request body detected: 2.4MB 2025-09-30 10:00:16.023 [worker-4] INFO com.example.api.Gateway - Request completed: 201 CREATED (905ms) 2025-09-30 10:00:22.118 [worker-5] INFO com.example.api.Gateway - Incoming request: POST /api/payments 2025-09-30 10:00:22.229 [worker-5] DEBUG com.example.api.Gateway - Routing to payment-service 2025-09-30 10:00:27.890 [worker-5] WARN com.example.api.Gateway - Upstream timeout: payment-service (5000ms) 2025-09-30 10:00:27.901 [worker-5] DEBUG com.example.api.Gateway - Retry attempt 1/3 2025-09-30 10:00:33.234 [worker-5] WARN com.example.api.Gateway - Upstream timeout: payment-service (5000ms) 2025-09-30 10:00:33.345 [worker-5] DEBUG com.example.api.Gateway - Retry attempt 2/3 2025-09-30 10:00:38.678 [worker-5] WARN com.example.api.Gateway - Upstream timeout: payment-service (5000ms) 2025-09-30 10:00:38.789 [worker-5] DEBUG com.example.api.Gateway - Retry attempt 3/3 2025-09-30 10:00:38.890 [worker-5] ERROR com.example.api.Gateway - Request failed: 504 Gateway Timeout (16.772s) 2025-09-30 10:00:42.118 [worker-6] INFO com.example.api.Gateway - Incoming request: GET /api/reports/sales/monthly 2025-09-30 10:00:42.229 [worker-6] DEBUG com.example.api.Gateway - Routing to report-service 2025-09-30 10:00:46.023 [worker-6] INFO com.example.api.Gateway - Request completed: 200 OK (3.905s) 2025-09-30 10:00:50.340 [rate-limiter] WARN com.example.api.RateLimiter - IP 192.168.1.100 approaching rate limit (45/50) 2025-09-30 10:00:51.673 [worker-7] INFO com.example.api.Gateway - Incoming request from 192.168.1.100 2025-09-30 10:00:51.784 [rate-limiter] ERROR com.example.api.RateLimiter - Rate limit exceeded for 192.168.1.100 2025-09-30 10:00:51.895 [worker-7] INFO com.example.api.Gateway - Request blocked: 429 Too Many Requests (122ms) 2025-09-30 10:01:00.118 [health-check] INFO com.example.api.HealthCheck - Running health check on all services 2025-09-30 10:01:00.229 [health-check] DEBUG com.example.api.HealthCheck - Checking user-service: OK (45ms) 2025-09-30 10:01:00.340 [health-check] DEBUG com.example.api.HealthCheck - Checking auth-service: OK (38ms) 2025-09-30 10:01:00.451 [health-check] DEBUG com.example.api.HealthCheck - Checking product-service: OK (42ms) 2025-09-30 10:01:00.562 [health-check] WARN com.example.api.HealthCheck - Checking payment-service: DEGRADED (4523ms) 2025-09-30 10:01:00.673 [health-check] DEBUG com.example.api.HealthCheck - Checking order-service: OK (39ms) 2025-09-30 10:01:00.784 [health-check] INFO com.example.api.HealthCheck - Overall health: DEGRADED (1 service degraded) 2025-09-30 10:01:15.118 [worker-8] INFO com.example.api.Gateway - Incoming request: POST /api/data/export 2025-09-30 10:01:15.229 [worker-8] DEBUG com.example.api.Gateway - Routing to export-service 2025-09-30 10:01:18.684 [worker-8] INFO com.example.api.Gateway - Request completed: 200 OK (3.566s) 2025-09-30 10:02:00.118 [worker-9] INFO com.example.api.Gateway - Incoming request: POST /api/files/upload 2025-09-30 10:02:00.229 [worker-9] DEBUG com.example.api.Gateway - Routing to file-service 2025-09-30 10:02:00.340 [worker-9] ERROR com.example.api.Gateway - Upstream error: 413 Payload Too Large 2025-09-30 10:02:00.451 [worker-9] INFO com.example.api.Gateway - Request failed: 413 Payload Too Large (333ms) 2025-09-30 10:02:05.562 [worker-10] INFO com.example.api.Gateway - Incoming request: POST /api/notifications/push 2025-09-30 10:02:05.673 [worker-10] DEBUG com.example.api.Gateway - Routing to notification-service 2025-09-30 10:02:08.906 [worker-10] INFO com.example.api.Gateway - Request completed: 200 OK (3.344s) 2025-09-30 10:02:15.229 [worker-11] INFO com.example.api.Gateway - Incoming request: GET /api/search 2025-09-30 10:02:15.340 [worker-11] DEBUG com.example.api.Gateway - Routing to search-service 2025-09-30 10:02:15.684 [worker-11] INFO com.example.api.Gateway - Request completed: 200 OK (455ms) 2025-09-30 10:02:20.885 [main] INFO com.example.api.ApiGateway - Shutdown signal received 2025-09-30 10:02:21.007 [main] INFO com.example.api.ApiGateway - Draining active connections (3 active) 2025-09-30 10:02:23.562 [main] INFO com.example.api.ApiGateway - All connections drained 2025-09-30 10:02:23.673 [main] INFO com.example.api.ApiGateway - API Gateway shutdown complete