I'm using the JSS Headless Proxy which calls down to the Layout Service for SSR. I'm seeing high TTFB to the Layout Service direct:
- New session: ~400ms to ~500ms
- Subsequent requests: ~200ms to ~300ms
And therefore high TTFB to the rendered page (includes a 100ms graphQL request):
- New session: ~600ms to ~700ms
- Subsequent requests: ~400ms to ~500ms
So layout service is taking a large portion of the time, and then converting the json layout to HTML on the proxy side is also pretty signficant.
There is a decent amount of personalisation in use on various components and tracking is very important, so the caching options described in the documentation here are not able to be used.
Is there any guidance / places to start digging on how to optimise this site?