ImmutableCommand in memstate? #122
Replies: 2 comments 3 replies
-
An immutable model means that the commands return the next version of the model. Meanwhile, queries are free to complete on the version that was current when they started executing. OrigoDB has this as an option. I considered going all in with immutable modeling in memstate but wasn't brave enough to make that decision. For normal mode (the only mode in Memstate), the engine uses a ReaderWriterLockSlim, which allows EITHER multiple simultaneous readers or a single writer. |
Beta Was this translation helpful? Give feedback.
-
Aw, what a pity that you didn't go for immutable models, would make perfect sense in my opinion cause it saves one from so many troubles. Do you plan to add back immutability support? Would it even be possible with the current architecture? |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have another question. Do you support immutable command and immutable models in memstate? The beta documentation mentions them, but I guess it just applies to OrigoDB.
If not, how do you ensure consistent results when commands and queries are executed concurrently?
Beta Was this translation helpful? Give feedback.
All reactions