tarpit actions based on a key
tarpit is a package that allows you to exponentially stall responses based on the frequency of a keyed
request. for example, if a specific IP requests an endpoint too frequently, you can use tarpit to
stall the handler sending a response back, until the rate of request is reduced.
npm install tarpit --save
see this example.
tarpit uses redis. you'll need to have a redis-server running for tarpit to work.
