I'm currently using akka-kryo-serialization and I don't like it so much, 
maybe kryo with chill or only kryo is better, but I gonna try protobuf next.
Thanks for the great help :)

Am Sonntag, 19. November 2017 20:39:06 UTC+1 schrieb Patrik Nordwall:
>
>
> sön 19 nov. 2017 kl. 19:52 skrev Qux <angi...@gmail.com <javascript:>>:
>
>> Thanks for the Example. That helps a lot :)
>>
>> One concern: Aren't all messages serialized two times this way? 
>> First from Blogcommand to the genrated Protobuf-Representatve and then a 
>> ByteString when it's send over the network. 
>>
>
> Yes, but there are a lot of advantages of having different representations 
> for the domain and the serialized representation. Especially when it comes 
> to events that are persisted.
>
> One could have protobuf classes as the messages, but personally I wouldn’t 
> model my core domain with such things.
>
> Is the performance still better than using the java-serializer? 
>>
>
> Yes, way better
>
>
>> Also I have a lots of messages to Serialize, that's bringing lots of 
>> boilerplate code :/
>>
>
> You can look into a more automatic mapping, such as Kryo.
>
>
>>
>> Am Sonntag, 19. November 2017 16:29:07 UTC+1 schrieb Patrik Nordwall:
>>
>>> Serialization is mentioned at the end of this blog post: 
>>> https://akka.io/blog/2017/09/28/typed-cluster
>>>
>>> It links to the PingSerializer that illustrates how to use the 
>>> ActorRefResolver. In the end the ActorRef is represented as a string in the 
>>> proto.
>>>
>>> A more comprehensive serializer example that is using protobuf can be 
>>> found here: 
>>> https://github.com/patriknw/akka-typed-blog/blob/master/src/main/scala/blog/typed/persistence/scaladsl/BlogSerializer.scala
>>>
>>> with proto 
>>> https://github.com/patriknw/akka-typed-blog/blob/master/src/main/protobuf/BlogPostMessages.proto
>>>
>>> /Patrik
>>>
>>> sön 19 nov. 2017 kl. 14:09 skrev Qux <angi...@gmail.com>:
>>>
>> Hello,
>>>>
>>>> I wanna try AkkaTyped with protobuf and have a lots of messages like 
>>>> the following ones:
>>>>
>>>>
>>>> case class Result(i:Int) 
>>>>
>>>> ->
>>>> message Result{   
>>>>  int i = 1;
>>>> }
>>>>
>>>>
>>>>
>>>> case class Double(i: Int, actorRef: ActorRef[Result])
>>>>
>>>> -> 
>>>> message Double{
>>>>    int i =1;
>>>>    ??? actorRef = 2;
>>>> }
>>>>
>>>>
>>>>
>>>> Is there a way how I use ActorRef[...] in a Protobufmessage (.proto 
>>>> file)?
>>>> I've seen this post 
>>>> <https://groups.google.com/forum/#!searchin/akka-user/protobuf$20actorref%7Csort:date/akka-user/aHN74DrGiyY/dC7zpMUtBQAJ>
>>>>  but 
>>>> I don't know how it helps me!
>>>>
>>>> Thanks
>>>>
>>>> -- 
>>>> >>>>>>>>>> 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+...@googlegroups.com.
>>>> To post to this group, send email to akka...@googlegroups.com.
>>>
>>>
>>>> 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 akka-user+...@googlegroups.com <javascript:>.
>> To post to this group, send email to akka...@googlegroups.com 
>> <javascript:>.
>> 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 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.

Reply via email to