nealio82 / absolute-beginners-guide-to-ddd-with-symfony

Example application to go along with the "Absolute Beginner's Guide to DDD with Symfony" presentation
117 stars 22 forks source link

Wrong interpretation of the concept "Bounded Context" #2

Open mavik opened 2 years ago

mavik commented 2 years ago

Nealio82, thanks for you work, but I'm afraid that you understand the concept "Bounded Context" in wrong way. In src/AcmeVet/Scheduling/Domain/Appointment/Appointment.php I see "Each Bounded Context will have one Entity class". But Bounded Context can include many entities. Furthermore, Bounded Context is not about entities, it's about Ubiquitous Language. In different Bounded Contexts the same word can has different meanings, we can have entities with the same name in different Bounded Contexts. Classical example is an order, it is not the same for a client (public frontend), for the store and for delivery service. These are different Bounded Contexts.