Add the ability to specify an arbitrary "reply-to" address for command replies
See original GitHub issueCurrently the reply-to address for sent commands is in the following format:
control/TENANT/4711/${replyId}
The ${replyId}
is created by the Hono-Client (or AMQP-client).
For Eclipse Ditto it would be really helpful if when sending a command the whole “reply-to” address could be specified, or at least the part after control/TENANT
.
That way we could pass in for each command a common “catch all” address like for example:
control/TENANT/replies
Ditto would only have to attach to this address in order to get all command replies.
Background:
Ditto’s connectivity is clustered among several cluster nodes. When a failover happens (e.g. because one node crashes, a Hono connection which was established on this node will be opened on a still “living” cluster node. The new node however can have no knowledge of the ${replyId}
s which were created on the other cluster node which crashed.
Would that be possible?
Feels like if the client already specifies the ${replyId}
it could also specify the whole address.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (6 by maintainers)
Top GitHub Comments
fixed in https://github.com/eclipse/hono/commit/b29f887b7e548725a8b6a6bead93ae2d162dc21d
This would be a change in our API for the reply-to and the sender link address used by the adapter. But I think it makes sense to change it this way, as long as we stay with
control/tenant/
for authorization.Before
control/${tenant_id}/${device_id}/${reply-to}
After
control/${tenant_id}/${reply-to}
and our Hono client by default will set
${reply-to}
as${device-id}/something