Designing a cluster-aware application
summary
Authoring runs always as a cluster on AEM as a Cloud Service, so writes go to a single repository and other nodes catch up up to two seconds later; use affinity cookies to avoid reading stale results. JCR ObservationListeners see repository-wide events unless you use Jackrabbit’s local-only listener; ResourceChangeListener is local by default (ExternalResourceChangeListener receives all). Sling events are JVM-local unless distributed, sling jobs and workflows provide exactly-once semantics, and concurrent writes surface as InvalidItemStateException more often.
AI-written summary · about
chapters (19)
- 0:00Introduction to clustering
- 1:30Farming vs clustering approaches
- 3:40Session affinity and sync delay
- 6:12Concurrency and MVCC in clusters
- 9:21Handling multiple event triggers
- 13:45Event listener differences
- 16:15Sling jobs and workflows
- 18:02Scheduler on cluster leader
- 19:25Cache and event handling issues
- 21:54Executing tasks exactly once
- 22:59Key takeaways for cluster design
- 24:23Eventual consistency pitfalls
- 26:27Q&A session begins
- 27:29Farming vs clustering in event handling
- 29:11Cluster leader determination
- 31:09Workflow execution in clusters
- 32:35Sling job triggers and checks
- 35:10Asset compute event handling
- 36:14Closing remarks
