Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cross language C# and Java development

Can you give me some advice on how to best ensure that two applications (one in C#, the other in Java) will be compatible and efficient in exchanging data? Are there any gotchas that you have encountered?

The scenario is point to point, one host is a service provider and the other is a service consumer.

like image 786
NT_ Avatar asked May 23 '26 15:05

NT_


2 Answers

Have a look at protobuf data interchange format. A .NET implementation is also available.

like image 155
kgiannakakis Avatar answered May 26 '26 03:05

kgiannakakis


JSON for descriptive data, and XML for general data types. If that is not efficient enough for you, you need to roll your own codecs to handle the byte ordering difference between C# and Java.

like image 33
alphazero Avatar answered May 26 '26 05:05

alphazero



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!