Is it normal that my GET request to Deploy API V4 is taking 25 seconds?

0
Hi experts,   from a Mendix app in the Mendix Cloud I am executing a GET-Request to 'https://cloud.home.mendix.com/api/v4/apps?licenseType=licensed'. The result that is returned is correct and contains 7 apps. However, the call takes 25s and that puzzles me. After that call I execute another call for each app to retrieve their respective environments and these calls are only taking milliseconds each.   Do you also face this issue and do you have a suggestion what I can do about it? Maybe I am overlooking something in the usage of this API.   Best regards and thank you, Ralf
asked
2 answers
0

Hello Ralf, 

Can you check your api in postman or swagger in your local machine, you can compare timing, ideally it should not take 25 second. 

answered
0

Hi Ralf, when the /api/v4/apps call takes 25 seconds and subsequent environment calls are near instant, this likely points to a performance issue on that specific API endpoint or within your call setup.

 

Possible Reasons & Solutions:

  1. Heavy Access Rules or Filters

    • Complex security rules on the app data may slow down the response.

    • Try simplifying access rules and test again.

  2. No Caching

    • The API might fetch all app data live every time.

    • If data doesn't change often, cache it in your app and call it less frequently.

  3. Log Slow Queries

    • Enable LogMinDurationQuery=5s in Mendix Cloud settings.

    • Helps identify slow DB queries causing the delay.

  4. Use APD (Application Performance Diagnostics)

    • Profile the API call to see where the delay happens.

    • Use the APD module from the Mendix Marketplace.

  5. Contact Mendix Support

    • If it’s a backend issue (Mendix API side), only support can help.

I hope this one helps you! :)

answered