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

Performance issues on receiving realtime data #23

Open
biering opened this issue Mar 26, 2018 · 3 comments
Open

Performance issues on receiving realtime data #23

biering opened this issue Mar 26, 2018 · 3 comments

Comments

@biering
Copy link

biering commented Mar 26, 2018

I subscribed to a topic which from which I receive around 5-10 byte buffers per second.
Unfortunately, there are lag spikes while receiving the data. For example, 6 byte buffers are received very fluently and after that nothing comes through for about one or two seconds.

I set qos to .userInteractive. Is there something I can do to receive the data more fluently?

@PasiSalenius
Copy link
Owner

I have not seen this type of behaviour in my usage of the library. You could try to debug reception of data and find the cause of the lag, perhaps by checking whether the lag happens before calling of receiving data closures or after that, in your own code. Also printing / logging out payload sizes and steps in the packet decoding might help you out, just to make sure everything works as you expect.

Since I took this long to answer, you may have found the solution already 🙂

@PasiSalenius
Copy link
Owner

I committed quite a big update to the client today. You might want to check if it fixes the issues you were seeing.

@biering
Copy link
Author

biering commented Mar 22, 2019

Ok, I'll try it out.

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