Threaded Operations - Quarkus

Joe Obernberger

Hi All - building a REST service using Quarkus to handle requests that operate on a graph.  The current approach is:

Static class that contains the JanusGraph and GraphTraversalSource objects that are created once per VM.  Use those objects when a request comes into add vertices, edges, properties, and when completed, commit.
Since quarkus can be called via multiple threads, what is the best approach to make sure the transactions are thread safe?  I'm looking here (, but not sure of the best approach.
Thank you!


AVG logo

This email has been checked for viruses by AVG antivirus software.

Join { to automatically receive all group messages.