Skip to content

best practices, recommendations for working with transactions and microstream #665

Answered by hg-ms
sare3th asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,
We can’t prevent other threads from accessing application objects. Solving concurrency problems like your must be done by the application as Microstream does not own the object graph. From my point of view reentrant read write locks are the best options.
If you’re looking for a simpler solution you may have a look at the class ‘one.microstream.concurrency.XThreads’ that provides a basic approach to handle such concurrency issues in simple applications.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sare3th
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants