Hi there,
during my exploration of the Photon Server SDK and the client side I came across the following question:
How can I implement a language neutral way to transfer messages between servers and servers and clients?
I tried a lot of ways including operations but then I came to a limitation: byte for keys in operation parameters.
With that in mind I searched for a nother solution and finally found Google Protocol Buffers.
This is a great tool for several reasons:
Oppinions wil be welcome
during my exploration of the Photon Server SDK and the client side I came across the following question:
How can I implement a language neutral way to transfer messages between servers and servers and clients?
I tried a lot of ways including operations but then I came to a limitation: byte for keys in operation parameters.
With that in mind I searched for a nother solution and finally found Google Protocol Buffers.
This is a great tool for several reasons:
- One can define messages that can be compiled to many well known languages (c#, c++, Java, Phyton...)
- These messages can be serialized to byte[] and simply added to operationRequest and operationResponse
- One now has 255 messages that can be defined containing messages in messages with unlimited nesting
- Messages are even backward compatible if one decides to add new parameters into a message
Oppinions wil be welcome
