Giter Club home page Giter Club logo

Comments (4)

johanstokking avatar johanstokking commented on May 27, 2024

Having a pub/sub broker to track connection state feels a bit hacky but it is going to work.

If it really is the connection state, why not using a message with a boolean field whether the gateway is active/available?

from gateway-connector-bridge.

htdvisser avatar htdvisser commented on May 27, 2024

In my opinion the pub/sub broker already keeps track of the connection state, so this proposal only adds a way to inform the bridge of this state (and of the auth information). The bridge also needs the auth information from the gateway (which is stored in the connect message) in order to start the connection with the backend.

The proposed solution is the most elegant solution I could think of. Let me know if you have a better solution that (a) informs the bridge of the connection state and (b) informs the bridge of the information needed for auth and (c) survives restarts.

from gateway-connector-bridge.

johanstokking avatar johanstokking commented on May 27, 2024

Ideally, the less hacky approach imo, is that (a) and (b) are handled by the authentication plugin on connect/disconnect, and (c) on reconnect, and it reports this not through the pub/sub messaging but through another endpoint. It depends on the concerning broker whether an authentication plugin is capable of this and here lies the constraint. So it is going to work, and it is portable across brokers, so let's do it.

from gateway-connector-bridge.

htdvisser avatar htdvisser commented on May 27, 2024

iceboxing this for now

from gateway-connector-bridge.

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.