18

Is there some library or project out there that works like Zookeeper but has no java dependency? 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/

Andrew McGregor
  • 31,730
  • 2
  • 29
  • 28

3 Answers3

10

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.

Day
  • 9,465
  • 6
  • 57
  • 93
youlq
  • 101
  • 1
  • 3
  • etcd has some serious limits. Given the scale that CoreOS wants to get to etcd has to scale too. Right now it's too early to tell. – Richard Apr 05 '14 at 01:48
10

There is accord,

Accord is a high-performance coordination service like Apache ZooKeeper

It looks like accord is written in c.

sbridges
  • 24,960
  • 4
  • 64
  • 71
4

There is Doozerd written in Go!

3vlM33pl3
  • 537
  • 5
  • 14