Using the same bookmarking/tagging application as FirstStep, it shows how to persist the same MeshObjectGraph using MySQL as a key-value store. It consists of two apps:
- the first app initializes the store, and creates a graph of objects
- the second app retrieves the graph from the store, and traverses the graph to retrieve information.
It’s of course a trivial example, but it illustrates:
- how easy it is in InfoGrid to keep the same application running against different storage backends with minimal code changes (in the initialization only)
- some of the advantages of graph databases compared to other types of storage technologies: note how simple it is to traverse the graph in all directions.
Annotated source code is here.