Comparison of Microservice Current Limiting Fuse Downgrading Schemes
1. Thread pool isolation
advantage:
- Support queuing and timeout
- Support asynchronous call
Insufficiency: thread calls will generate additional overhead
Be applicable:
- Untrusted customer
- Limited fanout
2. Semaphore isolation
advantage:
- Lightweight
- No extra overhead
insufficient:
- Does not support task queuing and active timeout
- Does not support asynchronous calls
Be applicable:
- Trusted client
- High fan-out (gateway)
- High frequency and high speed call (cache)