Code Monkey home page Code Monkey logo

Comments (7)

huntc avatar huntc commented on June 1, 2024

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.

huntc avatar huntc commented on June 1, 2024

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.

huntc avatar huntc commented on June 1, 2024

Looking also at the API documentation, the statements above are not apparent there. I should correct that.

from akka-edge-rs.

johanandren avatar johanandren commented on June 1, 2024

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.

patriknw avatar patriknw commented on June 1, 2024

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.

huntc avatar huntc commented on June 1, 2024

Does the additional doc now resolve this?

from akka-edge-rs.

johanandren avatar johanandren commented on June 1, 2024

Good enough IMO

from akka-edge-rs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.