Apache Curator Adds Support For TTL Nodes
Apache Curator Adds Support For TTL Nodes
Wednesday, 09 August 2017

There's a new version of Apache Curator, the Java/JVM client library for Apache ZooKeeper. Zookeeper is a distributed  coordination service. The new release of Curator adds support for TTL Nodes, and a strongly typed DSL.

Curator includes a high-level API framework and utilities to make using Apache ZooKeeper easier and more reliable. It also includes recipes for common use cases and extensions such as service discovery and a Java 8 asynchronous DSL.

ZooKeeper has been developed by Apache for developing and maintaining an open-source server which enables highly reliable distributed coordination. It is a centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services. All of these kinds of services are used in some form or another by distributed applications. ZooKeeper has Java and C interfaces for the applications themselves. A variety of client bindings is available for a number of languages including Python, Ruby and Go.

zookeeper

Curator is a set of Java libraries that make using Apache ZooKeeper much easier. Although ZooKeeper does comes bundled with a Java client, using it is quite tricky and can be error prone.

Curator consists of three components that build on each other. Curator Client is a replacement for the bundled ZooKeeper class that takes care of some low-level housekeeping and provides some useful utilities. Curator Framework is a high-level API that greatly simplifies using ZooKeeper. It adds many features that build on ZooKeeper and handles the complexity of managing connections to the ZooKeeper cluster and retrying operations. Curator Recipes consists of implementations of some of the common ZooKeeper "recipes". Additionally, Curator Test is included which includes utilities to help with unit testing ZooKeeper-based applications.

The main benefits of Curator are the simplified API; the automatic ZooKeeper connection management with retries; and better ZooKeeper recipe handling, including a set of complete, well-tested ZooKeeper recipes, and a framework that makes it easier to write new ZooKeeper recipes.

The updates to Curator start with support for TTL Nodes. ZooKeeper TTL (Time-to-live) nodes let you create and use nodes that are not tied to a session but that will expire automatically if action is not taken by some client within a time window. They were recently introduced to ZooKeeper and are now supported by Curator.

The next improvement is a new strongly typed, modeled DSL (Domain Specific Language). Until now, all of Curator's CRUD methods worked with raw byte arrays. The addition makes it possible to use strongly typed models.

The addition of the DSL gave rise to the other main improvement, a framework for data migration so developers can import or migrate data models. 

curator

More Information

Curator Site

ZooKeeper Site

Related Articles

Storm Reaches 1.0

Flink Gets Event-time Streaming

ZooKeeper: Distributed Process Coordination (O'Reilly)  

Apache Kafka 0.8.2 Now Ready For You To Trial

 

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on, Twitter, FacebookGoogle+ or Linkedin.

 

Banner


Grace Hopper & Computer Science Education Week
08/12/2017

Tomorrow marks the 111th anniversary of the birth of Grace Hopper. Considered "the first lady of software" she is the figurehead chosen for Computer Science Education Week, which is timed to coincide  [ ... ]



Headless Chrome and the Puppeteer Library for Scraping and Testing the Web
29/11/2017

With the advent of Single Page Applications, scraping pages for information as well as running automated user interaction tests has become much harder due to its highly dynamic nature. The solution? H [ ... ]


More News

 

 
 

 

blog comments powered by Disqus

Last Updated ( Wednesday, 09 August 2017 )
 
 

   
RSS feed of news items only
I Programmer News
Copyright © 2017 i-programmer.info. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.