Code Monkey home page Code Monkey logo

anole's People

Contributors

tbwork avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

anole's Issues

Allow user to retrieve "volatile" configuration.

Background

One friend recently asked me that how Anole tackles with the situation that if one worker is shutdown unexpectedly and some clients could receive the latest value in real-time and the others not (those clients would retrieve the latest value in several seconds after re-connect with the new worker ). And my answer at that time is :

In terms of my experience in Ctrip and DaZhongDianPing(DZDP), their real-time configuration framework (Apollo in Ctrip and Lion in DZDP) allows delayed configuration update. By the way, the situation of unexpected shutdown of one work server is very unusual and the client still could retrieve
old values from the local cache.

However, there is indeed some situations that the clients should retrieve the latest configurations in real-time, it requires immediate re-connect with new worker and get the new value rather than the delayed detection of connection-broken by the LCM(long connection manager).

Solution

So, my plan is to provide a new feature named "volatile", it can be specified in the **getProperty(...)" like:

Anole.getProperty(key, volatile); 

The parameter of volatile is a bool value, true means retrieving data from the server first every time.

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.