Comments (4)
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.
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.
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.
iceboxing this for now
from gateway-connector-bridge.
Related Issues (20)
- Add authentication to disconnect message
- Keep track of gateway connection state between bridge restarts
- Add statistics
- Gateways are "reconnected" before MQTT connection is ready
- Add DEBUG flag for setting log level
- Write Documentation
- Write DummyHTTPServer Tests
- Refresh token faster
- Use authentication in inject middleware
- Insert location source in metadata
- Expose different UDP endpoints for different regions HOT 1
- Bridge runs at 100% CPU HOT 2
- Panic in UplinkMessage MarshalTo HOT 6
- HTTP 404 in Dokumentation HOT 1
- Log errors with wrong configured Router HOT 1
- Add Default for BRIDGE_UDP or warn if missing HOT 5
- Hide MQTT password in log
- Use buffered channel in UDP backend HOT 2
- Update gRPC vendor
- Select RSIG instead of RSSI and SNR when present HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gateway-connector-bridge.