# Edge Architecture

URL: https://eoxlabs.dev/capabilities/edge-architecture
Last updated: 2026-11-26
Publisher: EOXLABS (https://eoxlabs.dev)

Section: [Capabilities](https://eoxlabs.dev/capabilities)

EOXLABS designs software architectures for Cloudflare's developer platform. The work is deciding which code runs in Workers near the caller, where each piece of state lives, how consistent each read must be, and how the edge reaches data that has to stay in one region. The result is a system that is edge-native by design, not moved there afterwards.

## What belongs at the edge, and what doesn't?

Every primitive on the platform makes a different promise about consistency and placement. Most architecture mistakes come from using one primitive for a job another does better. EOXLABS starts every design from this table.

| Primitive | What Cloudflare documents about it | EOXLABS uses it for | EOXLABS avoids it for |
|---|---|---|---|
| Workers | Functions that run, by default, in the data center closest to the request | Routing, authentication checks, rendering, API logic | Holding state between requests |
| Durable Objects | [Each object has a globally unique name and strongly consistent storage that lives with it](https://developers.cloudflare.com/durable-objects/) | One source of truth per room, document, account or rate limit | Queries across every object at once |
| Workers KV | [Eventually consistent; changes may take up to 60 seconds or more to appear in other locations](https://developers.cloudflare.com/kv/concepts/how-kv-works/) | Configuration, feature flags, lookups read far more often than written | Anything a user writes and expects to read back elsewhere immediately |
| D1 | [A managed, serverless database with SQLite's SQL semantics, with read replicas](https://developers.cloudflare.com/d1/) | Relational data that splits per tenant or per product | Workloads that already depend on Postgres features or extensions |
| R2 | [Object storage without the egress bandwidth fees typical of cloud providers](https://developers.cloudflare.com/r2/) | Files, media, exports, backups | Small records that must be queried by field |
| Hyperdrive | [Connection pooling and query caching for existing Postgres or MySQL databases](https://developers.cloudflare.com/hyperdrive/) | Reaching a regional database from Workers without moving it | Making a regional database behave as if its writes were global |

## When does a system need edge architecture?

- Users are spread across continents, and every request still travels to one region.
- A live feature needs one authoritative copy of state that many clients write to at once.
- Data residency rules decide where records may be stored and processed.
- The cost of moving data out of a cloud provider has become a line item someone asks about.
- Workers already sit in front of an origin, but every request still makes the round trip to it. That system is edge-deployed rather than edge-native.

## How does EOXLABS design an edge architecture?

EOXLABS works through the same five questions for every data flow in the system, and writes the answers down.

1. **Who calls, and from where?** Callers are mapped by geography and by type: browsers, native apps, partner APIs and devices. Placement follows the caller.
2. **What does the request read, and how fresh must it be?** Data that tolerates a delay goes to KV or the cache. Data that must be current comes from a Durable Object, D1 or the primary database.
3. **Who writes, and how many writers act at once?** One writer per entity points to a Durable Object. Many writers over shared relational data point to Postgres.
4. **Where may the data live?** Durable Objects support [jurisdiction restrictions (`eu`, `us` and `fedramp`) that keep an object running and storing data within a region](https://developers.cloudflare.com/durable-objects/reference/data-location/). Location hints, by contrast, are documented as best effort, not a guarantee. The same question decides whether a Worker should run near the user or near its back end: Cloudflare's [placement options](https://developers.cloudflare.com/workers/configuration/placement/) can move a Worker next to a database in a named cloud region when most of its time is spent talking to that database.
5. **What happens when a part fails?** Each component gets a written failure mode: what the user sees, what retries, what is logged, and what needs a person.

## How fast should an edge request be?

EOXLABS designs for a p50 response under 50 ms at the edge. That is a design target, not a measured guarantee, and the [engineering note on sub-50 ms edge latency](https://eoxlabs.dev/engineering/sub-50ms-edge-latency) shows how the budget is spent. The target shapes decisions early: a request that must reach a single-region database cannot meet it from the other side of the world, so the design either moves the data, caches it, or accepts a slower path and records why.

Two platform properties make the target realistic. Cloudflare documents that [the Workers isolate model eliminates the cold starts of the virtual machine model](https://developers.cloudflare.com/workers/reference/how-workers-works/). And requests reach the nearest location on a network whose cities Cloudflare lists on its [network page](https://www.cloudflare.com/network/). Neither property helps if the request then waits on a distant origin, which is why the questions above come first.

## What does the client receive?

- An architecture document with every Worker, Durable Object class, database and bucket, and the data flows between them.
- A data placement map: which data lives where, under which jurisdiction setting, and why.
- A consistency register: for each read path, how stale the data may be and what enforces that limit.
- A latency budget for each critical request path, with the method used to measure it.
- Configuration as code for every route and binding, so the platform setup can be reviewed like any other change.
- A failure-mode table, with runbooks for the failures that need a person.

EOXLABS's own products follow the same pattern. EDGE RUNTIME, the substrate beneath them, combines Workers, Durable Objects, D1, R2 and KV in one deployment model across products; the [products page](https://eoxlabs.dev/products) lists what runs on it.

## When isn't edge architecture the right fit?

- **The workload is a long batch job.** Model training or an overnight report needs sustained compute, and distance to the user doesn't matter.
- **Every user sits next to the database.** A system used in one building or one region gains a layer from the edge without shortening any path.
- **The core depends on something the Workers runtime doesn't provide.** A long-lived process, a native library or a database feature can stay on an origin behind the edge. When that dependency is the heart of the system, a regional deployment is simpler and EOXLABS will say so.
- **The team can't take on a new platform.** An edge architecture the team can't operate is worse than a regional one it can.

## Where does edge architecture lead next?

Most existing systems reach the edge through a [legacy-to-edge migration](https://eoxlabs.dev/capabilities/legacy-to-edge-migration), one route at a time. [Real-time and voice systems](https://eoxlabs.dev/capabilities/real-time-voice) depend on the Durable Object design described here, and [data pipelines](https://eoxlabs.dev/capabilities/data-pipelines) depend on the storage choices. All three appear on the [capabilities overview](https://eoxlabs.dev/capabilities).

The stack pages cover each primitive in depth: [Cloudflare Workers](https://eoxlabs.dev/stack/cloudflare-workers), [Durable Objects](https://eoxlabs.dev/stack/durable-objects), [Workers KV](https://eoxlabs.dev/stack/workers-kv), [D1](https://eoxlabs.dev/stack/d1), [R2](https://eoxlabs.dev/stack/r2) and [Hyperdrive](https://eoxlabs.dev/stack/hyperdrive). The note on [edge-native versus edge-deployed systems](https://eoxlabs.dev/engineering/edge-native-vs-edge-deployed) explains the difference the last signal above describes, and [Durable Object alarms](https://eoxlabs.dev/engineering/durable-object-alarms) shows how scheduled work runs without a server.

Latency and residency weigh differently by sector. The pages on [financial services](https://eoxlabs.dev/industries/financial-services), [telecommunications](https://eoxlabs.dev/industries/telecommunications) and [media and entertainment](https://eoxlabs.dev/industries/media-entertainment) describe where the edge matters most in each.

## Related

- [Cloudflare Workers](https://eoxlabs.dev/stack/cloudflare-workers): Cloudflare Workers is the request layer of EOXLABS systems, and this page covers how EOXLABS structures a Worker, the limits behind each design choice, and where a Worker is the wrong tool.
- [Durable Objects](https://eoxlabs.dev/stack/durable-objects): Durable Objects give EOXLABS one single-threaded, authoritative home for each piece of shared state, with clear guarantees, hard limits and cases where another store is better.
- [Why sub-50 ms is a defensible edge claim and sub-2 ms is not](https://eoxlabs.dev/engineering/sub-50ms-edge-latency): Fiber propagation, handshake round trips and last-mile latency decide which edge latency claims hold up. Server-Timing and real-user data keep the numbers honest.
- [Edge-native vs edge-deployed](https://eoxlabs.dev/engineering/edge-native-vs-edge-deployed): What separates an edge-native system from one that only runs its handlers at the edge, with a comparison table and the architecture smells that give an edge-deployed system away.
- [Legacy-to-Edge Migration](https://eoxlabs.dev/capabilities/legacy-to-edge-migration): Maintain On Course: EOXLABS migrates live systems to Cloudflare's edge one route at a time, keeps the existing database reachable through Hyperdrive, and keeps every step reversible.

## More capabilities

- [Native Apps](https://eoxlabs.dev/capabilities/native-apps)
- [AI Systems and Agents](https://eoxlabs.dev/capabilities/ai-systems)
- [Data Pipelines](https://eoxlabs.dev/capabilities/data-pipelines)
