I am occasionally getting errors related to concurrency. My code is trying to expect the situation and due to command handling logic it is trying to retry the failed command.
It looks like that occasionally writing data to EventStoreDB takes a little bit longer (the
appendToStream() method does not finish quickly) at which point I am not able to read newly written events from
This leads to a situation where the subsequent
appendToStream() call fails. Adding a progressive delay seems to help.
- how the concurrency is handled within the EventStoreDB (e.g. what to expect if I perform append/read quickly) and is there a recommended approach to re-try (what should the eventual delay be)?