Assumptions:
When the budget manager is discarding unsuccessful bids, following the receipt of a success, it can use the values of the failures to adjust its bidding strategy.
Solution:
It also maintains a list of time + amount for each bid it makes.
When the Redis manager receives notification of a successful bid, it sends notification of the amended real budget, and the amount and time of the successful bid to the machine charged with make bids for that budget.
It can then discard all outstanding bids prior to the successful one; and apply those still outstanding to the amended real budget to obtain a new local copy.
This should allow the mechanism to bid as often as possible, whilst keeping the outstanding bid totals within the specified budget (or budget + wiggle).
In reply to Re: A distributed design challenge
by BrowserUk
in thread A distributed design challenge
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |