Limiting
Client Server Database
[ ]----------->[ ]---------->[ ]
[ ]<-----------[ ]<----------[ ]
Rate limiting protects DOS attacks.
Rate limiting strategies:
You can use a small hash table of user -> time accessed, and use that to rate limit.
Redis is a perfect use case for this, as you can uniquely identify each user.
We can use redis for this, with a master slave architecture to remove the single point of failure.