Skipping Application Services
Explore how to consciously skip application services for simple CRUD use cases within hexagonal architecture. Understand the trade-offs of implementing incoming ports directly in outgoing adapters, the role of a shared domain model, and when to reinstate application services to maintain clean, maintainable code.
We'll cover the following...
We'll cover the following...
Aside from the incoming ports, for certain use cases, we might want to skip the application layer as a whole, as the figure below shows.
Skipping application services
Here, the AccountPersistenceAdapter class within an outgoing adapter directly implements an incoming port and replaces the application service that usually implements an incoming port. ...