Hi Jeffrey, ByteStrings can of course trivially be serialized, but that has nothing to do with implementing Serializable (which is strictly the worst possible choice available for this job). Fortunately serialization within Akka is fully configurable and customizable, so you can just register a schema for ByteString and the issue is solved.
Regards, Roland 30 jul 2014 kl. 23:22 skrev Jeffrey Aguilera <[email protected]>: > What if you don't control the code? What if you're trying to forward an > HttpRequest to another actor that happens to be remote? HttpData uses > ByteString, so you're dead and location transparency is violated. > > On Saturday, March 3, 2012 12:43:42 PM UTC-8, Jonas Bonér wrote: > Can't you do this? > val bytes = byteString1.toArray > ... // send bytes over the wire > val buffer2 = ByteString(bytes) > > On Sat, Mar 3, 2012 at 9:38 PM, Oliver Schulz > <[email protected]> wrote: > > Hi, > > > > is it OK to exchange ByteString(s) over the network > > with remote Actors? I just ask because the ByteString > > classes don't seem to implement Serializable. > > > > > > Cheers, > > > > Oliver > > > > -- > > You received this message because you are subscribed to the Google Groups > > "Akka User List" group. > > To view this discussion on the web visit > > https://groups.google.com/d/msg/akka-user/-/E_iV77EAIRMJ. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group at > > http://groups.google.com/group/akka-user?hl=en. > > > -- > Jonas Bonér > CTO > Typesafe - The software stack for applications that scale > Phone: +46 733 777 123 > Twitter: @jboner > > > > > > -- > >>>>>>>>>> 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. Dr. Roland Kuhn Akka Tech Lead Typesafe – Reactive apps on the JVM. twitter: @rolandkuhn -- >>>>>>>>>> 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.
