Using Redis to implement rate limiting in a Ruby application
Redis is an in memory data store that has a variety of applications. One of which can be to keep track of the number of requests a user has made in a given timeframe. If they exceed a quota that has been specified we can then raise an error or respond accordingly. In this post I will outline a class that accepts a unique identifier (a string that will be a reference to a specific user or account).