GithubHelp home page GithubHelp logo

Drivers discovery mechanism about bblfshd HOT 2 CLOSED

kuba-- avatar kuba-- commented on July 2, 2024
Drivers discovery mechanism

from bblfshd.

Comments (2)

dennwc avatar dennwc commented on July 2, 2024

Assuming the proposed change in #321 is implemented, we won't need any external scaling for the local use case, only the discovery mentioned in this issue.

Also, I think discovery and "bblfshd as a proxy" can be separate.

For example, we can completely remove bblfshd in K8S and talk to drivers directly (via Ingress/Service) if we figure out a way to use DNS for driver discovery. It may require a custom naming scheme for languages (e.g. pass *-driver.bblfshd.cluster as an address and client must replace * with a language), or maybe adding some metadata to DNS.

For local deployment we may still need bblfshd to return a list of driver addresses (container IPs, or localhost with different ports), but again, we can talk to them directly instead of proxying requests.

This can simplify the case when using a single language: just use a single address for the client, which is an Ingress/Service in K8S or a host:port in local deployment. No separate daemon/proxy needed.

from bblfshd.

kuba-- avatar kuba-- commented on July 2, 2024

In my opinion, we can try implement 2 alternative solutions:

  • A simple config file or any other static list of addresses
    or (if provided)
  • Talk to etcd, where each driver can register.

We can easily make a docker-compose file with all drivers, etcd and bblfshd, or run bblfshd locally but drivers and etcd as docker-compose.

...or maybe even Consul can be a choice.

from bblfshd.

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.