java - Mechanism to prevent "flood" for a websocket -


i writing web application makes intense use of websockets (standard jsr implementation).

through websocket exchange information.

a client sends request (json) server, server decodes message , sends info (json).

how can avoid maliciously client flood server requests. example want limit number of requests @ 10 every 5 seconds (what mean request json message client sending in order information).

is there built-in-way of doing or have write own mechanism ?


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -