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

Streaming Connections consuming considerable CPU time #63

Open
erikmf12 opened this issue Mar 4, 2022 · 1 comment
Open

Streaming Connections consuming considerable CPU time #63

erikmf12 opened this issue Mar 4, 2022 · 1 comment

Comments

@erikmf12
Copy link

erikmf12 commented Mar 4, 2022

I am monitoring multiple mailboxes for a custom app that's running 24/7. It subscribes to multiple accounts (5-10 right now) and is using StreamingSubscriptionConnections to receive notifications. Each account is using it's own ExchangeService using impersonation (OAuth authentication) and Affinity as best as the docs can describe. My issue is that after the connections are made there is a massive delay of the notifications coming in (anywhere from 10 minutes to as long as the connection lives, for which case it then notifies after the next connection is made), as well as the app is consuming about 50% CPU.

This functionality is all that the app is performing, and no other tasks are running at the same time. I have confirmed that it's not my code that's running, after the call to connection.Open() there is no other work being done by my app.

The CPU consumption is somewhere in this library, and I would like to know what I need to do to stop this from happening. Is there anything you can suggest for me to try or troubleshoot to either fix this or provide you with more information to dig deeper?

@David-Barrett-MS
Copy link

Can't reproduce this issue in a sample app that implements affinity/grouping per the docs: https://github.com/David-Barrett-MS/EWSStreamingNotificationSample

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