Can we persist GraphQL query in AEM passed to backend external server. (Non content Fragment Queries)? | Community
Skip to main content
July 22, 2024
Solved

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

  • July 22, 2024
  • 1 reply
  • 719 views

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 ?

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by h_kataria

 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). 

1 reply

h_kataria
Community Advisor
h_katariaCommunity AdvisorAccepted solution
Community Advisor
July 22, 2024

 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).