Following up on the proof of concept I created in TINKERPOP-2563-language, and the thread with Stephen, here is a demo video showing a graph with domain-specific types being sent over the wire between a Java-based client and a Java-based server:
https://www.youtube.com/watch?v=wFCrJOXXs5Y Any thoughts are welcome. I will probably demonstrate the same thing for Protobuf and Avro in separate examples in the branch. Again, the flow of the demo is: - The client creates and populates a TinkerGraph instance. One of the properties has the key "livesIn" and a value which is an instance of a domain-specific BoundingBox class. - The client encodes the graph to an instance of the Thrift-generated Graph class. The BoundingBox is serialized using a JSON-based encoder which has been added to an encoder registry that is shared between client and server. - The Thrift-generated code sends the encoded graph across the wire to the server, which receives it again as an instance of the Thrift-generated Graph class - The server decodes the graph to a new instance of TinkerGraph. The serialized bounding box is deserialized to an instance of the domain-specific BoundingBox class, and becomes a property value in the server's graph. - The server prints out some info and writes the received graph to disk as a GraphSON file so we can see that it is true to the client's original graph Josh
