Hello Asterios,
It’s not a very good idea to use actor messaging to send such huge messages 
using akka’s remote messaging.
Reason being - you’ll delay other messages until the huge one has been pumped 
through the network.

Actor messages should ideally be in kilobyte ranges.

1) In your case I would store these files in a distributed filesystem (do you 
have HDFS in your cluster for example?) that is optimised to deal with such 
data (because akka-actor is optimised for fast small message transfer, not huge 
files) and send the location to the receiver, so it can decide to pull the work 
(the data) when it’s ready to do so. 

Wins: You don’t clog the actor system; The receiver is free to pull the data 
when it’s ready; and you use an optimised storage system for this kind of data.

2) If you want to stick to actor messages, you could chunk up the data so you 
don’t clog the connection. See: http://www.eaipatterns.com/MessageSequence.html

3) One other approach would be to use akka-io to deal with the file transfer. 
The receiving end would need more work here.


-- 
Konrad 'ktoso' Malawski
hAkker @ typesafe
http://akka.io

-- 
>>>>>>>>>>      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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
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