Managing Retries¶
Under conditions of heavy load, you may receive the 503 (Service Unavailable) HTTP error from CM-Well. In this case, we recommend implementing the following client logic:
- Sleep for 1 second, then retry the request.
- If you still get the 503 error, sleep for a longer period (for instance, 2-3 seconds), then retry the request.
- If you still experience the problem, retry periodically, while sleeping for longer periods each time, up to a maximum of 60 seconds.