What I want to have:
{
points: 10,
duration: 10,
blockOnConsumed: 15, // new
blockDuration: 60,
inMemoryBlockOnConsumed: 15,
inMemoryBlockDuration: 30,
}
I want to block only after 15 requests, but update the counter value up to 15 in the storage.
It's not the same as inMemoryBlockOnConsumed and inMemoryBlockDuration.
This is necessary when more than one service instance is used. Then the block duration could be taken from the storage and immediately switched to working in memory after the first request.
What I want to have:
I want to block only after 15 requests, but update the counter value up to 15 in the storage.
It's not the same as
inMemoryBlockOnConsumedandinMemoryBlockDuration.This is necessary when more than one service instance is used. Then the block duration could be taken from the storage and immediately switched to working in memory after the first request.