I'm using Kryo, and that's working reasonably well so far, but it's not trivial to set up. As I have time, I'm gradually writing that up <https://www.querki.net/u/jducoeur/scala-notes/#!Kryo-Serialization-for-Akka-Persistence>, but it's only half-done. Happy to answer questions if you want to explore that route.
My general impression is that protobuf is the well-established route, and the one that most people are using, but that does involve some duplication of information. (Or generating the case classes from the protobuf IDL.) I don't much care for that, which is why I went for Kryo; the end result is broadly similar in terms of the amount of effort, I believe, but with the serialization information encoded directly into the classes themselves. On Mon, May 1, 2017 at 12:54 AM, Joost de Vries <[email protected]> wrote: > I'm trying to find a suitable serialization for akka persistence. > > There are a lot of options but not all of them are equally used and are as > mature. F.i. we picked avro with avro4s but hit some problems that weren't > easy to fix. > > Of course then it's tempting to fall back on json: it's familiar from > rest, easy to analyse and there's stamina for schema evolution. > > But I wonder if there's another option. So my question is: which non json > serialisation are you using and what are your experiences with schema > evolution and otherwise? > A special concern is that we'd rather not have to duplicate our case class > structure in IDL files. > > -- > >>>>>>>>>> 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 https://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 https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
