Best Practices for RemoteDatabase in Kotlin (specifically thread-safety) #1599
Unanswered
tristanradams
asked this question in
Q&A
Replies: 1 comment
-
|
You should take a look at |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am currently in the process of trying to convert my Spring Kotlin project to using ArcadeDB for its graph database. In the process of setting things up, I noticed that the
RemoteDatabaseis not thread safe and that I should produce one per thread.Here is my rough draft so far of a possible wrapper class (which my application would only have one instance of the wrapper class) I could use to keep things safe:
My main questions are:
RemoteDatabase?RemoteDatabaseif many threads are being created?RemoteDatabaseinstances whenThreads are closed?Please let me know if any more context is needed or if I am shooting in the completely wrong direction!
Beta Was this translation helpful? Give feedback.
All reactions