Skill 4.1.5

Implement refactor strategies such as microservices decomposition, serverless adoption, and incremental modernization patterns (for example, strangler fig pattern).

Key Concepts

Signs of tight coupling: synchronous calls between components, shared databases, batch jobs blocking user traffic, and deployments requiring the whole monolith. Decouple with SQS queues, SNS/EventBridge events, API Gateway facades and separate data stores per service.

Use the strangler fig pattern: route specific paths (ALB rules or API Gateway) to new services while the monolith keeps handling the rest, gradually replacing it.

The strangler fig pattern puts a routing layer (API Gateway, ALB rules or CloudFront behaviours) in front of the monolith and redirects one capability at a time to new services, until the monolith can be retired; an anti-corruption layer translates between old and new models. Serverless adoption replaces components with Lambda, Step Functions, DynamoDB and EventBridge where they fit, and events published from the monolith let new services react without tight coupling.