Long wait time (TTFB) for transformations
We're seeing very long wait times (time to first byte) when fetching images with on-the-fly transformations.
Source image has transformations:
Then we fetch new derivative with:
The result is a 244KB image, and it takes only 360ms to download but we wait for it (TTFB) for 1.53 seconds. We've seent his wait time go up above 3 seconds.
I assume this is due to the transformations - we have to wait for the server to do work on the image. But are these wait times normal? What can we do to optimize them?
We're trying to use a viewport-based approach, where a background image is fetched with dimensions based on client's viewport (screen) on-the-fly. But with these waiting times its just not worth it.
Post is closed for comments.