Sitemap

Microservices Patterns: API Composition and CQRS Patterns

4 min readJul 8, 2023

--

The API Composition Pattern: Implement a query that retrieves data from several services by querying each service via its API and combining the results. [1]

Press enter or click to view image in full size
Figure 01 — API Composition Pattern

The CQRS Pattern: Implement a query that needs data from several services by using events to maintain a read only view that replicates data from the services

Press enter or click to view image in full size
Figure 02 — CQRS Pattern

--

--

Crishantha Nanayakkara
Crishantha Nanayakkara

Written by Crishantha Nanayakkara

Enterprise Architect @ FAO (UN) | Former CTO, ICTA Sri Lanka