I am working on a microservice and I need some help to decide which layers my microservice should have. I come from the web applications worlds in which we had the following layers:
1.- Going from the client to the Database:
Controller > Facade > Services > DAO
2.- Going from the Database to the client:
DAO > Services > Facade > Controller
The question is, when creating a microservice there are obviously some layers that might not be necessary. What are the main layers that you would add to your microservice?
Aucun commentaire:
Enregistrer un commentaire