-
Notifications
You must be signed in to change notification settings - Fork 352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question on durability:persistence #2054
Comments
The basis of such a thing would be a subscription to the "DCPSPublication" built-in topic. You monitor that, and then you create readers for each topic you discover a transient/persistent writer on. The QoS you use for those readers should be taken from the topic QoS, you can find out those by looking at "DCPSTopic", but it is best to have a fall-back to using the writer QoS if topic discovery is disabled (it brings some overhead and it is often not needed). Or you could decide that it must be enabled for this 🙂 To create a reader, you need a local version of the topic, you can arrange that using All of the weird bits you need to do this are in principle in https://github.com/eclipse-cyclonedds/cyclonedds/blob/master/examples/dynsub/dynsub.c . You would have to do something different than that example does for partitions, and if someone publishes in, say,
It wouldn't get you this, of course, there'd be many readers instead. What you can do is use the same code for handling data in each of them. For most things you'd want to do, you don't really need to know the type, and so a generic function operating samples of arbitrary types would work fine, as long as you keep track of which reader they can from. |
Could it be that the Roadmap needs updating?
but I cannot find related info in the release notes. |
Yes ...
It was a bit optimistic. My employer was sponsoring this, but the work got derailed by other obligations and I am also no longer sure what part is allowed to go into the open source. It is not abandoned, that's all I can say right now. |
I am revisiting this. I took your advice and am able to read the QoS of am endpoint, and create a reader if it's the durability I want. |
I know this isn't implemented yet, but was hoping someone had an example or maybe some direction on creating the 3rd party listener for DDS traffic tagged as "persistent" or "transient".
I assume it would be best to have one listener for all tagged messages on the domain.
The text was updated successfully, but these errors were encountered: