Hi All
I have a query in dispatcher cache
When the dispatcher receives a request, it performs a content check and comparison using the stat file mechanism. If the dispatcher detects outdated content, it retrieves the latest version from the publish env and serves it to the incoming request.
When a page is published, the latest change will be reflected in the Dispatcher as well in AEM as a cloud ?.
The latest content will be pushed from Author->Publish->Dispatcher. ?
How the cache works in background in AEM as a cloud ? I would greatly appreciate it if someone could kindly explain these details.
Thanks
KannaCh2
Solved! Go to Solution.
Views
Replies
Total Likes
When an author activates or publishes new or modified content, it is moved to the publishers. Simultaneously, a cache invalidation notification is sent to the dispatcher. We follow a multiple cache invalidation approach, which includes methods like .stat file-based and TTL-based invalidation. At this stage, if the newly activated content already exists, it is deleted from the Dispatcher cache.
The next time a user requests this page, the Dispatcher cache will technically not have a cached version of this specific page. Consequently, the Dispatcher will request the page from the publisher. If the publisher responds successfully, the Dispatcher will cache a local copy of the page before sending it to the user so that the next request will be directly served by dispatcher from cache. The behavior of what can be cached is controlled by various configurations.
Regards
Albin
Hi @KannanCh2
Author Environment: Content authors create and modify content in the author environment.
Publish Environment: When content authors publish a page, the changes are replicated from the author environment to the publish environment. The publish environment serves as the source of truth for the published content.
Dispatcher Cache: The dispatcher cache is a caching layer that sits in front of the publish environment. When a request is made to the dispatcher, it checks its cache for the requested content. If the content is not found or if it is outdated, the dispatcher retrieves the latest version from the publish environment and serves it to the request.
So, when a page is published, the latest changes are pushed from the author environment to the publish environment. The dispatcher cache, being in front of the publish environment, will also receive the latest content and serve it to subsequent requests.
https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/implementing/conten....
https://experienceleague.adobe.com/docs/experience-cloud-kcs/kbarticles/KA-17461.html?lang=en
Hi @Raja_Reddy
Thanks for your reply ..I m aware of that "When a request is made to the dispatcher, it checks its cache for the requested content. If the content is not found or if it is outdated, the dispatcher retrieves the latest version from the publish environment and serves it to the request."
But my doubt is , might be my understanding is wrong, just want to clarify that ,
When a page is published, the latest change will be reflected in the Dispatcher as well in AEM as a cloud ?.The latest content will be pushed from Author->Publish->Dispatcher. on the same time without made any request to dispatcher ?
Hi @KannanCh2
Yes, you are correct. When a page is published in AEM, the latest changes will be reflected in both the Publish environment and the Dispatcher. The content is pushed from the Author environment to the Publish environment, and then it is replicated to the Dispatcher. This ensures that the latest version of the content is available to users without the need to make a request to the Dispatcher.
regarding your question:
When a page is published, the latest change will be reflected in the Dispatcher as well in AEM as a cloud? The latest content will be pushed from Author->Publish->Dispatcher. on the same time without made any request to dispatcher?
The Dispatcher doesn't automatically receive content pushed from the author environment. Instead, it serves content from the publish environment. When content is published from the author environment to the publish environment, it becomes available for the Dispatcher to serve to end-users. The Dispatcher doesn't actively pull content from the author environment; it serves content from the publish environment when requests are made by end-users.
So, to summarize, when content is published in AEM:
When an author activates or publishes new or modified content, it is moved to the publishers. Simultaneously, a cache invalidation notification is sent to the dispatcher. We follow a multiple cache invalidation approach, which includes methods like .stat file-based and TTL-based invalidation. At this stage, if the newly activated content already exists, it is deleted from the Dispatcher cache.
The next time a user requests this page, the Dispatcher cache will technically not have a cached version of this specific page. Consequently, the Dispatcher will request the page from the publisher. If the publisher responds successfully, the Dispatcher will cache a local copy of the page before sending it to the user so that the next request will be directly served by dispatcher from cache. The behavior of what can be cached is controlled by various configurations.
Regards
Albin
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies