Retry Mechanism:?
- Set a max retry limit to prevent infinite retry loops.
- Introduce exponential backoff between retries. For example, first retry after
1 second, then 2 seconds, then 4 seconds, and so on.
1 second, then 2 seconds, then 4 seconds, and so on.