admin管理员组文章数量:1022949
just a quick question in order to get some idea of what are the standards and what can be implemented.
AS-IS: I have a webpage with a button. When I click on a button a request gets sent : A POST request and I return a json with a message : Request sent
If I click again the button I send the request again.
TODO : I click on the button and the request gets sent. the json shows me : Request sent If I click again I get a 429 not a 200 and the json says : You already did the request please wait 5 minutes.
My question is :
Is there any any spam standard method to do so or I just have to come up with my own fix like implementing some ConcurrentHashMap or use cache or check the time and based on that return a different http response with a different body ?
Hope the question makes sense.
Thx in advance for all the ideas and help.
Wish you a good day.
just a quick question in order to get some idea of what are the standards and what can be implemented.
AS-IS: I have a webpage with a button. When I click on a button a request gets sent : A POST request and I return a json with a message : Request sent
If I click again the button I send the request again.
TODO : I click on the button and the request gets sent. the json shows me : Request sent If I click again I get a 429 not a 200 and the json says : You already did the request please wait 5 minutes.
My question is :
Is there any any spam standard method to do so or I just have to come up with my own fix like implementing some ConcurrentHashMap or use cache or check the time and based on that return a different http response with a different body ?
Hope the question makes sense.
Thx in advance for all the ideas and help.
Wish you a good day.
本文标签: spring bootAvoiding the SPAM while sending a specific request using Java or SpringBootStack Overflow
版权声明:本文标题:spring boot - Avoiding the SPAM while sending a specific request using Java or SpringBoot - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745516433a2154080.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论