Simplify and split HonoClient for applications versus protocol adapters
See original GitHub issueOriginating from a discussion on the dev mailing list, I think we should split the HonoClient to at least two different use cases:
-
what typical applications need
- telemetry and event consumers
- command senders
-
what (custom) protocol adapters need
- telemetry and event senders
- tenant, credentials and registration clients
I am sure this needs some discussion - I can imagine that the tenant, credentials and registration clients might be desirable to have available outside a protocol adapter as well, so that we would have three different clients. A use case for that could be a device registry client application IMHO.
The point of this issue is to come to a more focussed HonoClient, so that an application developer should not have to ask a question like “why do I have a telemetry sender available, but I cannot use it since I can only consume telemetry messages?”. The same question could be asked for the tenant, credentials and registration clients, for which the remote APIs are usually not accessible for applications.
After having discussed this issue, we can rewrite it to describe what we want to achieve in the future with HonoClient (and possibly split it up).
Remark: for Command and Control we already made a small step into this direction : the CommandConnection
is an extension of HonoClient
and thus does not provide it’s methods to applications.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:9 (9 by maintainers)
Top GitHub Comments
So I would move this to 0.9 if no one objects today?
fixed in https://github.com/eclipse/hono/commit/da368351dd435c0e30a5369755c1f7e7f3241666