by meddlepal · 11y ago · 0 comments
Full disclosure: I am the lead developer of Baker Street :)
Website: http://bakerstreet.io
> because we wanted a simple, highly available service, not a strongly consistent one.
I absolutely agree with this design choice.
This is the big flaw for me with how a lot of setups use Etcd, Consul, Zookeeper and the like.
A lot of the time they're being used because we need high-availability, not at all for their consistency guarantees, and their consistency guarantees has great potential to reduce the availability.
I've not run Zookeeper in production, but both with Etcd and Consul I've had situations where the clusters have gotten into totally broken states because the cluster membership has changed in bad ways. It makes sense for the guarantees they are providing. It does not make sense if you don't need the consistency guarantees.
The way I see it, lost service registrations are a non-issue as you generally want to continuously renew them combined with a TTL to avoid stale registrations, so the occasionally lost one due to e.g. a part of the service directory cluster failing at a bad time is no big deal. Conversely, if a service stays in the service directory when it shouldn't, the worst that happens is that you run into an unhealthy service when you try to issue requests, but that will happen during normal operation while using services with consistency guarantees anyway, since the service may have failed between health checks anyway, which means you still need to handle retries.
I'd rather use a service-discovery solution with fairly significant consistency issues that keeps replying "no matter what" than one which focuses on consistency but may stop answering.
Just a small nitpick: Running Zookeeper is insanely simple. We deployed it in 2-3 days, and it has had literally 0 issues over the last year.
I highly recommend https://github.com/mbabineau/docker-zk-exhibitor to get started (Docker container that wraps together Zookeepher and Netflix's Exhibitor manager for it).
Remember, pick boring technologies that just work.
http://blog.cloudera.com/blog/2014/03/zookeeper-resilience-a...
http://arstechnica.com/information-technology/2015/05/the-di...
https://tech.knewton.com/blog/2014/12/eureka-shouldnt-use-zo...
Here's ibm and netflix with some advice about how non-boring running a ZK cluster can be:
https://www-01.ibm.com/support/knowledgecenter/SSCRJU_4.0.0/...
http://techblog.netflix.com/2011/11/introducing-curator-netf...
We have had very abstract conversations about adding alternative back ends, but presently we are not working on support for that feature because as you correctly noted, at least for Consul and ZooKeeper it is somewhat against the operating philosophy.
We're not opposed to it though and if you open a feature request we'll track interest which will help us decide direction. Baker Street is not a secondary component for some other system in our company. We consider Baker Street a core product even at this early stage in its development.