Assume I have this queue.
<queue>
<name>Update-total-value</name>
<rate>30/m</rate>
<bucket-size>2</bucket-size>
</queue>
If I get a million requests on that second, I just need to process two tasks(One is enough, But just trying to be in safer side) and ignore everything else.
I understood that if I implement the above queue, It processes 2 tasks first and 30 for every minute! And no task will be lost. My requirement is to process the first two and lose all other tasks.
Please advise how to achieve this?
Thanks, Karthick.