Very slow JSON:API responses when images are stored on AWS bucket

Created on 1 December 2021, about 3 years ago
Updated 29 November 2024, 23 days ago

Hi, I'm using this module and it works well, but I've got a problem with very slow JSON:API responses with images' styles enables at the endpoint. For ex. when I expose 2 image styles for articles and I go to /jsonapi/node/article I have to wait about 60 sek for request to be finished. This behaviour is only when I store articles' images on AWS bucket (via this module https://www.drupal.org/project/s3fs ). When articles' images are stored locally then this problem disappears. I have a very lightweight Drupal instance: ~60 articles (with one image per article), ~100 paragraphs, ~30 taxonomy terms... and that's it. Could anyone tell me what's going on under the hood, when images are stored on S3 and why it takes so long to get the response from JSON:API? I'm running out of ideas and I'm a little bit worried what's going to happen when the database will grow up to 1000 articles for ex. Unfortunatelly, I can't store images locally - they have to be on AWS bucket. Thanks for any feedback.

🐛 Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

🇵🇱Poland tivi22

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024