ptarjan - Overview

1

# Scaling your API with rate limiters

3

The 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.

5

In most cases you'll want all these examples to be classes, but I've used simple functions here to keep the code samples brief.