You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 338d315
Browse filesBrowse the repository at this point in the historyBrowse files
NEED_SBT = @command -v sbt >/dev/null 2>&1 || { echo "Error: sbt not found in PATH."; echo " Install it: https://www.scala-sbt.org/download.html"; echo " Or skip sbt entirely and use Docker: make stack"; exit 1; }
25
25
26
26
.DEFAULT_GOAL := help
27
-
.PHONY: help up up-clean down clean logs status run dev stack obs \
28
-
fmt test test-it test-all smoke health correctness env-drift monitoring-check tf-validate tf-test
27
+
.PHONY: help up up-clean down clean logs status run dev stack stack-scaled obs \
28
+
fmt test test-it test-all smoke health correctness env-drift monitoring-check tf-validate tf-test spec \
Copy file name to clipboardExpand all lines: README.md
+45-7Lines changed: 45 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,9 +64,11 @@ deliberately out of scope for now.
64
64
| Tenancy | Every storage key scoped to the authenticated client ([ADR-005](docs/adr/005-tenant-namespaced-storage-keys.md)), with cross-tenant tests and invariant D || Hosted multi-tenant service: accounts, billing, a managed control plane |
65
65
| Access | API keys from Secrets Manager, a permission per route, a per-task throttle per key and on unknown keys per source | Audit records for failed authentication and permission refusals | SSO and role management |
66
66
| Failure behavior | Resilience stack on the rate-limit path; timeout and bulkhead on idempotency and quota; corrupt state fails closed and self-heals || Serving decisions from a local cache during an outage |
67
-
| Events and audit | Kinesis events at most once; `AUDIT` log lines | Firehose to S3 (Parquet), Glue, Athena, and 7-year retention: in Terraform, never deployed ([COMPLIANCE.md](docs/COMPLIANCE.md)) ||
67
+
| Events and audit | Kinesis events at most once; `AUDIT` log lines; per-client, per-minute usage folded from the stream, each record once ([ADR-007](docs/adr/007-usage-aggregation-from-the-event-stream.md))| Firehose to S3 (Parquet), Glue, Athena, and 7-year retention: in Terraform, never deployed ([COMPLIANCE.md](docs/COMPLIANCE.md)) ||
68
68
| Consistency | One AWS Region is the consistency boundary | A written statement of the single-region semantics | Exact limits across Regions (global tables) |
69
-
| Evidence | Invariants A-D in CI and against a Terraform deploy on AWS; LocalStack latency figures | A benchmark report on real AWS ||
69
+
| Evidence | Invariants A-D in CI, against a Terraform deploy on AWS, and across three replicas behind a load balancer on LocalStack; LocalStack latency figures | A benchmark report on real AWS ||
70
+
| Deployment | ECS Fargate by Terraform, run on AWS; a Helm chart and an EKS Terraform root, rehearsed on kind ([deploy/README.md](deploy/README.md)) | The first EKS deploy on AWS ||
71
+
| Objectives | Written SLOs with burn-rate alerts and a Grafana dashboard ([SLO.md](docs/SLO.md)) | Revising the targets against a month of real traffic ||
70
72
| Interfaces | HTTP API; a local demo dashboard (Terraform pins it off) || A product web UI or admin console |
71
73
72
74
## Architecture
@@ -405,12 +407,17 @@ make obs # the stack plus Prometheus, Grafana and Jaeger
and [docs/SLO.md](docs/SLO.md) says what each objective promises. `make
419
+
slo-check` runs the rules' own tests, which feed each kind of burn and check
420
+
that its alert fires.
414
421
415
422
**Prometheus metrics** (`GET /metrics` with an `AdminMetrics` key)
416
423
@@ -426,6 +433,15 @@ The dashboard source is
426
433
|`gate_quota_tokens_admitted_total`| counter |`level`; tokens reserved by admitted quota checks, i.e. the pre-request estimate |
427
434
|`gate_events_published_total`| counter |`event_type`; counted once a Kinesis put succeeds |
428
435
|`gate_events_dropped_total`| counter | Kinesis events dropped after the retry |
436
+
|`gate_http_requests_total`| counter |`route` (the template, never a key), `code`, `degraded`; every answer, which is what the availability SLO counts |
437
+
|`gate_http_request_duration_seconds`| histogram |`route`; request to response headers, which is what the latency SLO counts |
438
+
439
+
The usage aggregator serves its own metrics on `:9095/metrics`:
0 commit comments