Commit Graph

3 Commits

Author SHA1 Message Date
admin 29cf10c379 fixed region fetching in user_attributes 2026-04-16 13:42:50 +08:00
admin 6d8a2faf25 fixed message 2026-01-27 13:14:22 +08:00
admin 0d8f5b9600 feat: implement horizontal scaling optimizations for authz service
- Add /health and /ready endpoints for load balancer health checks
- Replace in-memory JWT token cache with Redis for multi-replica support
- Reduce DB connection pool from 100 to 25 connections per replica
- Add distributed rate limiting (100 req/min + 20 burst) using Redis
- Implement circuit breakers for DB and Redis to prevent cascading failures

This enables the service to scale horizontally with multiple replicas
behind a load balancer without exhausting database connections or
maintaining separate token caches per instance.
2025-12-16 10:03:18 +08:00