Transient Errors
#Transient Errors
Applications and devices that communicate with IoT API and MQTT broker must be sensitive to transient faults. This type of fault is likely to be encountered more often. Transient faults include the momentary loss of network connectivity to components and services, the temporary unavailability of a service, and timeouts that occur when a service is busy. These faults are often self-correcting, so, if the action is repeated after a suitable delay, it’s likely to succeed. This type of fault can be identified with response/error codes 500, 502, 503 and 504.
##General guidelines
- Examine if the operation is suitable for retrying.
- Determine an appropriate retry count and interval with exponential back-off mechanism, wherever applicable.
- Test your retry strategy and implementation.