Each article takes one part of the layer and follows the same order: the problem, the design, the code that carries it, the ways it can fail with the test that covers each, and the limits I know about.
The first two are the channels that needed real engineering: a Worker on the path of a client’s traffic, and an app that holds credentials to a client’s shop. The third is the control that sits in front of both. The fourth is a record of things going wrong.
- 1 The edge relay: a Worker that may change a page and must never break one A Cloudflare Worker in front of client sites: classify, fetch the origin once, guard, merge a payload from KV into the HTML stream. Fail-open in code, and structured data merged, not replaced.
- 2 The Cafe24 app: tokens that rotate, and a lock so only one process refreshes An OAuth app for a commerce platform: a signed install flow, encrypted tokens, a refresh lock in MongoDB for rotating refresh tokens, and a client that stays under the rate limit instead of retrying.
- 3 The approval inbox: nothing reaches a client's page without a name on it Proposals carry their evidence, a person adopts or skips each page, a per-site write scope starts at off, shipping is a separate plan-then-apply step, and every write logs before and after values.
- 4 An edge latency postmortem: the measurement was wrong, not the Worker A relay in front of a client's shop had to add under 100 ms at p95. The first measurement failed badly, and the cause was the vantage point. Plus the six ways the first connection went wrong.
Function names, key formats, constants and statuses in these articles are the ones in the code. Excerpts are shortened and their comments translated from Korean.
