java.lang.Object
io.github.bucket4j.distributed.proxy.optimization.delay.DelayOptimization
All Implemented Interfaces:
Optimization

public class DelayOptimization extends Object implements Optimization
Optimization that can serve requests locally without synchronization with external storage until thresholds are not violated. This optimization is based on top of BatchingOptimization, so multiple parallel request to same bucket are grouped.

Usage of this optimization can lead to temporal overconsumption because the synchronization with external storage is performed periodically when thresholds are violated.

See Also: