Service governance
Last updated
Was this helpful?
Last updated
Was this helpful?
Rate limit and fallback
)
Circuit breaker and timeout
TODO: Microservice challenges
Microservices management
Definition: Double write. How to guarantee the ACID of two writes
Use case
Data replication
Database migration
Implement CQRS or remove join from database
Implement distributed transactions
Approaches
Transactional outbox
Flowchart
Implementation: Killbill common queue
CDC (Change data capture)
Flowchart
Implementation:
Alibaba Canal (recommended)
Redhat Debezium
Zendesk Maxell
Airbnb SpinalTap
Use case
N+1 problem
Data volume
Performance
Approaches
CQRS
Flowchart
Possible problems: Eventual consistency
Possible solutions:
Definition
Velocity slow
Hard to continue scale vertically
Independent deployment capability
Steps to migration
Key difficult points
Understand the APIs
Database migration
Incremental and rollbackable
Data
Use data distribution and remove join
Example
StichFix - Scaling your architecture with services and events
Weibo implements service mesh:
Netflix Application gateway:
RPC vs message queue based:
Overview:
Istio:
Load shedding at Netflix:
Auto scaling:
Netflix Load balancing:
Netflix failover:
Netflix DDOS simulation:
Netflix Chaos:
Netflix cluster management:
Netflix resource scheduling:
Netflix automated failure testing:
Netflix Chaos monkey:
Netflix open source projects:
知名博主的分布式系列:
Netflix's microservice architecture: