4 ms·
I suppose the key to this is in the last line - you're implying something that doesn't wait is better. That'd be actors; your creation, yes? :) But out of inte
by tempguy9999 7y ago
I suppose the key to this is in the last line - you're implying something that doesn't wait is better. That'd be actors; your creation, yes? :)
But out of interest, the syncing that you apparently dislike but which actors sidestep by having a receiving queue, said syncing allows for messages to be processed when the receiver is ready (obviously). That's a time overhead. 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).
How do actors handle that? If I'm talking rubbish some reading matter is welcome.
- ProfHewitt 7y agoActually, the point is that being faster is better. Ideally, a message sent to an Actor is never stored in persistent memory. A runtime system should never accept a unbounded backlog of communications for an Actor. Instead worst case, it should generate exceptions for further requests. Here are references that you requested: https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3418003 https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3418003 https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3459566 https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3459566
- tempguy9999 7y agoMuch obliged, thank you.
- AdieuToLogic 7y agoA 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...