Patterns of Evolution from Monolith to Microservices
summary
Shows step-by-step moves from monolith to event-oriented microservices: build a microservice that first uses an anti-corruption layer instead of a DB, then add a DB and an event retrofit to sync; roll traffic with canary releases via a load balancer; extract services by change frequency using the strangle pattern; add service mesh (Consul) sidecars for mTLS, routing, retries and tracing; implement API composition + parallel calls for queries; use a persistent saga orchestrator (notifications example) or choreography with a message broker; apply CQRS/event sourcing and materialized views.
AI-written summary · about
chapters (35)
- 0:00Intro
- 0:12Sounds familiar?
- 1:38What is a microservice?
- 2:03Defining the limits of each service
- 2:42Requirements for using microservices
- 3:27Referred Domain Driven Design concepts
- 4:02Select a context and a use case
- 4:36Step 2 - Create the microservice without database
- 4:46Replace the database with a ACL
- 5:03Synchronize the monolith and microservice
- 5:41Canary release
- 6:00Redirect traffic to the microservice
- 6:12Increase traffic to the microservice
- 6:23Stop the traffic to the monolith
- 6:47Identify key contexts
- 7:09Replace the contexts one by one
- 7:26Let's not underestimate the cost of change
- 8:10A new functionality brings challenges
- 8:42With the scale the challenges increase
- 8:59In a microservice
- 9:21In a complete ecosystem
- 10:12When to use service mesh?
- 11:23Step 1 - Create APIs composer
- 11:54Step 2 - Parallelize and order calls
- 12:18Unavailability problem with REST
- 12:45Circuit breaker
- 13:24Step 1 - Configure the thresholds
- 13:54Step 2 - Define fallback response
- 14:24Complete the flow asynchronously
- 16:19Saga orchestrator
- 17:44Saga choreography
- 18:55Comparison
- 20:45A real example
- 21:46Trade offs
- 22:25To keep in mind . Not everything has to be microservices, it is necessary to understand the
related talks
37mEvolutionary Architecture & Microservices
27mThe technical journey to microservices
31mMonolith to Microservices: A Guide to Seamless Transitions
47mFrom Monolith to Microservices With the Strangler Pattern
20mMonolith to Microservice: Story of a Transformation...
43mMicroMonolith - Top anti-patterns of distributed systems
28mThe journey from monolith to microservices
52mBuilding monolith applications that could scale to microservices..
