Here's scenario(sorry but this is going to be theoretical question).
I am developing a e-commerce web application struts2 which in normal case handles 5000-6000 users, but there are few occasions when number of users may go above 600k.
I have a web form consisting of more than 25 fields I have few upload fields for images and documents, when the server is heavy on load form takes more than 5 minutes to get a response.
So here's an issue I am facing while the request is getting processed consider few users are impatient and may click submit button again and again in such case I am unnecessarily increasing the load. I want to block all other duplicate requests.
So How should I tackle this situation?
I have heard of interceptors token and tokenSession
<interceptor-ref name="token"></interceptor-ref>
<interceptor-ref name="tokenSession"></interceptor-ref>
But I guess these interceptors only handles refresh and Back button based duplicate form submission issue. in fact, I have tried the implementation mentioned in below link.
http://www.journaldev.com/2281/struts2-token-interceptor-to-handle-double-form-submission-problem
[Edit] :
The forms after user login, should have a token value which should change for every refresh of the page and it should be validated at server side whether its server generated valid token for that specific user or not or proper captcha implementation should be there. This is to avoid, our form submission from external websites. Hope you understood.