Profile Photo

Decomposition pattern

Created on: Sep 25, 2024

Decomposition Pattern: The Decomposition Pattern is a general approach to breaking down complex problems into smaller, more manageable subproblem.

This can be done mainly by two ways.

  1. Business-Driven Decomposition: Here we break down monolithic application into smaller microservices based on business capability. For example an e-commerce application can be broken down into i. order service ii. product service iii. account iv. login v. payment vi. billing
  2. Domain-Driven Design ( DDD ): Here We break application using real world business domain. for example in e-commerce application i. We have order domain which can break down in order tracking, order placement ii. payment domain which can be split into forward and backward payment