Monday, December 24, 2018

Application Logic vs. Domain Logic


Application Logic is higher level logic at application level. 

It has use case level info. 

It contains coarse gain level steps to perform the business use cases.

It involves orchestrations of Domain Logic, Persistence Logic, CCC Logic, Infrasstructure Logic 

It involves composition of Domain Logic, Persistence Logic, CCC Logic, Infrasstructure Logic 

This class is like puppet master that hold reference to all related objects to complete the execution of the Use Case. 

It is like Traffic Police Warden

Orchestra Master Example. 

Traffic Warden. 

Higher Level things. 

Otherwise execution of business operation will chatty or fine grained. 

It also involves invoking other CCC libraries like Logging, Tracing, Exception Handling, etc. 

Most of it is related to the CCCs. 

These are application level concerns. Use Case level Concerns 

Application Services contain this logic. 

This class contain the high level algorithmic logic. 

High level methods calls. 

Business operations is divided into small steps or methods and these methods are called inside the Application Service. 

Domain Logic is the low level business rules of the underlying domain. 

No comments:

Post a Comment