Greetings,
Hi, I was trying out Janus graph with remote and I got some elementary doubt related to the transaction handling. Consider the architecture of the application.
API Layer ------> Service Layer -------> DAO layer --------> JanusGraph
API Layer: It redirects requests from the endPoint to the intended Service layer method.
Service Layer: Basically this layer constitutes of the Business logic and it may call multiple DAO layer methods to serve the request.
DAO Layer: Contains Dumb methods to interact with Janus graph to facilitate the creation of edge, vertex or like adding a property to them.
Now Since in remote graph, every traversal is atomically committed( is within a transaction). Suppose I want to maintain the transaction on the service layer like if there comes any exception in a request the graph must remain unchanged( all the transaction must be rolled back).
Can anyone explain or suggest some design to implement the same??
Regards,
Shrikant