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

10 Replies, 1724 Views

Hey everyone! šŸ‘‹

So, I’ve been messing around with axios retry for a bit now, and I’m curious—what’s your go-to approach for handling failed requests? Like, do you guys set a max number of retries or just let it go wild? šŸ˜…

Also, how do you handle delays between retries? Exponential backoff? Or just a fixed delay? I’ve seen some folks use libraries for axios retry, but I’m wondering if it’s worth it or if I should just roll my own solution.

Lastly, what’s your strategy for logging failed attempts? Do you log every single retry or just the final failure?

Kinda new to this, so any tips or best practices would be super helpful! Thanks in advance! šŸ™

Messages In This Thread
Best Practices for Implementing Axios Retry: How Do You Handle Failed Requests? - by - 17-02-2024, 11:57 PM



Users browsing this thread: 1 Guest(s)