Microservice and Containerization Patterns > Fundamental Microservice and Container Patterns > Micro Task Abstraction
Home > Design Patterns > Micro Task Abstraction
Micro Task Abstraction (Erl, Naserpour)
How can single-purpose logic with specialized processing requirements be separated and governed independently?
Grouping single-purpose logic with specialized processing and deployment requirements together with other types of logic that does not have such requirements can compromise the former’s ability to consistently fulfill its requirements.
An individual unit of single-purpose logic with specialized processing and deployment requirements is separated into a functional context with a narrow functional scope to become the basis of a microservice.
The pattern is applied during a pre-design analysis stage. Subsequently, each microservice architecture can be individually tailored in support of fulfilling the specialized processing and deployment requirements.
The logic is separated into granular, single-purpose functions (or “micro-tasks”) that form the basis of individual microservice implementations.
By applying the Micro Task Abstraction pattern we identify single-purpose tasks that form the basis of microservice deployments.
This pattern is typically applied during the pre-design analysis stages, as explained in the complete pattern description.