Nice. With Kryo 2.0, you no longer have to add zero-arg constructors to every case class, right?
Hi Akka team,I am using Roman's Kryo serialization extension and it is performing much better than the default Java serialization. If configured properly, Kryo can be used almost as a drop-in replacement for Java serialization. Could you maybe consider turning Kryo serialization into an official Akka module?
It might even make sense to make it the default serialization option at some point.
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://akka.io/faq/
>>>>>>>>>> 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 post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
I am using Roman's Kryo serialization extension and it is performing much better than the default Java serialization. If configured properly, Kryo can be used almost as a drop-in replacement for Java serialization. Could you maybe consider turning Kryo serialization into an official Akka module?What's the problem with having it as it is?
It might even make sense to make it the default serialization option at some point.I'm not seeing that happening any time soon, mainly because that would mean that akka-actors.jar would have yet another dependency (we want to keep that number near 0).
I'm really glad you're enjoying Kryo serialization!
Hi Viktor,I am using Roman's Kryo serialization extension and it is performing much better than the default Java serialization. If configured properly, Kryo can be used almost as a drop-in replacement for Java serialization. Could you maybe consider turning Kryo serialization into an official Akka module?What's the problem with having it as it is?If it were an official Akka module, then there would be an implied assurance that the module is maintained, high-quality, and available from the Typesafe repository. This would probably lead to more Akka users adopting it and experiencing a massive increase in remote actor performance. The improvement is even available without the constraints and hassle of defining protocol buffers.
It might even make sense to make it the default serialization option at some point.I'm not seeing that happening any time soon, mainly because that would mean that akka-actors.jar would have yet another dependency (we want to keep that number near 0).I understand and appreciate this approach. At the same time efficient serialization is very important for the performance of remote actors and the dependency would only have to be part of the akka-remote module.
If you instead come up with your own magical macro that implements the functions in Externalizable, that would be cool too. Anything that makes writing high-performance code easier would be appreciated.
I'm really glad you're enjoying Kryo serialization!I'm enjoying Akka too, it is a fine piece of software. Thanks a lot for all the great work!
Philip
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://akka.io/faq/
>>>>>>>>>> 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 post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user?hl=en.
Where are these links posted?
--Anthony
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://akka.io/faq/
>>>>>>>>>> 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 post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
Any plans on updating this module to work with Akka 2.1? Akka uses Scala 2.10.0, but your library uses scala.reflect.ClassManifest, which was apparently removed in Scala 2.10.0. I really want to use this library, but don't know enough about Scala to patch it myself.

public class Message {
ActorRef messageSender;
String messageContents;
public Message(String messageContents, ActorRef messageSender) {
this.messageSender = messageSender;
this.messageContents = messageContents;
}
public ActorRef getMessageSender() {
return messageSender;
}
public void setMessageSender(ActorRef messageSender) {
this.messageSender = messageSender;
}
public String getMessageContents() {
return messageContents;
}
public void setMessageContents(String messageContents) {
this.messageContents = messageContents;
}
}
hi Roman,I am using kryo with the configurations specified in application.config. The akka remoting application was working correctly ealier with Java serialization. But as I switched to Kyro, messages are going to dead letters.
the problem arises whenever the message class contains some members of type java.util.ArrayList or an element of type ActorRef(anything which is not a java primitive type). Is there a need to serialize the non primitive types separately apart from the message class ?
I have the following set of dependencies in POM :akka-remote_2.10-2.3-M1.jarakka-actor_2.10-2.3-M1.jar
scala-library-2.10.2.jar
akka-kryo-serialization_2.10-0.3.0.jarkryo-2.22.jar
I am attaching two java programs one of which runs like a akka remote actor(Server) and other one is another akka remote actor running as a client(sending message to the server). On running both and sending the above message class after kryo serilization between the two causes messages to go to dead letters. Please suggest better strategies for this loop.
Hey Roman,thanks..now it worked for me. I was not registering the type java.util.ArrayList with an unique id after including in the serialization-binding section. After registering the id for the type, its now working the way I wanted. Thanks anyway for the help.