edge-config
Installation
SKILL.md
Edge Configs
Edge configs are JSON files stored in S3 that are polled into server memory at a regular cadence. They let us change server behavior at runtime without deploys -- load shedding, feature rollouts, operational toggles, etc.
Architecture
Each edge config has its own S3 file under the admin/ prefix in the admin S3 bucket (autumn-dev-server / autumn-prod-server). Configs are independent -- a parse error in one does not affect another.
Key files
| File | Purpose |
|---|---|
server/src/internal/misc/edgeConfig/edgeConfigStore.ts |
createEdgeConfigStore<T> factory -- generic S3 read/write, polling, status tracking |
server/src/internal/misc/edgeConfig/edgeConfigRegistry.ts |
Registry -- registerEdgeConfig, startAllEdgeConfigPolling, stopAllEdgeConfigPolling |
server/src/init.ts |
Calls startAllEdgeConfigPolling on boot, stopAllEdgeConfigPolling on shutdown |
server/src/external/aws/s3/adminS3Config.ts |
Bucket/region resolution (dev vs prod) |