Sometimes middleware need to keep track of state to be useful. In this example, we extend the
Middleware example with another middleware that requires a Key Value
Store.
Now if a client sends more than 10 requests in one second, Shield will automatically send a 429 Too Many Requests
response. Note that we’ve placed the rate limiting middleware in front of the auth middleware, so that even requests
that do not have the appropriate authentication will be rate limited.