Server downtime submissions

Our team is trying to handle any possible down time form submissions.
Our setup would have content delivered via Cloudflare cached content and forms would be part of that cached system.
The scenario we want to solve for is if the server provider ever goes down (and therefore form submissions wouldn’t work since there is no database collection during the server downtime but the pages would still be present to the user).

Possible solution we are looking into:

  • Using service workers while if PHP submission fails.
  • A backup server at another service provider to point to if primary fails. This would require catching a failed submission client side.

We’ve searched for information on Gravity Forms + service workers and capturing the failed submissions on client side (no PHP hooks) but cannot find very much info or resources on the topics.

Has anyone ever had this sort of set up or situation?

Thank you for any help in advance.