Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Caching of personalized content pages in AEM 6.1

Avatar

Level 2

We are on AEM 6.1 and we have personalized content on the home page of our website based on the user profile attributes. Let’s assume million user hits the home page, does that mean that home page will be pulled from cq publisher every time instead of dispatcher. Is there any way to improve the performance?

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hi,

that depends on the way you are doing personalization. If you personalize the page on the server, you need to handle all of these page requests on the server. if you use the client-side personalization of AEM (using ContenxtHub) you can cache much more requests. Depending on what you personalize you still might have JSON calls to the publish, which can be much more lightweight than rendering a complete page.

kind regards,
Jörg

View solution in original post

2 Replies

Avatar

Correct answer by
Employee Advisor

Hi,

that depends on the way you are doing personalization. If you personalize the page on the server, you need to handle all of these page requests on the server. if you use the client-side personalization of AEM (using ContenxtHub) you can cache much more requests. Depending on what you personalize you still might have JSON calls to the publish, which can be much more lightweight than rendering a complete page.

kind regards,
Jörg

Avatar

Employee

The approach should be to make as much of the page as static as possible so it can be cached for better performance, so the page is rendered from Dispatcher rather than going to the publish instance.

For any components in the page that need to be rendered based on the user accessing the page(personalised), then it's best to use asynchronous calls at runtime. These calls could be back to the publish instance or they could be to your CRM system, you could then personalise the page for the specific user or personalise the page based on the segment the user matches(you don't need to know exactly who the person is in this use case)

Regards,

Opkar