nand2 / libvmod-throttle

Varnish: Reject or delay requests after given tresholds are reached. (Think API rate limit, or per-ip MISS rate limit)
Other
100 stars 22 forks source link

Redis support #5

Closed syphernl closed 4 years ago

syphernl commented 11 years ago

It would be awesome if Redis could be used to store the data. This would make it possible to running multiple Varnish instances (on multiple servers) which share the same values, otherwise it would mean that every node has their own limits.

Redis has atomic increments, so that should be safe to use.

nand2 commented 11 years ago

That would indeed be awesome! Unfortunately I don't have the time to work on this ATM, but any contributions are welcome -- as long as both with-redis and without-redis modes work independently :)