Pattern 70 / CACHE
Singleflight
Use this when Collapsing identical work inside one process.
- Pressure
- Collapsing identical work inside one process
- Mechanism
- Use an in-process keyed promise/future so only one execution computes a value
- Toll
- Only helps per process unless paired with distributed coordination