KMS & Stack Tuning
Redis 7 Read-Through Cache TTL & ETag Tuning for CI Bursts
Cut PostgreSQL 16 read queries by 78% to 88% during parallel CI/CD builds without serving stale rotated credentials.
78% PG Offload at 60s TTL · allkeys-lru · Sub-5ms Cache Hit
Cache Invalidation on Secret Mutation
Configure Infisical write paths and Redis maxmemory-policy allkeys-lru so secret updates immediately evict stale cache keys while read bursts hit in-memory Redis.
Sizing Redis Maxmemory Safely
Allocate at least 256 MB base plus 0.08 MB per 1,000 stored secrets and 0.14 MB per peak req/min so LRU eviction never drops active BullMQ queue keys.
Measured Thresholds & KMS Configuration
| Cache TTL Policy | PG16 Offload | Best Use Case |
|---|---|---|
| 0s (Cache Disabled) | 0% offload | Strict immediate-revocation vaults |
| 60s Balanced TTL | 78% offload | Standard CI/CD + Kubernetes ESO syncs |
| 120s Aggressive TTL | 88% offload | High-RPS (2,500-5,000 req/min) read fleets |