bradshaw.cloud: Audio Edition artwork

bradshaw.cloud: Audio Edition · John Bradshaw

A PWA Is Not an Edge Strategy

How Progressive Web Apps leverage distributed and edge cloud services for faster load times, offline resilience, and improved user experiences. Read the written version, with its diagrams and tables: https://bradshaw.cloud/writing/akamai-edge-cloud-pwas/ Personal views, not those of my employer.

Nov 22026
4 minlength
7transcript lines
Publishertranscript source

Transcript first 7 of 7 lines

0:00A PWA Is Not an Edge Strategy. Published 31 July 2024. The PWA looked healthy. The application shell loaded, the navigation appeared, and the loading spinner kept turning where the order history should have been. The edge cache was doing exactly what it had been told to do. The browser was doing exactly what it had been told to do. Neither instruction described what should happen when an authenticated request could not reach the origin. That is the distinction worth making. A Progressive Web App is a browser delivery model. Edge infrastructure is a placement and routing model. They work well together, but one does not repair the failure modes of the other.

0:39Start with the transaction, not the technology. The first question is not whether a PWA needs edge delivery. It is which user journey is being protected. A product catalogue, help centre, campaign page, and versioned application shell are good candidates for edge caching. They are mostly public, read-heavy, and cheap to reproduce. An account balance, order history, basket, price calculation, or permission decision is different. It may be cacheable in narrow circumstances, but only once the ownership of invalidation, identity, and freshness is explicit. That sounds obvious. It is where many PWA designs fail. A team sees a faster static shell and assumes the application is resilient. The customer sees a shell that loads and a transaction that does not. The second experience wins. There is a table on the page here.

1:28Offline is a product decision with a reconciliation cost. Service workers can store an application shell and selected responses locally. They cannot make a disconnected application truthful. If a field worker records a delivery without a signal, the local device can retain that action. It still needs an identifier, ordering rule, retry behaviour, and a way to tell the user when the server has accepted, rejected, or conflicted with it. Background sync is useful only when the operation is safe to repeat or the server can recognise a duplicate. This is the point where “offline support” becomes real engineering. A cache policy describes what can be read. A reconciliation policy describes what can be changed. Conflating them produces the familiar result: an app that looks available, then quietly loses work or displays a state that no longer exists.

2:16The edge reduces distance. It does not remove responsibility. Putting an asset or response nearer to the reader can reduce travel time and take load away from an origin. It does not guarantee a fast page, a successful transaction, or a clean failover. Those outcomes depend on the full path: DNS, TLS, cache key, origin behaviour, third-party scripts, authentication, data dependencies, and the client itself. The same applies to resilience. A distributed delivery layer can route around an unhealthy origin only when there is another healthy place to send the request. If a PWA depends on one regional database, one identity provider, or one payment API, that dependency belongs in the incident plan. Calling the front end “distributed” does not change it. Security needs the same discipline. TLS protects data in transit. It does not decide whether a response may be cached, whether an uploaded token is still valid, or whether an edge rule has allowed a malicious request to reach an expensive origin path. The useful question is: which control is enforced where, and who owns its lifecycle?

3:23Measure the failure you are trying to avoid. Teams often stop at page-load metrics. They should also measure the moments that determine whether the PWA is trustworthy: an authenticated route after a fresh deployment; an expired session after a cached launch; an offline mutation replayed twice; a stale response after a product update; and a fallback page when one upstream dependency is unavailable. Those tests produce a more useful architecture than an abstract promise of speed. They show where caching is safe, where routing is valuable, and where the system still has a single point of failure.

3:58What to do on Monday morning. Take one important user journey and draw it from browser to origin. Mark every read, write, identity check, third-party call, cache, and retry. Then decide what must remain available, what may be stale, what must fail clearly, and who reconciles a change made while disconnected. The result may include edge delivery. It may include a service worker. It should include both only where they make a specific user journey more reliable—not because “PWA plus edge” sounds like an architecture.

4:30That's the end of this piece. Thank you for listening. The written version, with the diagrams and the tables, is at bradshaw cloud. This recording uses a synthetic voice cloned from John Bradshaw with his consent. Personal views, not those of my employer.

More bradshaw.cloud: Audio Edition episodes →