AEM publisher as a middleware
Hi Experts,
We are creating a dynamic component in AEM (SPA Angular) called the search widget component, which calls a third-party API. This call can be triggered from the browser, but the API requires an API key, which we don't want to expose in the network call. Therefore, we are considering triggering the call from the publisher as a servlet.
Is it recommended to use the publisher as middleware in this case?
Since this component is expected to handle significant traffic, with 200-400 TPS, relying on the publisher may not be ideal.
I understand that publishers are not designed to handle such activities. In this situation, what would be the ideal solution?
Your help is greatly appreciated!