Closed camdez closed 10 years ago
If the data store is unavailable and the Stoplight switches to the in-memory data store, should it ever try to switch back to the other data store?
Great question. I sure think so. Otherwise what would we have to do to go live again? Restart the servers?
Maybe it attempts to reconnect after a certain amount of time?
Sounds like this functionality should be implemented with... a stoplight.
I still don't have a good solution to this. I'm thinking we should push it back to v0.4.0.
Process-local this is useful when thinking about the problem in the "martin fowler circuit breaker" context (external service over the network goes down), but I don't think it really matters much when many users are using a site over multiple processes and servers.
Maybe attempt to remember the last-known state of the stoplight otherwise use a default behavior?
IMO this can be pushed beyond
0.2.0