Coupling
How much one part of a system depends on another. High coupling: changing one forces changing the other.
Example
2 services reading the same table are coupled: changing 1 column forces touching both.
Test yourself: Coupling
Monoliths and microservices
A service only calculates shipping cost and nothing else. Which microservice trait does it show?
It does 1 single thing: calculate shipping. If the rate changes from 200 to 250, only that service is touched and none of the other 9.
Microservices done right
Having 2 microservices share the same database is a best practice.
If 2 services share 1 table, changing 1 column forces changing and deploying both.
0/2
â–¶ Play