Why eventStore do not use plant event table? #356
-
As I see, Eventhorizon store the struct ( maybe I can call it aggregate table ) in the eventStore, likes: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
There could definitely exist race conditions. Are you referring to the MongoDB implementation of the event store? If so could you provide a short example of how the add operation could be done without removing the atomicity of the increment? |
Beta Was this translation helpful? Give feedback.
-
I assume you are interested in these lines: https://github.com/looplab/eventhorizon/blob/master/storage/mongodb/eventstore.go#L157 |
Beta Was this translation helpful? Give feedback.
-
I'll close this with the conclusion that Event Horizon is not yet thread safe. |
Beta Was this translation helpful? Give feedback.
I'll close this with the conclusion that Event Horizon is not yet thread safe.