Abstract
Akka is a highly-extensible lightweight software toolbox. It solves the classic problem of sensing node state in distributed system by abstracting things into Actor models. Because the limited-capacity Mailbox is generally used, in fact, when there is no available space, some high-priority messages will not be able to enter the container, which will lead to some important messages not being processed; in addition, when the message waits to be processed, if more than expected waiting time it will generate feedback to tell the sender, the sender will cause behavior like repeat-operation. The receiver does not know and will process the message as normal,so it will handle this message twice. Based on the red-black tree data structure, this paper improves the original Mailbox architecture so that it has the function of entering or quiting the team according to priority when the team is full. It can also discard the message that the waiting time exceeds the set-value when the message quits, so as to avoid wasting resources.
Talk to us
Join us for a 30 min session where you can share your feedback and ask us any queries you have