Decoupled
5 articles on Decoupled, each a problem from production engineering work and how it was solved.
-
Next.js 16 cacheTag keeps 128 tags: put the ones you revalidate first
Each Next.js cacheTag() call keeps about 128 tags and drops the rest, so put the tags you revalidate by ahead of the tags a CMS forwards.
-
Purge a Next.js front end after a Drupal entity save commits
Register the purge with drupal_register_shutdown_function so it runs after the save transaction commits, and dedupe it per site per request.
-
Don't cache failures in Next.js 16 "use cache": throw, catch outside
A fallback returned from a "use cache" function is cached like real data. Let the cached function throw and catch the error in an uncached wrapper.
-
Why a required Drupal media field is null in a Next.js front end
Required is a form rule, not a read guarantee: unpublished or deleted media resolves to null, so type references as nullable and render each item defensively.
-
Rebuild Drupal Pathauto aliases when a menu link moves
Pathauto only rebuilds menu-based aliases on node save, so regenerate them from menu link and path alias hooks, queueing deep levels for cron.