Hello,
I was looking at AtLeastOnceDelivery and what problems it might have when
the destination actor dies or becomes slow. Apart from the obvious
out-of-memory which would eventually happen (and which can be solved with a
smarter ALOD version which flushes excess data to disk), there's also the
problem of an increasing load of messages when the destination is
unavailable: every new message is retried, and retried, and retried, and
this adds up ... wouldn't it be a perfect place for a reactive message
stream?
Are "reactive message streams" between actors anything that has been
considered? (I know that for sure it's not implemented, but just wondering
in general, if it makes sense.) This could be especially useful if the
actors are on separate nodes - "reactive remoting".
One problem here would be handling routers. Let's say we have an A actor
streaming messages to two B actors:
/-- B1
A --- R --- <
\-- B2
where R is a router. Now the router would have be smart about the demand
coming from B1 and B2: sum the demand and return it to A, and when A sends
messages, split them according to the earlier requests.
Going even further (and that is the original problem that I was wondering
about), let's say we have a pool of A-actors (potentially on different
cluster nodes using e.g cluster sharding) and a pool of B-actors (again
potentially on different cluster nodes). The goal is to have a reliable
message stream between the A-actors and the B-actors. The additional
complication here is that there's no central router, so even if there was a
reactive message stream available between any two nodes, the B-actors would
have no idea how to split the demand between the A-actors. Or maybe the
direction I'm heading with this is somehow wrong? :)
Adam
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ:
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.