feat: scale fixes — max-instances, asset caching, shared rate limits, global cap #66

Merged
will.anderson merged 2 commits from dev into stage 2026-05-11 03:12:59 +00:00
Owner

Promotes scale fixes from dev to stage for CI validation.

Promotes scale fixes from dev to stage for CI validation.
will.anderson added 2 commits 2026-05-11 03:12:48 +00:00
feat: scale fixes — max-instances, asset caching, shared rate limits, global cap
Dev — Build & local smoke test / build-smoke (pull_request) Successful in 2m0s
bdb6ddc581
- soul-demo-stage: raise max-instances 10 → 50
- marketing-stage: explicitly set max-instances 200
- /assets/* and /brand/*: return Cache-Control: public, max-age=31536000, immutable
  so Cloudflare caches static assets at the edge (eliminates Cloud Run hit per request)
- /js/*: bump from max-age=3600 to max-age=31536000, immutable (same policy)
- Per-uid demo rate limit: replace in-process state with Supabase demo_rate_limits table
  so the 10-chats/day cap is enforced across all Cloud Run instances; falls back to
  in-process for local dev when SUPABASE_SERVICE_KEY is absent
- Global circuit breaker: trip if any single instance handles ≥2000 demo requests/UTC day
feat: scale fixes — max-instances, asset caching, shared rate limits, global cap
will.anderson merged commit 41bad94368 into stage 2026-05-11 03:12:59 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: neuron-technologies/neuron-web#66