I have a client that has a unique request and was wondering if anyone knows if Netlify may have a solution for this.
I currently wrote a Netlify Function that is hit when a user clicks a button. Inside of that function, it makes an external call to another endpoint (outside of Netlify). The problem is that sometimes this endpoint has issues and is down. So the client would like me to retry it every 15 or 30 minutes or so, for a maximum of three retries.
Does anyone have any idea if Netlify has any kind of ability to handle this? I was thinking maybe I’d have to use background functions to make the calls since the user will most likely close the browser within that time while it’s retrying. If using a background function (which has a 15 min timeout), I’m thinking we set some kind of timer to call the external endpoint after 10 minutes or so within the function, and then if it fails, call the background function again.
Just wondering if anyone has any ideas on how this might be able to be solved. Thanks!