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. Is the performance still better 
than using the java-serializer? 
Also I have a lots of messages to Serialize, that's bringing lots of 
boilerplate code :/

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 <[email protected] <javascript:>>:
>
>> 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 [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <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 [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.

Reply via email to