ADR-008 Accepted 2026-07-03

ADR-008: Cost Strategy for Continuous Operation Under $20/Month

Cost ceiling of $20/month and the target of under $5/month.

ADR-008: Cost strategy for continuous operation under $20/month

Context

SecureVault is intended to be a continuously running, portfolio-grade security pipeline without the budget of an enterprise SOC. A hard cost ceiling of $20/month is set, with a target operating cost of under $5/month. Every architectural choice must respect this constraint.

Decision

Optimize each component for the free tier and low-volume usage:

Set a billing alert at $15/month so there is time to react before the $20 ceiling is reached.

Consequences

Positive:

Negative:

Scaling plan

ScaleCost ExpectationTriggered Change
~100 findings/mo~$0.02None.
~1,000 findings/mo~$0.25None.
~10,000 findings/mo~$2.50Evaluate Firestore batching; confirm Brevo volume.
> 50,000 findings/moRe-evaluateAdd Pub/Sub filtering; consider Cloud Run for finer cost control.
> $15/moBilling alertArchitect review before any ceiling breach.

Alternatives considered

AlternativeProsConsVerdict
512 MB or 1 GB function memoryFaster cold starts, more headroomIncreases memory cost; unnecessary at this scaleRejected.
7-day Pub/Sub retention (default)More replay bufferHigher storage cost; 1 day is sufficientRejected.
Non-partitioned BigQuery tableSimpler schemaQueries scan full history, raising costRejected.
Paid alerting from day oneSLA-backed notificationsViolates the under-$5 targetRejected; kept as Phase 2 fallback.

References