Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

AEM 6.1 - Store data (in session?)

danny_gloudeman
Level 1
Level 1

In our AEM instance we are getting data from an external system, per user this data is the same during his session. So it make sense to store this data in their session / cache or something like that. With another CMS we used before we always stored such data in the session.

Is that also the right solution here for AEM 6.1 or are there better alternatives?

Call 1 that needs to be stored: Size in bytes: 34597

Call 2 that needs to be stored: Size in bytes: 2201

Thanks for your response.

1 Accepted Solution
Lokesh_Shivalingaiah
Correct answer by
Community Advisor
Community Advisor

AEM works on stateless !! So if you use session in AEM, then you may have to think about 'Sticky Sessions' so you dont loose your session data !  Using cache is also one of the solution but it depends on your usecase and application architecture.

View solution in original post

2 Replies
Lokesh_Shivalingaiah
Correct answer by
Community Advisor
Community Advisor

AEM works on stateless !! So if you use session in AEM, then you may have to think about 'Sticky Sessions' so you dont loose your session data !  Using cache is also one of the solution but it depends on your usecase and application architecture.

kautuk_sahni
Employee
Employee

Hi Danny Gloudemans

 

Please go through the article mentioned below, it is covering one of the architecture of caching.

The major thing covered in this article include designing part of caching, client side storage, CDN, Varnish (server on steroid) etc.

Link:- http://scratchpad101.com/2014/07/25/caching-architecture-adobe-aem-part-1/

I hope this would help you to scale and to optimize performance.

 

Thanks and Regards

Kautuk Sahni