Need Help with API Performance for Image Uploads | Community
Skip to main content
fmancini_netbiis
April 18, 2024
Solved

Need Help with API Performance for Image Uploads

  • April 18, 2024
  • 4 replies
  • 1663 views

Hello Community,


I'm working on a project for a major newspaper in Brazil, where we've developed a simple wizard to help authors publish their articles more quickly.

Everything functions well overall, but we are encountering an issue with the image upload times when using the API (initiate-upload).
https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/assets/admin/developer-reference-material-apis#initiate-upload

 

To give you a better idea, uploading images directly through the Assets is quite fast, with images being published in less than a minute.
However, when we use the API, it takes significantly longer—about 5 to 7 minutes per image.
This difference is puzzling and is affecting our publication process.

I've detailed the API usage and payload here: image-renditions-delay.pdf

Has anyone here dealt with similar issues, or does anyone have insights into what might be causing these delays?

Any suggestions on how to improve our image upload times would be greatly appreciated.

Thank you all in advance for your help and suggestions!


Best,
Fábio.

@joerghoh 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by EstebanBustamante

The reason why asked about the "wizard" is because in the doc you shared it explicitly said that you should not use this method within AEM, so that may be the issue, postman validation should confirm this suspect

I'll be curious to hear about your findings

Cheers!

4 replies

EstebanBustamante
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
April 19, 2024

Hi, 

I'm curious about the "wizard" – what exactly is it? Is it an AEM component, or something external? Ideally, you should use "aem-upload" to upload images to AEMaaCS (but I am not sure if that helps with performance, it would be to give it a try), which handles the "3-step process" for uploading assets to storage and AEM. Also, keep in mind that the process you're triggering should be performed outside of AEM. Have you tried to reproduce this using Postman, to see if the asset processing takes up to 7 minutes? It would be worth to check if the size of the image matters as well, if you can start experimenting with postman i guess you can gain some insights

 

Hope this helps.

Esteban Bustamante
fmancini_netbiis
April 19, 2024

Hi @estebanbustamante,

Thanks for the insight!


The "wizard" is a built-in solution in Adobe Experience Manager (AEM) that streamlines the process for editors to add articles to the site. It involves selecting the type of content, filling in details like title and tags, and uploading assets.

Regarding your suggestion to use "aem-upload," we haven’t tried that yet but will definitely look into it. We'll also explore whether the processing time varies with image size using tools like Postman.

Appreciate your suggestions and will keep you posted on what we find!

Best,

EstebanBustamante
Community Advisor and Adobe Champion
EstebanBustamanteCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
April 19, 2024

The reason why asked about the "wizard" is because in the doc you shared it explicitly said that you should not use this method within AEM, so that may be the issue, postman validation should confirm this suspect

I'll be curious to hear about your findings

Cheers!

Esteban Bustamante
krati_garg
Adobe Employee
Adobe Employee
April 20, 2024

@fmancini_netbiis Is this a custom page component (Image Component) in the PDF attached that helps in uploading the Image

fmancini_netbiis
April 24, 2024

Hi @krati_garg,

I don't know if I understood correctly... are you going to send me a PDF or are you referring to my document?

Best,

diksha_mishra
Community Advisor
Community Advisor
May 7, 2024

@fmancini_netbiis Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

kautuk_sahni
Community Manager
Community Manager
May 16, 2024

@fmancini_netbiis Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Kautuk Sahni