Skip to content
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

use "get" API for multi-topic #874

Open
owny990312 opened this issue Dec 23, 2024 · 3 comments
Open

use "get" API for multi-topic #874

owny990312 opened this issue Dec 23, 2024 · 3 comments

Comments

@owny990312
Copy link

Describe the feature

When implementing an RPC system, I encountered performance issues with the 'get' and 'queueable' APIs. The main problem is that the 'get' API recreates connections for each request, which leads to significant latency overhead, especially in multi-topic scenarios. This connection recreation becomes a bottleneck when handling multiple topics simultaneously.

@DenisBiryukov91
Copy link
Contributor

Hello @owny990312. Could you try using Querier and let us know if it improves performance ?

@owny990312
Copy link
Author

Hello @owny990312. Could you try using Querier and let us know if it improves performance ?

Is this is a new API for RPC situation?

@DenisBiryukov91
Copy link
Contributor

Querier to get is a bit like Publisher to put. When you first declare querier, zenoh will perform certain protocol-level optimizations to improve performance of subsequent z_querier_get calls (+ allow checking for matching queryables), that is why I expect it to have an impact on performance in your case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants