Skip to content

Streaming Connections consuming considerable CPU time #63

@erikmf12

Description

@erikmf12

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions