I'm trying to implement a simple circuit breaker where I have a local file system and remote database.
All good with changing to half-open state when the remote database goes down. I'm trying to find a way to move from half-open to closed state when the remote database is available.
Its become a huge pain to sync all the data in local file system with the remote database. I'm starting to believe that changes to data shouldn't be allowed with the circuit breaker is not closed.
When not in closed state of circuit breaker, should my application be a readonly system?