SUPABASE EGRESS INCIDENT
Supabase Egress Spiking in Minutes?
A sudden egress or usage increase can follow traffic, data-access or application changes. Supabase currently supports resource discovery and Project Map. CostNerve does not ingest Supabase monetary billing evidence; check usage and charges in the provider dashboard. Missing amounts are not zero cost.
What problem does it solve?
- Triage the first fifteen minutes
- Contain safely at the application layer
What to check first
- Pin down the first minute/hour where spend velocity changed; avoid comparing only monthly totals.
- Start with Uncached versus cached egress and then break the delta down across the Supabase dimensions that actually moved.
- Correlate the inflection with deployments, traffic, retries, schedulers, background jobs and abuse/bot events.
- Keep a before/after record, then use the smallest reversible mitigation so you can measure whether it worked.
Metrics and signals that matter
- Uncached versus cached egress
- Egress source: Database, Storage, Realtime, Auth, Edge Functions or Log Drains
- High-frequency queries and API endpoints
- Realtime subscriptions, large responses and download traffic
Likely causes
Deployment or configuration regression
A release can change request fan-out, runtime, memory, model choice, logging volume or cache behavior without obvious user-facing breakage.
Traffic, retries or loops
Legitimate growth, bots, retry storms and recursive/background loops can all multiply a normally cheap unit of work.
Billing dimension changed
For Supabase, investigate Uncached versus cached egress and Egress source: Database, Storage, Realtime, Auth, Edge Functions or Log Drains before assuming the total moved for a single reason.
How it works
Triage the first fifteen minutes
Inspect the latest deployment, client retries and sudden download loops. Compare bytes per request and cache misses in five-minute buckets; a burst of large responses can explain egress even if the request count barely changes.
Contain safely at the application layer
If traffic is abusive, review application rate limits and response caching with rollback in mind. CostNerve does not disable Supabase traffic; only the provider billing dashboard can establish the eventual charged amount.
Integration status
Supabase currently supports resource discovery and Project Map. CostNerve does not ingest Supabase monetary billing evidence; check usage and charges in the provider dashboard. Missing amounts are not zero cost.
Worked example with explicit assumptions
Illustrative example, not a provider rate: 12 USD/hour versus a 3 USD/hour baseline means 9 USD/hour of excess spend. If that rate persists for six hours, the additional cost is 54 USD. Recalculate after mitigation; do not treat this scenario as an invoice.
Supabase egress spike: trace bytes before estimating a bill
A small SaaS sees traffic grow after a frontend release. More downloaded bytes might come from repeated large responses, storage assets or clients polling too often.
- Compare the same UTC windows for response count, transferred bytes, route, storage downloads, client retries and caching behavior.
- Identify the highest byte-volume endpoint and reproduce one representative request without exposing customer records or tokens.
- Reduce unnecessary payloads or polling using a reversible change; then verify bytes per successful request and check the official billing window separately.
Illustrative calculation: Hypothetical traffic: 50,000 responses × 400 KB ≈ 20 GB of transferred payload; reducing each to 120 KB ≈ 6 GB. The 14 GB difference is a payload estimate, not a billed egress saving.
Evidence boundary: This calculation excludes protocol overhead, cache hits, transfer direction, plan allowances and vendor metering. Supabase owner-supplied statements are not automatically authenticated billing API evidence.
Next decision: Document the largest payload source and validate a safe size reduction before estimating money saved.
Frequently asked questions
Which Supabase signals should I inspect first?
Start with Uncached versus cached egress, Egress source: Database, Storage, Realtime, Auth, Edge Functions or Log Drains, High-frequency queries and API endpoints. Compare the same time window before and after the change so volume and unit-cost effects do not get mixed.
How do I know the incident is contained?
Check request volume, concurrency or the affected usage metric after the change. Then reconcile delayed billing for the same scope and currency. Record the action, owner and rollback condition; a quiet alert alone does not prove recovery.
Should uncertain cost be forced into a project?
No. Keep it unallocated until tags, project IDs, resource IDs or another reliable signal justify attribution. False precision produces worse decisions than visible uncertainty.
What should I do before an emergency cost control?
Capture the affected provider/project, current spend velocity, suspected cause and deployment/traffic context. Use a read-only investigation first; any write action should be explicit, scoped, reversible and audit logged.