HomeProduction Readiness › Rollback strategy

Rollback strategy

Purpose: Define what rollback means per change type in AEM — because code, config and content roll back differently.

Who this page is for

AudienceWhy it matters to you
All engineersEveryone deploys
Tech leadsRelease planning

Rollback is three different problems

Change typeRollback mechanismGotchas
Code (bundles, /apps)Redeploy previous versioned packageClean if packages are complete/immutable; hotfix drift breaks it
Config (OSGi, dispatcher)Previous config version via same pipelineDispatcher config needs web-server reload + possibly cache flush
Content/structure (/conf templates, CF models, migrations)Often no clean rollback — forward-fix or restoreModel/structure changes affect content created since; plan before, not after

The content-coupling trap

The dangerous release is code + content-structure together: v2 component reads a new property shape; authors edit 50 pages; v2 has a bug. Rolling back code breaks the 50 pages. Defenses:

Per-release rollback plan (write it down)

  1. Trigger: what observation invokes rollback (error rate X, feature broken, sev1)?
  2. Decision maker: who calls it?
  3. Steps: exact commands/pipeline runs, including dispatcher/CDN flush if needed.
  4. Verification: how we know rollback worked (same checks as deploy verification).
  5. Content note: what authors did since deploy and what happens to it.

Rehearse on stage quarterly — the deployment runbook and rollback runbook hold the operational detail.

Quick navigation