Something went wrong. Try again.
Event Sourcing Framework on top of Microsoft Orleans and PostgreSQL
Something went wrong. Try again.
2 folders · 1 file
README.md
The ToDo Feature Module #
The main purpose of this feature module is to show case the Event-Sourcing framework. We all know to-do lists to some extend, so I don't have to explain a lot. And it can be complex enough to have room for "fancy stuff".
The ToDo module manages "tasks" and their transitions between different states like "opened" up to "completed".
In the future there may be "boards" and "teams" for more advanced visualization.
The Domain #
A task has a simple title, which describes the task to do.
A task can be in one of the following states:
Opened: this is the "to do" stateStarted: someone started the work on this task ("doing")Paused: the work is paused (still "doing")Completed: the work is "done"Dismissed: a decision was made to not do the work ("don't")
The task transitions between states on applying a command to the task. Either an error or a success will be returned.
NotFound: if the task does not existForbidden: if access to the task is deniedBadRequest: if the command is not allowed in the current state of the taskInternalError: if an unexpected error happensSuccess: on a successful transition a list of domain events is returned which describes the transition; the list can be empty if the transition doesn't change the state at all