- Belmont, CA
- http://paultarjan.com
- @ptarjan
Highlights
Block or Report
Block or report ptarjan
Report abuse
Contact GitHub support about this user’s behavior. Learn more about reporting abuse.
Report abusePinned
-
-
-
sorbet/sorbet-typed Public
A central repository for sharing type definitions for Ruby gems
-
-
-
1
# Scaling your API with rate limiters23The following are examples of the four types rate limiters discussed in the [accompanying blog post](https://stripe.com/blog/rate-limiters). In the examples below I've used pseudocode-like Ruby, so if you're unfamiliar with Ruby you should be able to easily translate this approach to other languages. Complete examples in Ruby are also provided later in this gist.45In most cases you'll want all these examples to be classes, but I've used simple functions here to keep the code samples brief.

