2 ms·
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 otherwi
by christoomey 6y ago
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?
- xfalcox 6y ago> Does that mean use the read-only replica connection during that time? Yes! https://github.com/discourse/discourse/blob/721ee3642558d960db9345c6238a457aa7f5d674/lib/discourse.rb#L506-L513 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.
- christoomey 6y agoI'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!