Skip to main content
Level 2
Nov 5, 2026 2:07 AM UTC
Question

AEMaaCS Cache Warming – Best Practices for Multi-Pod Dispatcher and Fastly CDN

 

Hi Everyone,

We are using AEM as a Cloud Service (AEMaaCS) with Adobe-managed Fastly CDN and 2 Publish/Dispatcher pods in our Dev/Stage environments.

We have implemented a cache warmer scheduler for around 150 dynamic pricing pages (non-JCR pages) that fetch data from Magento. These pages take around 3–4 seconds to load on a cache miss.

What we observed

  • Each Dispatcher pod maintains its own local disk cache.

  • Cache warming requests through our public domain are distributed across both pods.

  • During subsequent runs, URLs cached on the same pod return quickly, while requests routed to the other pod result in cache misses and take 3–4 seconds.

  • Running the warmer twice helps populate the cache across both pods.

Questions

  1. Dispatcher Cache Warming: Is running the cache warmer multiple times the recommended approach to warm all Dispatcher pods, since we cannot target individual pods directly?

  2. Fastly CDN: How can we warm the cache across multiple Fastly POPs (Sydney, Melbourne, etc.)? Does Fastly shielding in AEMaaCS help reduce cache misses across POPs?

  3. Execution Approach: Is running Sling Jobs with options.onLeaderOnly(true) on Publish the recommended approach, or should we use Author or an external scheduler such as AWS Lambda?

  4. Best Practices: Are there any recommended approaches or documented best practices for cache warming in AEMaaCS, especially for dynamic pricing pages?

Would appreciate any suggestions or real-world experiences from teams using AEMaaCS.

 

Thanks

Vishnu

2 replies

Raja_Reddy
Community Advisor
Community Advisor
Nov 7, 2026 10:31 AM UTC

Hi ​@VishnuRa5 

1. Dispatcher warming across pods

I don’t know of a documented way to target individual Dispatcher pods, since requests are load-balanced. Running the warmer more than once is a practical workaround, but it only probabilistically covers every pod, and pods can be recycled or scaled, so a warmed cache isn’t guaranteed to stay warm.

For this reason I’d rely less on warming and more on making a cold miss cheap. Dispatcher’s local cache is per pod, but the CDN cache sits in front of all pods. If these pages are cacheable at the CDN, a miss on one pod only matters for the first request that reaches the origin, not for every visitor.

2. Fastly POPs

You can’t warm every POP from one place, because a request only populates the cache at the POP that serves it. Practical options:

  • Set CDN-level TTLs so each page stays cached long enough to be reused. Use Cache-Control or Surrogate-Control with stale-while-revalidate and stale-if-error in your Dispatcher vhost config (for example Header set Surrogate-Control "max-age=XXX,stale-while-revalidate=XXX,stale-if-error=XXX"). With stale-while-revalidate, users get the cached copy while the CDN refreshes it in the background, so the 3–4 second Magento call doesn’t block them.
  • If warming per region matters (Sydney, Melbourne), run the warmer from those regions, for example with an external scheduler in each region.
  • On shielding: I couldn’t confirm the details of how shielding works in AEMaaCS from the docs I checked, so I’d verify that with Adobe Support rather than assume it reduces cross-POP misses.

3. Where to run the warmer

An external scheduler (for example AWS Lambda or a CI job) is usually easier to reason about than a Sling job on Publish, because you control where and how often it runs, and it hits your public domain exactly like a real user, through the CDN. A Sling job with onLeaderOnly runs from inside the cluster and doesn’t necessarily reproduce the real CDN-to-Dispatcher path. I’d avoid Author for this.

4. Best practices

Translate
AMANATH_ULLAH
Community Advisor
Community Advisor
Nov 9, 2026 8:54 AM UTC

​@VishnuRa5 

In AEMaaCS, each Dispatcher pod maintains its own local cache. Repeated requests may help warm multiple pods, but load balancing and CDN caching mean this is not guaranteed. Similarly, warming one Fastly POP doesn't guarantee other POPs are warmed.

I would recommend using an external scheduler like AWS Lambda for controlled cache warming, with proper TTL configuration and cache HIT/MISS monitoring.

More importantly, optimize the Magento API first. A 3–4 second cache-miss response indicates an underlying performance bottleneck. Consider API optimization and application-level caching of pricing data, using Dispatcher/CDN caching and cache warming as complementary strategies rather than relying on warming alone.

Translate
Amanath Ullah