Giter Site home page Giter Site logo

ServiceDiscovery usage about curator HOT 5 CLOSED

netflix avatar netflix commented on June 16, 2024
ServiceDiscovery usage

from curator.

Comments (5)

Randgalt avatar Randgalt commented on June 16, 2024

Once retrieved, you should hold on to the ServiceProvider as it is itself a kind of cache. For me, the fact that it has a start() and close() method imply this. How can I make the doc clearer?

from curator.

gsingers avatar gsingers commented on June 16, 2024

Yeah, the start() and close() implied it to me as well, but just wanted to make sure. An example would, I suppose, make it clearer.

from curator.

Randgalt avatar Randgalt commented on June 16, 2024

We're trying to get some examples posted here. User examples are welcome :)

from curator.

gsingers avatar gsingers commented on June 16, 2024

I'll see if I can get one soon.

from curator.

gsingers avatar gsingers commented on June 16, 2024

May be obvious to others, but one tip on caching these providers is that you can't build the ServiceProvider for a particular service until you have actually registered a service with that name. Since I know the names (as in the String name) of all my services ahead of time, I was creating my map of ServiceProvider instances on construction before they were actually registered with the ServiceDiscovery.

from curator.

Related Issues (20)

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.