This is the most efficient serialization technology that should be language independent

I am currently launching a project which is to serialize data from a .net application (C # application) and transfer its network to a Java based server application. Therefore, I would like to know which serialization mechanism is most efficient and at the same time, a serialized object should be deserialized using a java application.

inquiries:

I heard that protobuf is much faster than any other serialization like xml. Can protobuf be used to fulfill the above requirement?

A new technology called "Kryo" for serialization has appeared in java, which is even more efficient than protobuf, so there is such a thing in the .net environment that should be language independent.

+4
source share
4 answers

Yes, protobuf is language independent. The java version is provided by google with several C # implementations (I would recommend protobuf-csharp-port if you need very similar code at both ends, and protobuf-net if you prefer .NET to look like idiomatic .NET).

Re Kryo - , , " " - (: , : ? ? ? ...?). , , : , .

, Kryo , Java.

+5

Hessian - , , .

Java, ++, #, Objective-C, PHP, Ruby, Javascript ..

:
Java Remoting:

+2

..

, . , "" "". , ?

XML JSON, . , , ,

  • / .
  • , .
  • XML JSON , , - -

Json -

  • /
  • ,
  • .
  • , XML, " ".

XML,

  • /
  • ,
  • SOAP ..
  • (xsd, xslt, sax, dom ..)
  • JSON

,

Protobuf

  • ( )
  • , ( )
  • ( )
+1

, . , , .

: XML JSON.

XML Schema, .

JSON , "" .

, . .

0

Source: https://habr.com/ru/post/1524072/


All Articles