Microservices
A way to build a system as many small, independent services, each with 1 job, deployed separately.
Example
A store with 4 microservices: users, catalog, payments and shipping, each with its own team.
Test yourself: Microservices
Monoliths and microservices
In microservices, each service stores its own ___.
1 database per service: with 5 services there are 5 databases, and nobody touches another's.
Monoliths and microservices
With microservices, testing the whole system is easier than with a monolith.
To test 1 purchase you must bring up 5 services with their 5 databases, not 1 app.
Microservices done right
Payments needs a user's email. How does it get it?
Through the API: if users changes 1 column of its table, payments doesn't notice and keeps working.
0/3
â–¶ PlayLessons that use it
Message brokers
A middleman for messages
Monoliths and microservices
1 block or many pieces
Microservices done right
Microservices without traps
API Gateway
1 single front door
GraphQL and gRPC
Other ways to talk to an API
Service discovery
Where is that service?
SSL, TLS and mTLS
Talk without anyone listening
The design steps
From data to bottlenecks
Designing WhatsApp
2 billion messages a day
