Can the Crosscutting layer recognize my Dominion layer?

Asked

Viewed 460 times

2

My doubt is very simple.

Can my Crosscutting layer know my Domain layer? since the Repositorio(Data) layer knows it both being inside the Infra Layer.

Excuse the question, because I’m still new to the concept of DDD, I’m using the same model I saw on video by Eduardo Pires. Thank you

1 answer

1

Yes. Let’s understand the concept.

Cross-Cutting is an editing technique most often used in films to establish actions occurring at the same time in two different locations. In a cut, the camera goes from one action to another, which may suggest the simultaneity of the two scenes - but this is not always the case.

In computer science, cross-Cutting Concerns are aspects of a program that affect other parties. These Concerns can often not be decomposed clearly from the rest of the system, either in design and implementation, and can result in a dispersion (code duplication), winding (significant dependencies between systems), or both.

In short, the Cross-Cutting layer is widely used for IOC (Dependency Injection) modules, and these modules will need to know about your domain and other layers to make the IOC.

In his video example of Eduardo Pires he used for this.

The DDD, says that the development is all directed to the Domain, IE the other layers can see the domain, but not the reverse.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.