Compress model json and content fragment APIs - Performance improvement
Hi Team,
I've got a performance problem to tackle in AEM as a Cloud Service based project.
Our setup consists of an headless SPA - a next js web application and a mobile app rely on page model APIs and content fragment APIs (Jackson JSON exporter) to render content. Some of these json payloads can go upto 9mb's and this causes noticeable slow page load times. Can you suggest options to compress the json responses ?
I've looked at adding a sling filter as described here but it doesn't seem to be affecting anything.
Where can I add custom code to compress the response before it goes to the client ?
Thanks.