External calls take a lot of time

Edit on GitHub

Some actions, parts of website or the whole website is slow.

Cause

Check profiling. Sometimes you can see in the report that external call takes a lot of time.

New Relic:

new-relic-external-calls

Blackfire:

blackfire-external-calls

Solution

  1. Make sure there is no N+1 problem.
  2. Check if this issue really causes a performance problem. For example, sometimes, during the checkout, customers have to wait until some call to a 3rd party system is done.
  3. Check if this call can be done before or after this action in the background. Is it acceptable for business? If yes—move it. If no—confirm the behavior with the business stakeholders or contact the 3rd party system to optimize the request.