Factlink / pavlov

Provides a Command/Query/Interactor framework.
MIT License
22 stars 4 forks source link

Added links to two alternative projects #68

Closed markijbema closed 11 years ago

jjoos commented 11 years ago

Oeh nice https://github.com/collectiveidea/interactor ! I Should read up on those, thinking about rollbacks (commands), for quite some time now.

markijbema commented 11 years ago

It's quite nice, and I think we can do something similar, however, we have to worry about structure a bit more. The only composition interactor offers is a list. I think if we just save the executed commands we can roll them back in the inverse order though. That ought to work.

jjoos commented 11 years ago

But what do we do with side effects like sending email, that we can't rollback. Do we want to postpone those side effects to the end of the interactor, so we don't have to roll them back?

markijbema commented 11 years ago

We should have commands which we cannot roll back after commands which can fail, I guess. But ultimately that will be the responsibility of the user of Pavlov, not the framework, as we have no detailed knowledge about what can fail. (but we can know what we can roll back)