Internals
Roadmap
What's done and what's next.
- Infra & security foundation: encrypted transport, hardened API, CI/CD, containers, K8s, Fly.io
- Phase 1, membership: join, probe, suspect, refute, dead, leave
- Phase 2, indirect probes: direct checks fall back to up to three helper nodes, which relay acknowledgments.
- Phase 2, bounded dissemination: member changes use a bounded queue with cluster-sized retransmission limits.
- Phase 2, Lifeguard local health: repeated missed probes extend the local probe deadline up to 9x the configured timeout; successful probes reduce the score.
- Phase 2, TCP push-pull: authenticated length-prefixed full membership snapshots over TCP every tenth gossip round; UDP updates remain MTU-bounded.
- Phase 2 follow-up: versioned protobuf wire format for gossip and TCP
push-pull, with a legacy JSON receive path during upgrades (
api/v1/gossip.proto). - Phase 3, service registry foundation: HTTP and gRPC register/list/get/delete, SQLite persistence, owner health checks, gossip replication, CLI lookup, SSE events, and snapshot backup/restore.
- Phase 3 follow-up: typed generated protobuf SDK:
atlas.registry.v1.RegistryServicewith generated Go stubs inapi/v1, field-masked updates, paging and a streamingWatch. - Phase 3 follow-up, service lifecycle: TTL heartbeats, deletion and automatic reaping
of services whose owner left the cluster, idempotent registration,
PUT/PATCHwithIf-Matchrevisions, owner-adopted IDs, and Fly.io replay of owner-only writes. - Writes through any node: nodes gossip their API address and forward updates, heartbeats and deletes to the owner with the caller's credential, over HTTP and gRPC.
- Client-side load balancing: a Go
http.RoundTripperfor<service>.atlashosts and a gRPCatlas:///resolver that follow live instance lists, skip draining instances and retry refused connections elsewhere. - Steadier health checks: HTTP, TCP and gRPC-health probes, per-service intervals, consecutive failure/success thresholds, and a draining flag for zero-downtime deploys.
- Phase 3 follow-up: bounded registry digest repair over authenticated TCP push-pull, including tombstones and full snapshots capped at 100,000 rows.
- Adoption: optional private-network DNS listener for healthy service A/AAAA and SRV records, with region-specific names, rotating answer sets, query metrics, and short configurable TTLs.
- Adoption: standard-library-only Python client (
clients/python) covering the whole API: registry CRUD, heartbeats, paging, resumable watch streams, admin calls, structured error codes, and an asyncio client, tested against a live node in CI. - Kubernetes integration: Kustomize deploys expose Atlas DNS to opted-in
namespaces; the
atlas-k8scontroller imports annotated Services. - Adoption follow-up: Node.js/TypeScript and Java clients with no runtime
dependencies, tested against a live node in CI; a service-history API
(
/v1/services/{id}/history,/v1/history, gRPCGetServiceHistory); and configurable stale-record and latency-routing policies, per node and per lookup. - Adoption follow-up: a C# / .NET 8 client (
clients/csharp) onHttpClientandSystem.Text.Json, with async calls, anIAsyncEnumerableevent stream that resumes after drops, admin operations, optionalIHttpClientFactoryregistration and a runnable ASP.NET Core example, tested against a live node in CI. - Adoption follow-up: zero-setup dev mode (
docker runprints a token and dashboard link), an:edgeimage frommain, andatlas-agent, which registers Docker containers fromatlas.*labels with health, draining and reconciliation. - Runnable examples: Go and Python services register with hostname-based
idempotency keys, heartbeat TTLs, recover expired registrations, deregister on
shutdown, and include clients that look up and call an instance
(
examples/go,examples/python); both run against a live node in CI. - Phase 4, health-aware routing: healthy instances, region affinity, per-peer EWMA probe latency, nearest measured instance, weighted rendezvous hashing, and weighted round-robin fallback.
- Weighted canary routing: per-instance relative traffic weights flow through the API, gossip, Go/Python/Node.js/Java clients and Console form; unhealthy instances are automatically removed from selection.
- Service metadata: key/value labels on every instance, replicated
through gossip within a fixed size budget, filterable in listings and lookups
(
meta=key:value), editable in the console and supported by every client. - Webhooks: signed (HMAC-SHA256) event deliveries to HTTP endpoints,
filtered by kind and service, retried with backoff in per-webhook order,
with SSRF protections, delivery counters, a test endpoint, console
management and
VerifyWebhookin the Go client. - Envoy integration: nodes serve REST xDS v3 (CDS and EDS), mapping regions, traffic weights, health, draining, dead owners and metadata onto Envoy localities, weights, health statuses and subset metadata; verified against Envoy 1.32.
- Phase 5, dashboard foundation: an authenticated, resumable stream of membership and registry events.
- Phase 5, Atlas Console: a separate Next.js app (
atlas-console/) that replaces the embedded dashboard: landing page with a live demo preview, cluster overview, nodes, services with detail and change history, live activity, a lookup tester that explains its choice, scoped service actions (register, edit, drain, heartbeat, deregister) and admin tools (credentials, backup, eviction). Nodes gainATLAS_CORS_ORIGINSandATLAS_CONSOLE_URL. - Phase 5 follow-up: cluster graph, geographic visualization and
latency map:
/v1/topologygathers every node's measured peer latency, and the console shows it as a graph, a world map (by region code orATLAS_LOCATION) and a matrix. - Kubernetes: a Helm chart (published to GHCR as an OCI artifact) and
atlas-k8s, a controller that mirrors annotated Services into Atlas, one instance per ready pod, draining terminating pods. Tested end to end in kind in CI. - Infrastructure as code: a Terraform provider (
atlas_serviceresource;atlas_services,atlas_service,atlas_lookup,atlas_members,atlas_nodedata sources), with acceptance tests against a live node. - Docs on the web: the console site renders the docs, the API reference, security, about, terms and contributing pages from this repository at build time.
- Security operations: optional node-ID admission allowlist, trusted proxy handling, TLS certificate reload, and non-secret bearer fingerprints in access logs.
- Security follow-up: scoped and expiring API credentials.
- Security follow-up: cryptographic per-node identity, Vault integration, and signed update commits.
- API and SDK: OpenAPI description, HTTP/gRPC registry endpoints, command-line lookup/watch, JSON output, configuration file, and public Go HTTP client.
- API follow-up: generated typed protobuf SDK and admin operations (credential listing, streamed backups, failed-node eviction), keyset pagination with tag/version/node filters, and stable JSON error codes on every response.
- Test foundation: protocol, SQLite, HTTP/gRPC, routing, proxy, fuzz, and failure-detection tests run in CI.
- Test scale coverage: 100, 500, and 1,000-node in-process convergence benchmark runs in CI with artifact output; Compose chaos recovery also runs in CI.
- Test follow-up: Compose chaos CI now tests process failure and recovery plus a running-node network partition and reconnection.
- Test follow-up: authenticated k6 API load profile runs in Compose CI.
- TLS rotation end-to-end test: an mTLS watch remains open during rotation, new connections receive the replacement certificate, and a client certificate from an unknown CA is rejected.
- Expanded Compose chaos: 10% and 30% packet loss, 200 ms peer latency
with routing preference changes, and a flapping link; CI reports detection
and recovery durations. The optional
chaos-netemsidecars alone receiveNET_ADMIN, leaving Atlas nodes' default capabilities unchanged. - Test coverage gate: CI enforces 60% total statement coverage of hand-written code.
- Deployment foundation: Compose, Kustomize dev/production overlays, Prometheus/Grafana, optional Prometheus Operator resources, and a Fly config.
- Deployment follow-up foundations: Helm and IaC, CI-gated staging with manual production promotion, optional StatefulSet HPA, S3-compatible scheduled off-node backups and isolated restore drills.
- Deployment environment activation: provision Fly staging, configure GitHub deploy secrets/production approvals, and configure a backup bucket and workload identity. These require account-level access and are documented above.
- Documentation: architecture, API spec, run instructions, console, backup/restore steps, and operator runbooks for API and membership alerts.
- Observability: API availability and latency recording rules, SLO alerts, and Grafana panels for the rolling 5-minute objectives.
- Repository operations: release/tag creation, GitHub security settings, milestones, discussions, and hosted uptime page need repository access.
- Stretch: consistent hashing is implemented in the routing package.
- Stretch follow-up: deterministic revisioned LWW-register merge for replicated service records.
- Stretch follow-up: public Fly.io demo: a two-node cluster in
cdgwith a read-only demo token, explorable from the console (see Live demo). - Stretch follow-up: a multi-region global Fly.io demo.
Improve this pageSource: README.md