I understand whenever someone is making a GraphQL query request to AEM, the publishers will be hit with some load time. What happens if someone decides to spam the GraphQL query request?
is there a secure way to safeguard the GraphQL query request from being spammed?
How about caching? How does AEM cache GraphQL query requests?
Solved! Go to Solution.
Hi @SupportMember ,
Yes, you can safeguard your graphQL queries by implementing the following:
You can also go for persisted graphQL option if you want to cache the query results.A persisted query is a GraphQL query that has been stored in a server-side cache. This allows clients to send an ID in place of the full query text, reducing the amount of data sent over the network and potentially improving performance. You can find more about it here - https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-with-aem-headless/g...
Thanks,
Monendra
Hi @SupportMember ,
Yes, you can safeguard your graphQL queries by implementing the following:
You can also go for persisted graphQL option if you want to cache the query results.A persisted query is a GraphQL query that has been stored in a server-side cache. This allows clients to send an ID in place of the full query text, reducing the amount of data sent over the network and potentially improving performance. You can find more about it here - https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-with-aem-headless/g...
Thanks,
Monendra
Views
Likes
Replies