Hacker News new | past | comments | ask | show | jobs | submit login

Oh that's interesting, thanks for the additional detail! I'm intrigued by what you mean when you say: "tell the app to stay in read only mode until told otherwise". Does that mean use the read-only replica connection during that time? If so, did you have to configure some error handling for that timeframe?



> Does that mean use the read-only replica connection during that time?

Yes!

https://github.com/discourse/discourse/blob/721ee3642558d960...

> If so, did you have to configure some error handling for that timeframe?

Since this was an early goal in the project, the controllers are mostly away of the read-only mode already and know how to deal with it is most places.


I've added a note at the bottom of the post as your gem seems like a great option for this sort of functionality. Thanks again for sharing!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: