Process manager VS DDD Aggregate

DDD Aggregate is responsible for encapsulating business logic for the component. But we need to be aware that when we are implementing business logic for a long time process that is coordinating many components, like subscription trial, we have another building block for this. It’s a process manager. Below I pointed out some differences between … Read more

My structure for DDD component

Post in answer to a StackOverflow question. You can find code used in this example here. Package structure In component package I use this modules as starting point. migrations/ app.py commands.py events.py exceptions.py repository.py service.py entity.py Commands A command is always DTO and as specific, as it can be from a domain perspective. I aim to create … Read more