Skip to content

Is there a way to monitor the size of an actors inbox programmatically? #6248

Answered by to11mtm
tjaart asked this question in Q&A
Discussion options

You must be logged in to vote

I would like to know whether it is possible to create some sort of middleware in Akka .Net in order to see when messages are queued and dequeued in an actor mailbox and how many messages are there.

The reason being we want to raise a warning when a particular actor starts getting a large backlog of messages in its inbox.

One option is a custom mailbox, but it comes with caveats and works best if it the sample size is small, as peeking at this data for -every- message on every mailbox can cause problems. I have an example of this in Akka.Metrics.Mailbox which is a port from a JVM project.

Phobos is likely the best option for proper/comprehensive monitoring, as it provides much more than …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Aaronontheweb
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by tjaart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants