Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I’ve found the AIMD algo (additive increase, multiplicative decrease) paired with a token bucket gives a nice way to have a distributed set of processes adapt to backend capacity without centralized state.

Also found that AIMD is better than a circuit breaker in a lot of circumstances too.

Golang lib of the above https://github.com/webriots/rate



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: