Need advice on setting up janusgraph as a microservice

I am trying to build a recommendation system using janusgraph. I already have setup one janusgraph instance with an index backend for just the product and its related entities. Now, I need to add the users to the mix as well. But, I am confused as to whether introduce the User vertices in the product graph instance or should make a separate graph altogether. The reason for wanting a new instance for the users is that, there is a community feature that is included as well where creating personalities based on that user graph will becomes crucial. If I do make two different services what would be a good way of communicating between the two graphs?
3 Replies
porunov
porunov3mo ago
Hey! You might want to try dynamic graphs. Generally speaking, you can just bind multiple graphs to Gremlin Server and use them as needed. I.e. graph1.traversal().V()... graph2.traversal().V()... https://docs.janusgraph.org/operations/dynamic-graphs/
karthikraju
karthikrajuOP3mo ago
I did see this but still both the graphs are still on the same instance of janusgraph, and my requirement is to have two separate instances of janusgraph one for the users and another one for the products because the users graph will have its own thing and I need to it be isolated
porunov
porunov3mo ago
Graphs are isolated. Those two graphs have their own keyspace and don't share any user-space data between each other. You can also define different schema for different graphs.
Want results from more Discord servers?
Add your server