Dmytro Antonyuk · Field notes

How headless works, in three small machines

Headless is a simple idea that usually gets explained with boxes and arrows. Here it is as three machines on a bench. Each one moves the way the real system does.

Hover, click or use the arrow keys on a figure. On a phone, tap it.

One machine, or a content API with many screens

In a classic CMS the content and the pages it renders live in one box. That is fine until you want a second frontend, a faster site or a redesign that does not touch the content. Headless splits them: the content sits behind an API, and every screen is a separate thing you can rebuild on its own.

The content API, the one part every screen talks toFrontends: website, app, in-store screenIn a monolith the content and the page it renders ship as one machine: change the look and you redeploy the whole thing. Headless keeps the same content behind one API, a CDN rack holds rendered pages close to visitors, and each frontend is its own device you can rebuild or add without touching the cabinet.

Publish, and only that page changes

The usual worry is that a static, cached site means slow updates. It does not have to. With Payload and Next.js the editor presses publish, a hook asks Next.js to render that one page again, and the CDN swaps its copy. The rest of the site keeps serving from cache.

The publish key and the one page it refreshesCached pages on the CDNAn editor saves a page in Payload. A hook tells Next.js to revalidate that one path, Next.js renders it again and the CDN swaps the cached copy. Nothing else is rebuilt, so the change is live in seconds and the other pages keep serving from cache.

Moving off WordPress without losing search traffic

Most of the risk in a migration is not the code. It is the URLs. Every old address that Google, backlinks and bookmarks know about needs a permanent redirect to its new page. Miss one and that traffic ends on a 404.

Patch cords: one 301 redirect per old URLThe 404 trough: traffic with nowhere to goSearch rankings, backlinks and bookmarks all point at the old WordPress URLs. A migration keeps them by mapping every old URL to its new page with a permanent redirect. Pull a cord and that traffic, and the ranking it carried, lands on a 404.

When it is worth it

If your site is a dozen pages that change once a month, a well tuned WordPress is often the better call. I would rather tell you that than sell you a rebuild.

Weighing a move like this? Send a short note about your site and what slows you down. I will reply with an honest view on whether headless is worth it for you.

[email protected]