Rate limiter middleware for toa.