Read-Only Mode For Better Rails Downtime
22-Oct-2020 1328
Recently I was looking to upgrade the Postgres version on an application I’ve been working on. This would require a small amount of downtime, likely about 10 minutes.The default solution I’d reach for in these cases would be to go into Heroku’s maintenance mode, which serves an HTML maintenance page with a 503 Service Unavailable status code. This works but makes the application entirely unusable during the upgrade, and I was hoping to find a better solution. In this particular case, I also wanted to be able to provide JSON responses as the application mainly provides an API for a mobile app.
Read-Only Mode For Better Rails Downtime #ruby #rubydeveloper #rubyonrails #Read-Only #Better #Rails #Downtime https://rubyonrails.ba/link/read-only-mode-for-better-rails-downtime