bolshakov / stoplight

:traffic_light: Traffic control for code.
http://bolshakov.github.io/stoplight/
MIT License
384 stars 40 forks source link

Should be fault tolerant to data store going down #6

Closed camdez closed 10 years ago

clifton commented 10 years ago

IMO this can be pushed beyond 0.2.0

tfausak commented 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?

camdez commented 10 years ago

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?

tfausak commented 10 years ago

Sounds like this functionality should be implemented with... a stoplight.

camdez commented 10 years ago

tfausak commented 10 years ago

I still don't have a good solution to this. I'm thinking we should push it back to v0.4.0.

clifton commented 10 years ago

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?