Anycast State Replication
Read local, write global. Session tokens, feature flags, and rate-limit counters replicate asynchronously across continents in under 150ms.
Lattice compiles your stateless functions, queues, and KV cache into a single global runtime with sub-20ms cold starts and deterministic billing.
// edge/route.ts — zero-config global KV
import { lattice } from '@lattice/sdk';
export default lattice.handler(async (req, ctx) => {
const tenant = ctx.geo.region;
await ctx.kv.put(`hit:${tenant}`, Date.now());
return Response.json({ ok: true, region: tenant });
});
# Deploy & invoke across 38 edge PoPs
$ curl -X POST https://api.lattice.dev/v4/deploy \
-H "Authorization: Bearer $LATTICE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"entry":"edge/route.ts","memory":128}'
# -> { "url": "https://app.edge.lattice.dev", "p99": "14ms" }
// main.go — typed queue consumer
package main
import "github.com/lattice-cloud/go-edge"
func Handle(ctx *edge.Context) error {
return ctx.JSON(200, edge.Map{
"status": "healthy",
"pop": ctx.PoP(),
})
}
Skip stitching together six cloud consoles. Lattice unifies routing, state replication, and observability behind a single clean primitive.
Read local, write global. Session tokens, feature flags, and rate-limit counters replicate asynchronously across continents in under 150ms.
Immutable deployment snapshots let you revert traffic across all regions with one atomic pointer swap.
MicroVM sandboxing per tenant keeps memory encrypted and network egress strictly scoped.
Structured traces, tail-sampled logs, and per-route latency histograms stream straight to Datadog, Grafana, or your own S3 bucket.
Switch between monthly and annual billing — powered entirely by pure CSS radio states.
For side projects, prototypes, and personal APIs.
For production teams shipping customer-facing workloads.
Dedicated capacity, custom SLAs, and compliance.
Native HTML5 <details> disclosures provide accessible keyboard and screen-reader accordions out of the box.
Artifacts compile once and distribute to all 38 PoPs in under 3 seconds. Routing switches atomically with zero dropped connections.
Yes. Any standard Fetch handler, Hono, Astro SSR adapter, or Go HTTP router compiles cleanly using our CLI with zero proprietary lock-in.
No. Internal KV replication and inter-region queue routing are included in your plan without surprise cross-AZ transfer bills.
Enterprise workspaces can deploy the exact same runtime binary into AWS, GCP, or bare-metal Kubernetes clusters.
Enter your work email to receive an instant CLI token and 1M free monthly requests.
Token request queued! Check your inbox for your Lattice CLI setup link.