Drupal as a content API: pragmatic headless without the drama
Full headless Drupal sounds elegant on a slide and painful in practice. Preview, layout, in-place editing — editors lose the tools they rely on. Do it only when the frontend really cannot live on Twig.
For most brand sites, a progressively decoupled setup wins. Twig renders the shell, JSON:API serves the interactive islands. Editors keep Layout Builder, developers keep a real frontend framework where it counts.
Cache is the second decision. Drupal's cache tags are excellent — pipe them through your CDN with a surrogate-key setup and you get sub-second invalidation without rebuilding the world.
The last mile is roles. A content editor should never see a JSON payload. Wrap the API behind a preview UI that mirrors production one-to-one, or the model breaks the first time something goes wrong at 5pm on a Friday.