Question
High Traffic to /libs/granite/csrf/token.json and /libs/granite/security/currentuser.json in AEM – How to Optimize?
Hi Team,
We are observing a very high volume of requests hitting AEM internal Granite APIs:
/libs/granite/csrf/token.json(~618K requests, ~19%)/libs/granite/security/currentuser.json(~300K requests, ~9.3%)
Together, these endpoints account for nearly 29% of total traffic in our logs.
We understand these endpoints are used for authentication/session handling, but this volume seems unusually high and is impacting overall traffic patterns.
We would like guidance on:
- Is this level of traffic expected for these endpoints in Adobe Experience Manager (especially Cloud Service)?
- What are the recommended best practices to reduce or optimize calls to these APIs?
- Dispatcher/CDN rules?
- Frontend implementation improvements?
- Could this indicate a misconfiguration (e.g., frequent polling, missing caching, or bot traffic)?
- Are there Adobe-recommended patterns to minimize repeated CSRF token and current user calls?
-
Any insights or similar experiences would be really helpful.
Thanks in advance!