saroh@lemmy.world to Ye Power Trippin' Bastards@lemmy.dbzer0.com · 1 year agoOblivious world @ Lemmy world modlemmy.worldimagemessage-square120fedilinkarrow-up1283arrow-down121file-text
arrow-up1262arrow-down1imageOblivious world @ Lemmy world modlemmy.worldsaroh@lemmy.world to Ye Power Trippin' Bastards@lemmy.dbzer0.com · 1 year agomessage-square120fedilinkfile-text
minus-squareidunnololz@lemmy.worldlinkfedilinkarrow-up14·1 year agoAnother popular solution I see is to have the client generate a UUID when posting. Then the server can very easily tell if a request is a duplicate.
minus-squareJackbyDev@programming.devlinkfedilinkEnglisharrow-up6·1 year agoI’ve seen this concept called idempotency tokens. I thought it was common but a quick search didn’t find any articles on it so maybe the name is not that common.
minus-squareJackbyDev@programming.devlinkfedilinkEnglisharrow-up1·1 year agoNonce is the opposite. It’s never supposed to be used more than once, right?
Another popular solution I see is to have the client generate a UUID when posting. Then the server can very easily tell if a request is a duplicate.
I’ve seen this concept called idempotency tokens. I thought it was common but a quick search didn’t find any articles on it so maybe the name is not that common.
Nonce, maybe?
Nonce is the opposite. It’s never supposed to be used more than once, right?
Yeah, that’s the proper fix.