FYI, this Friday at 11am PDT, a few of us will be following up on the above with a Zoom meeting. We will touch on Thrift, Protobuf, Avro, and also Apache Arrow as suggested by Leo Meyerovich. I think in the future, it might be worthwhile to create a meetup.com group to organize events like this, but for the time being, just reply to me directly with your email address if you would like to attend, and I will add you to the invite.
Josh On Fri, Jul 16, 2021 at 8:45 AM Joshua Shinavier <[email protected]> wrote: > 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 >
