Giter VIP home page Giter VIP logo

cultivar_old's Introduction

Cultivar

Build Status

Cultivar is a lifecycle manager around Curator using Guice and Guava. It is mostly an excuse for me to learn Zookeeper and Curator by trying to think through how to build a generic lifecycle system around it.

What is Cultivar?

Curator is in many ways a great framework, but it is rather unopinionated about how you use it relative to the lifecycle of your application. Things need to be started and shut down, but you can create them in the middle of your application and tear them down shortly thereafter, or they can run for the entire life of your app. Cultivar makes the following assumptions about how one is using Curator/Zookeeper:

  • You are using Guice or can at least figure out how to strap a few Guice modules into your application lifecycle.
  • You know what Curator objects you will need around the time your application starts up (this will change in the future as an absolute requirement, but is still going to be the primary method of using Cultivar).
  • Your use cases in how you access services are relatively homogenous (so if you access service A using a round-robin strategy from Service X you will probably use a round robin strategy from Service Y as well) and you want the ability to share these practices in the form of a client library.

Future Work

In no particular order:

  • Support more of the patterns from Curator.
  • Create clean patterns around post-initialization creation of Curator patterns.
  • Allow for multiple ZK instances.
  • Allow the use of bound objects instead of instances for things like ProviderStrategy.
  • Document various binding options, making it clearer how to configure instances.

cultivar_old's People

Contributors

dclements avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

anthonyms

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.