This might not be very nice, but you could pre-serialize your large object to a akka.util.ByteString. Serialization of an akka.util.ByteString should be much cheaper than serializing a large. complex data structure. I am assuming that the serialization overhead is what you want to avoid.
On Mon, Nov 2, 2015 at 11:28 PM, Kostas kougios <[email protected]> wrote: > I am looking for an efficient way to broadcast a case class only once to my > akka cluster, i.e. broadcast it only once (so it is serialized only once > over the wire) and received by multiple actors. Then one of those actors > will reply back to the sender. > > Is there a way to do this? I know I can broadcast it to a Cluster (Dist > pub/sub) but this will send the message once to each ActorSystem. My message > might be large so I am looking for a 1-send-over-the-wire only, if possible. > > Thanks > > -- >>>>>>>>>>> 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. -- >>>>>>>>>> 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.
