Skip to content

Research: Can mailbox size metric be implemented using ActorCell.numberOfMessages field and Async gauge? #615

@lgajowy

Description

@lgajowy

See comment: https://github.com/ScalaConsultants/mesmer/pull/514/files#r1028326753

The approach would allow using an async instrument which in that case might be not as heavy as adding code to every enqueue/dequeue invocation (as it is right now). However, getting the numberOfMessages "may be a costly operation" so not sure which approach is better.

This task is to investigate this and change the implementation if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions