Saturday, December 22, 2018

How to Design Application Services?

How to Design Application Services
Following are the Patterns for Patterns for Application Services

==============================================

For Simple Command & Queries AS
Simple CRUD AS
Feature is thin & simple
Patterns to structure High Level Logic
While dealing with
Simple CRUD Operation
Has Only Single Method Call Statement
No Orchestration Logic as there is only 1 Statement
Delegating Calls to Generic Repo/Custom Data Access Class
CCCs Logic Methods Calls as needed by App
Infrastructure Methods Calls as needed by App
Separate Patterns/Data Structures for Commands & Queries
CCCs and Infrastructure Details are encapsulated into their own Classes and Projects
Custom Data Access Class is injected by DI/IOC

===========================================

For Complex Command & Queries AS
Complex CRUD AS
Feature is fat and complex
Patterns to structure High Level Logic
While dealing with
Complex Domain Oriented Transactional CRUD Operation
Has Multiple Methods Call Statement
Orchestration Logic is there as Multiple Calls to Data Project
Delegating Multiple Calls to Custom Data Access Classes
CCCs Logic Methods Calls as needed by App
Infrastructure Methods Calls as needed by App
Separate Patterns/Data Structures for Commands & Queries
CCCs and Infrastructure Details are encapsulated into their own Classes and Projects
Custom Data Access Class is injected by DI/IOC


No comments:

Post a Comment