Publishing to topic with Distributed PubSub will only transfer the message
once per node that has any subscribers.

However, how large is large? Akka remoting is not designed for large
messages, so you should consider splitting it up in parts or use another
side channel, such as http or Akka IO.

/Patrik
tis 3 nov. 2015 kl. 18:48 skrev 'Konstantinos Kougios' via Akka User List <
[email protected]>:

> oh....
>
> maybe breaking the msg into parts but it seems too much of a trouble
>
>
> On 03/11/15 17:07, Rüdiger Klaehn wrote:
>
> UDP is limited to 65507 Bytes. Might be a bit small for large messages...
> I assume serialization is optimal, but still the data size will be large.
>
> Maybe UDP multicast (
> http://doc.akka.io/docs/akka/2.4.0/scala/io-udp.html#UDP_Multicast ) is
> what I need,  though I need to dig in a bit to the docs to understand how
> it works
>
> On 03/11/15 13:42, Rüdiger Klaehn wrote:
>
>> 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.
> --
> >>>>>>>>>> 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 a topic in the
> Google Groups "Akka User List" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/akka-user/OiDvATVqxnI/unsubscribe.
> To unsubscribe from this group and all its topics, 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.
>

-- 
>>>>>>>>>>      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.

Reply via email to