Reader

How to segregate and name application services in DDD?

| Software Engineering Stack Exchange | Default

Below is an example scenario that can be used to illustrate your answer.

Let's say there is a CoffeeMachine aggregate with a set of methods similar to the following:

  1. Methods used by admins.

    • AddIngredient
    • AddIngredientContainer
    • RefillContainers
    • AddBeverage
  2. Methods used by customers.

    • CustomizeBeverage
    • PurchaseBeverage

The users of the program will interact with this aggregate. What would be the classes and methods in the Application layer?