Loading

Set timeouts for B2C Commerce storefront webservice calls and HTTP requests

Julkaisupäivä: Oct 17, 2024
Kuvaus
Webservice or HTTP requests can lead to thread exhaustion and make your storefront and Business Manager unavailable due to following conditions:
  • There is a problem with the third party provider
AND
  • No timeout is set for the webservice/HTTP request
In this case, threads are in a "busy waiting" state which could lead to thread exhaustion.
Ratkaisu
This occurs when there is no timeout implemented for the webservice or HTTP requests AND there is a problem with the third party provider.

It is important and recommended to set a timeout for all webservice calls as outlined in Create a Web Service Profile and HTTP requests using the setTimeout(timeoutMillis : Number) : void method in the dw.net.HTTPClient class.

Note: The timeout should be set as low as possible depending on the webservice or request used.
Knowledge-artikkelin numero

000391301

 
Ladataan
Salesforce Help | Article