this post was submitted on 13 Jun 2023
10 points (100.0% liked)
Lemmy.World Announcements
29042 readers
1 users here now
This Community is intended for posts about the Lemmy.world server by the admins.
Follow us for server news ๐
Outages ๐ฅ
https://status.lemmy.world/
For support with issues at Lemmy.world, go to the Lemmy.world Support community.
Support e-mail
Any support requests are best sent to info@lemmy.world e-mail.
Report contact
- DM https://lemmy.world/u/lwreport
- Email report@lemmy.world (PGP Supported)
Donations ๐
If you would like to make a donation to support the cost of running this platform, please do so at the following donation URLs.
If you can, please use / switch to Ko-Fi, it has the lowest fees for us
Join the team
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Is that because of some kind of event sourcing, though? That's not an uncommon way of handling these things.
Yes, of course it makes sense to do it that way. The issue is you can literally click the up arrow repeatedly as fast as you can and create some database load.
Usually, at least from my experience, it is good practice to put some logic client-side to prevent a user from repeatedly clicking a button accidentally (or on purpose -- hey, why did I get a double post?!). Even a quarter second delay can help.
Yeah, that kind of abuse prevention really shouldn't be client side at all. It's one thing to prevent a user accidentally causing harm, but if a bad actor can deliberately do it then we've got bigger problems.