Something like Apache Zookeeper with no java?
Is there some library or project out there that works like Zookeeper but has no java depende开发者_StackOverflowncy? I'm looking at putting this on an embedded linux system, and need minimal footprint... something like a megabyte or less. I have Lua, C and C++ runtimes, and could put something like NewLISP on there if I had to. Most or all of the clients will be C or C++, a nice command line utility for the benefit of shell scripts would also be useful. http://zookeeper.apache.org/
There is accord,
Accord is a high-performance coordination service like Apache ZooKeeper
It looks like accord is written in c.
Maybe check out etcd:
etcd
A highly-available key value store for shared configuration and service discovery. etcd is inspired by zookeeper and doozer, with a focus on:
- Simple: curl'able user facing API (HTTP+JSON)
- Secure: optional SSL client cert authentication
- Fast: benchmarked 1000s of writes/s per instance
- Reliable: Properly distributed using Raft
Etcd is written in go and uses the raft consensus algorithm to manage a highly availably replicated log.
See go-etcd for a native go client. Or feel free to just use curl, as in the examples below.
There is Doozerd written in Go!
精彩评论