Why Every API Needs a Clockby@chintant
540 reads

Why Every API Needs a Clock

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

In the API economy, the APIs are the shared resource for all your customers. Not all APIs and it’s callers are the same, but not all APIs are called by a variety of actors. API rate-limiting choices are dictated by multiple factors unlike for TCP, however the basic premise still remains the same - use a clock to count and limit access to a shared resource. We map “what do you count” to a token? Counting is then performed using redisate a new granularity can be found in the article on the actual code.

Company Mentioned

Mention Thumbnail

Coin Mentioned

Mention Thumbnail
featured image - Why Every API Needs a Clock
Chintan Thakker HackerNoon profile picture

@chintant

Chintan Thakker

Startup Hacker, Product Builder at Saaras


Receive Stories from @chintant

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!