loading...
markdown guide
 

Question: Could a Service be taken for the FacadeApi. Every CRUD-Business Use case is handled in the service (sample: EmployeeService = EmployeeApi)

 

The purpose of Facade is to abstract away business logic (core layer) from presentation layer. When you say EmployeeService it could do almost everything around Employee (transformation, validation, etc) and EmployeeApi has very well defined purpose - purely fetch data from API (whatever it is REST, GraphQL, WebRTC) and give you back an Observable. Separation of concerns and Single responsibly principle are key aspects for scalable and reliable software.

Classic DEV Post from Aug 14 '19

What Does Your IDE/Code Editor Look Like?

Bartosz Pietrucha profile image
Fullstack engineer, https://angular-academy.com founder, speaker, trainer, software consultant. I can help you with Angular and reactive architecture.

πŸ‘‹ Hey dev.to reader.

Do you prefer sans serif over serif?

You can change your font preferences in the "misc" section of your settings. ❀️