DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

AurΓ©lien Delogu
AurΓ©lien Delogu

Posted on

Code snippet: a simple rate limiter

This code snippet is different from my previous one: A performant async queue. Even if it works quite the same way.

The big difference is that it runs functions after some wait time, instead of waiting some time after functions have finished to run.

There's also an NPM package: dumb-limiter.

Top comments (0)

Join us at DEV Want to join the conversation?
Β 

It's easy! Become a DEV member to follow this post, comment, and more.