I'm studying DDD I have an application with 4 layers being them
- Presentation
- Application
- Domain
- Infra
In the presentation layer I search data via Ajax in the DB, but I have a question as to how to do it. Do I need to make ajax go through all the layers? What I have noticed a loss of performance in the application ... If not, what is the best way to do it?