3 ms·
A good article on the Actor model can be found here[0]. > If actors have unbounded queues then there's a memory overhead (and one which may grow infinitely on
by AdieuToLogic 7y ago
A good article on the Actor model can be found here[0].
> If actors have unbounded queues then there's a memory overhead (and one which may grow infinitely on a finite machine if someone isn't processing their messages fast enough).
Depending on the Actor implementation one employs, this concern can be mitigated. For example, Akka[1] provides BoundedMessageQueueSemantics[2] which can be used to provide hard limits.
0 - https://en.wikipedia.org/wiki/History_of_the_Actor_model https://en.wikipedia.org/wiki/History_of_the_Actor_model
1 - https://doc.akka.io/docs/akka/current/typed/index.html https://doc.akka.io/docs/akka/current/typed/index.html
2 - https://doc.akka.io/docs/akka/current/mailboxes.html#requiring-a-message-queue-type-for-an-actor https://doc.akka.io/docs/akka/current/mailboxes.html#requiri...