Expand my Community achievements bar.

SOLVED

Can we persist GraphQL query in AEM passed to backend external server. (Non content Fragment Queries)?

Avatar

Level 1

From AEM publishers we have user dashboard which fires multiple graphQL queries to the backend through AEM HttpConnection in java. Is there a way to cache those ?

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

 If you are thinking about utilizing some memory cache solution then you can try building some custom solution using EhCache https://www.ehcache.org/  
ACS commons also offer something similar which you can look at
https://adobe-consulting-services.github.io/acs-aem-commons/features/http-cache/index.html 
But one thing to highlight is if you are using AEMaaCS then in memory cache is anyway not recommended. 
You can check if it is possible to leverage dispatcher caching in your case (depending on how your Front end is invoking your backend). 

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

 If you are thinking about utilizing some memory cache solution then you can try building some custom solution using EhCache https://www.ehcache.org/  
ACS commons also offer something similar which you can look at
https://adobe-consulting-services.github.io/acs-aem-commons/features/http-cache/index.html 
But one thing to highlight is if you are using AEMaaCS then in memory cache is anyway not recommended. 
You can check if it is possible to leverage dispatcher caching in your case (depending on how your Front end is invoking your backend).