Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Process Manager to Handle Event Listening and Command Dispatching #114

Open
2 tasks
nanderstabel opened this issue Aug 26, 2024 · 1 comment
Open
2 tasks
Labels
Enhancement New feature or improvement to an existing feature

Comments

@nanderstabel
Copy link
Collaborator

Description

UniCore currently implements CQRS (Command Query Responsibility Segregation), DDD (Domain-Driven Design), and Event Sourcing, with working components for event listeners and command dispatchers. However, we lack a unified mechanism that can both listen to emitted domain events and trigger new commands based on specific business logic.

To make better use of what Event Sourcing can offer, we need an internal mechanism (Process Manager?) that can listen to the systems events and fire Commands back in (based on certain business logic).

Motivation

This will allow for a better and cleaner abstraction of the codebase by making better use of Event Sourcing principles.

This abstraction will also remove Application Layer logic away from agent_api_rest

Resources

https://martinfowler.com/eaaDev/EventSourcing.html
https://event-driven.io/en/saga_process_manager_distributed_transactions/

To-do List

  • Implement Process Manager
  • Remove Application logic out of agent_api_rest
@nanderstabel nanderstabel added the Enhancement New feature or improvement to an existing feature label Aug 26, 2024
@impierce impierce deleted a comment Aug 26, 2024
@M-Adam-Hus
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or improvement to an existing feature
Projects
None yet
Development

No branches or pull requests

2 participants