Giter Site home page Giter Site logo

Comments (7)

henry-hz avatar henry-hz commented on April 28, 2024

I am thinking about implementing a FSM data structure, so this kind of problem couldn't happen.
https://github.com/sasa1977/fsm

Makes sense ? Should I proceed an PR ?

from commanded.

slashdotdash avatar slashdotdash commented on April 28, 2024

Yes, you've discovered an issue in that area. The Commanded.ProcessManagers.ProcessRouter.continue_process_manager function should ensure that when it starts the process manager it is starting a process that has already been created. The snapshot data for that process must be present.

Feel free to work on a pull request. I use Saลกa's fsm library in the eventstore. Otherwise I'll add this to the roadmap and get it fixed.

from commanded.

henry-hz avatar henry-hz commented on April 28, 2024

Please, add to the roadmap, I still have to study the code to know how to fix this bug

from commanded.

slashdotdash avatar slashdotdash commented on April 28, 2024

It's in the backlog of the Development roadmap.

from commanded.

Trevoke avatar Trevoke commented on April 28, 2024

Is this still known to be an issue?

from commanded.

slashdotdash avatar slashdotdash commented on April 28, 2024

@Trevoke Process managers are comprised of two components: a router and many instances. The router subscribes to the event store and routes events to instances, this might require starting a new process or resuming an existing one. A process manager instance handles the event, returning any relevant commands, then mutates its state. It records a snapshot of the mutated state after each event it processes.

I'm in the process of reworking process managers so that they use linked events as their persistence mechanism (event sourcing), with optional state snapshots so they resemble how aggregates persist their state. That change will resolve this issue.

from commanded.

slashdotdash avatar slashdotdash commented on April 28, 2024

Fixed by #181.

from commanded.

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.