What are transient errors and how can I deal with them?
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. You can find more details here.
The most common way of dealing with transient errors is adding retries inside your application code. This is also the first step towards making your application more cloud native. You can find more general guidelines on how to handle common transient errors here.
Find guidelines for handling transient errors in databases here:
- For MySQL database
- For MSSQL database
- For Postgres database