// Capabilities

Edge Architecture

Last updated ·

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.

PrimitiveWhat Cloudflare documents about itEOXLABS uses it forEOXLABS avoids it for
WorkersFunctions that run, by default, in the data center closest to the requestRouting, authentication checks, rendering, API logicHolding state between requests
Durable ObjectsEach object has a globally unique name and strongly consistent storage that lives with itOne source of truth per room, document, account or rate limitQueries across every object at once
Workers KVEventually consistent; changes may take up to 60 seconds or more to appear in other locationsConfiguration, feature flags, lookups read far more often than writtenAnything a user writes and expects to read back elsewhere immediately
D1A managed, serverless database with SQLite's SQL semantics, with read replicasRelational data that splits per tenant or per productWorkloads that already depend on Postgres features or extensions
R2Object storage without the egress bandwidth fees typical of cloud providersFiles, media, exports, backupsSmall records that must be queried by field
HyperdriveConnection pooling and query caching for existing Postgres or MySQL databasesReaching a regional database from Workers without moving itMaking 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. 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 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 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. And requests reach the nearest location on a network whose cities Cloudflare lists on its network page. 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 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, one route at a time. Real-time and voice systems depend on the Durable Object design described here, and data pipelines depend on the storage choices. All three appear on the capabilities overview.

The stack pages cover each primitive in depth: Cloudflare Workers, Durable Objects, Workers KV, D1, R2 and Hyperdrive. The note on edge-native versus edge-deployed systems explains the difference the last signal above describes, and Durable Object alarms shows how scheduled work runs without a server.

Latency and residency weigh differently by sector. The pages on financial services, telecommunications and media and entertainment describe where the edge matters most in each.

→

Related

+

More capabilities

Have a system that can’t go dark?

Start a project →