Get the latest tech news

Fair: A Go library for serving resources fairly


A Go library for serving resources fairly. Contribute to satmihir/fair development by creating an account on GitHub.

Since the state is stored in a multi-level Bloom Filter style data structure, the memory needed is constant and does not scale with the number of clients. When properly configured, FAIR can scale to a very large number of clients with a low probability of false positives and a near zero probability of persistent false positives thanks to the hash rotation mechanism that regularly rehashes clients to avoid any correlated behavior longer than a few minutes. For every incoming request, you have to pass the flow identifier (the id over which you want to maintain fairness) into the tracket to see if it needs to be throttled.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of library

library

Photo of resources

resources

Photo of Fair

Fair

Related news:

News photo

ServiceNow introduces a library of enterprise AI agents you can customize to fit your workflow

News photo

Australian air traffic controller found asleep under a blanket was working their 7th night shift in 9 days — “likely due to an underlying lack of resources within Airservices Australia”: investigators

News photo

How to sort your library in exactly 51,271 steps