Hey all, I was wondering if this would work at all.
Let's say we have a web application which lets users define groups of friends, including information such as who knows whom, and which people like what stuff.
My application is using spring-hateoas and the incoming resources are JSON. I was thinking about sending these resources over to a service layer which validates them and converts them into a local TinkerGraph Graph. The in-memory Graph would then be passed to a DAO layer which translates and persists the TinkerGraph to my graph database (DSE Graph). The TinkerGraph would then be closed.
My Reasoning: I would prefer not to create and maintain a complicated domain model full of Java POJOs; I expect the model to change often as time goes on.
As far as I can tell, since I won't have concurrent reads or writes to the TinkerGraph, this should work out okay. The only issue I foresee is memory usage.
Am I going about this all wrong? Is this a terri-bad idea? I'd appreciate some feedback.
Thanks!
-Nick