I have tried to implement flood protection in an node app. I need to limit spamming by dropping messages faster than 1 per second. My app is based on this:
https://github