[
https://jira.jboss.org/browse/ISPN-508?page=com.atlassian.jira.plugin.sys...
]
Galder Zamarreno updated ISPN-508:
----------------------------------
Attachment: avro-rpc-quickstart.zip
I've been playing around with Avro. Reflection based marshalling, which is the one
that avoids clients having to precompile their classes, still requires some kind of
sending around of the class name/type before hand in order to deserialize read data which
would not be portable. Specific marshalling is the same that Protobuf and Thrift do.
However, it seems to rely on a static singleton class that maintains a class cache in a
CHM which would cause leaks on app server environments. Although the most interesting
thing with Avro would be to allow clients to parse their own byte[] using reflection based
marshalling, I seriously doubt this is portable in any way. IOW, how is a python client
gonna know how to read a Java object that has been marshalled based on reflection where
there's no schema?
I'm attaching a sample project that uses reflection based marshalling but it's use
is limited.
ProtoBuf as portable serialization for Hot Rod
----------------------------------------------
Key: ISPN-508
URL:
https://jira.jboss.org/browse/ISPN-508
Project: Infinispan
Issue Type: Feature Request
Components: Cache Server
Reporter: Galder Zamarreno
Assignee: Galder Zamarreno
Priority: Critical
Fix For: 5.0.0.BETA1, 5.0.0.Final
Attachments: avro-rpc-quickstart.zip, protobuf-sandbox.zip, thrift-sandbox.zip
Consider using Google ProtoBufs as a way to serialize data into a wire so that a single
Hot Rod server can simulatneously be accessed by clients written in different languages.
At the moment, cos Java client uses standard serialization, only Java clients would really
be able to understand the contents of it, unless there's a non-JVM implementation that
can understand java serialization.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira