10 transactions are coming first second itself

As per https://community.apigee.com/questions/50274/how-to-make-count-as-configurable-in-spike-arrest.html

Can anyone guide me to prepare a javascript for the same

10 transactions are coming in first 10 seconds itself to throttle..

0 4 93
4 REPLIES 4

Could you please elaborate more on what are you looking for exactly? Do you want to handle the TPS in the javascript instead of spike arrest and quota policy?

Yes TPS in javascript..

Please dont try and reimplement out of the box policies in javascript.

The out of the box policies should already work for your use case, and will be more performant for high traffic than trying to reimplement this using Javascript.

Please give me a hint atleast...