writing a Spark Dgraph connector, I have a very particular requirement. I need to run dgraph4j Java clients in multiple JVMs all querying the cluster in the same read-only transaction. All clients need to see the exact same data though running on different nodes and at different times.
From what I have seen in the code of the client those transactions are created on each client node and there is no way to provide the client an open read-only transaction to use.
I think the
query @transaction(txnContext: $txnContext) proposed here is exactly what I need. Is this or something similar already available?
Thanks for any pointers and suggestions,