Zero-downtime payment platforms
summary
Rails 3.2 app on Heroku with Postgres 9.x at peak doing ~$1,000/min uses timeouts (15s) around card charges to save Gateway-Dash-Down- placeholders, a cron every ~10 minutes to retry, and a separate Sinatra chocolate replayer behind Akamai that records raw requests for manual replay. Duplicate-safe replay uses Akamai request IDs, race conditions and Heroku random routing still cause daily spurious failovers, but the system materially keeps customers buying when gateways or Heroku briefly fail.
AI-written summary · about
chapters (8)
- 0:00Introduction to site uptime
- 4:09Manual failover strategies
- 8:16Automating payment recovery
- 13:52Handling infrastructure failure
- 17:10Implementing Chocolate replayer
- 21:51Request replaying and dedupe
- 26:59Addressing random routing
- 30:20Q&A and final conclusions








