Best Practices for Implementing Axios Retry: How Do You Handle Failed Requests?

10 Replies, 2052 Views

Honestly, I let axios retry go wild sometimes, but only for non-critical requests. For important stuff, I cap it at 5 retries with exponential backoff.

Logging every retry can be useful for debugging, but it depends on your system’s needs.

I’ve used both custom solutions and libraries like `axios-retry`. Libraries are great for quick setups, but custom code gives you more flexibility.

Messages In This Thread



Users browsing this thread: 1 Guest(s)