Re: [akka-user] Re: Akka cluster sharding messages default serialization

2016-11-18 Thread Patrik Nordwall
That is right, we use Protobuf for all Akka internal messages and
persistent events/snapshots.

/Patrik

On Tue, Nov 15, 2016 at 12:54 PM, Leonard Ehrenfried <
leonard.ehrenfr...@gmail.com> wrote:

> I'm going to answer my own question here.
>
> It turns out that akka-cluster-sharding registers its own serializer which
> is based on protobuf. It's a bit hard to find because it's all private but
> here is it on Github: https://github.com/akka/akka/blob/master/akka-
> cluster-sharding/src/main/scala/akka/cluster/sharding/protobuf/
> ClusterShardingMessageSerializer.scala
>
> I used this test to find out what the serializer is:
> https://gist.github.com/leonardehrenfried/99194ad1164049434d187a5b4068b008
>
> On Tuesday, November 15, 2016 at 10:37:31 AM UTC+1, Leonard Ehrenfried
> wrote:
>>
>> Hello,
>>
>> we do event sourcing with akka-persistence and akka-cluster-sharding.
>> Apart from our own messages/events akka-cluster also writes a few messages
>> regarding shard allocation to our event log.
>>
>> We have configured a custom serializer for our own events which
>> transforms them to JSON but which format is chosen by default for the
>> cluster messages (we haven't added a configuration setting for events that
>> aren't our own)?
>>
>> Is it protobuf oder java serialization? Or neither?
>>
>> Thanks for your help,
>> Leonard
>>
> --
> >> 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 https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Patrik Nordwall
Akka Tech Lead
Lightbend  -  Reactive apps on the JVM
Twitter: @patriknw

-- 
>>  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 https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


[akka-user] Re: Akka cluster sharding messages default serialization

2016-11-15 Thread Leonard Ehrenfried
I'm going to answer my own question here.

It turns out that akka-cluster-sharding registers its own serializer which 
is based on protobuf. It's a bit hard to find because it's all private but 
here is it on 
Github: 
https://github.com/akka/akka/blob/master/akka-cluster-sharding/src/main/scala/akka/cluster/sharding/protobuf/ClusterShardingMessageSerializer.scala

I used this test to find out what the serializer 
is: https://gist.github.com/leonardehrenfried/99194ad1164049434d187a5b4068b008

On Tuesday, November 15, 2016 at 10:37:31 AM UTC+1, Leonard Ehrenfried 
wrote:
>
> Hello,
>
> we do event sourcing with akka-persistence and akka-cluster-sharding. 
> Apart from our own messages/events akka-cluster also writes a few messages 
> regarding shard allocation to our event log.
>
> We have configured a custom serializer for our own events which transforms 
> them to JSON but which format is chosen by default for the cluster messages 
> (we haven't added a configuration setting for events that aren't our own)?
>
> Is it protobuf oder java serialization? Or neither?
>
> Thanks for your help,
> Leonard
>

-- 
>>  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 https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.