Arjit
Arjit

Reputation: 565

Fast way Transfer Java object on Network

I have a thrift server which is serving Java objects to clients and these Java objects are stored in Membase.while serving client most of the time is going in serialization and deserialization of object. In membase we save a byte stream. I wanted to ask If I can skip in any way deserialization of the object ? Give the object as is to client which is also in Java.

Is there any other way we can transfer of object on wire ?

Upvotes: 0

Views: 266

Answers (2)

Alex Kreutznaer
Alex Kreutznaer

Reputation: 1170

You can write your own marshall/umarshall mechanism or use one of the existing as an alternative to serialization/deserialization.

There are pros and cons for both approaches (marshalling and serialization).

It is hard to say what is preferred in your case, without knowing exactly what you need.

Upvotes: 1

abishkar bhattarai
abishkar bhattarai

Reputation: 7651

Your client program and server program is running in different javaw.exe i.e with different JVM .So,to communicate data between different java program with two processes you need serilization and deserilization.You can not escape it.

Upvotes: 0

Related Questions