Comments (7)
I may not fully understand yet, but a chain of effects for a given entity id must complete before any further commands are processed for that same entity id.
from akka-edge-rs.
If the command can trigger some async logic and then persist an event once it completes, the state may have changed in the meanwhile, breaking the boundary making it possible to persist events that are not valid given the current state.
Just to be clear... this cannot happen as per my comment above.
from akka-edge-rs.
Looking also at the API documentation, the statements above are not apparent there. I should correct that.
from akka-edge-rs.
Ah, ok, I thought you might end up with mixed async logic from a subsequent command, but they are in fact held off until the chain of effects completes, then I think we are good. But extra clarifification in docs seems good as it is different from JVM Akka Persistence.
from akka-edge-rs.
I agree that this should be fine as long as we don't process next command until everything finished for previous command. That is something we might want in the JVM behavior as well, we have talked about the need for async validation but so far deferred that to user code with stashing.
from akka-edge-rs.
Does the additional doc now resolve this?
from akka-edge-rs.
Good enough IMO
from akka-edge-rs.
Related Issues (20)
- Optional return values from marshaller HOT 8
- Persist multiple events HOT 1
- Persist vs emit HOT 7
- Add example use cases HOT 2
- Opaque error when commit log directory does not exist
- More effect DSL examples in docs HOT 4
- Reply after emit without state doesn't compile HOT 9
- Edge Sample: Error consuming events from JVM HOT 7
- Out of the box unencrypted marshaller
- Return the channel from the entity manager HOT 2
- Convenience for initial consumer filters
- Return a kill switch instead of having to create HOT 2
- Backend support for projecting persistent and ephemeral events to a UI HOT 1
- Don't automatically skip events that cannot be deserialized HOT 4
- new fill_sequence_number_gaps field HOT 2
- Look toward supporting native async traits HOT 1
- Use fixed version of Rust toolchain for releases HOT 4
- Release 0.7.0
- Release 0.8.0 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from akka-edge-rs.