Feasible Way to Share Token Across All Publishers in AEM as a Cloud Service?
Hi everyone,
In our AEM as a Cloud Service project, we are generating an **access token inside an OSGi service class**. Every time we call the method in this service, it generates a **new token**.
The requirement is:
* The token should be **generated only once every 24 hours**
* The same token should be **reused across all publish instances** within that 24-hour window
Since AEM as a Cloud Service is **stateless** and each publish instance runs independently, using in-memory storage or static variables doesn’t help — the token is regenerated on every call from different instances.
Is there any feasible or recommended way to store and share this token across all publish instances in AEM as a Cloud Service?
Looking for a lightweight, cloud-compatible solution. Appreciate any guidance!
Thanks!