martin ↑
@martin
maybe a stupid question but is a database single threaded working on a next js app where people spend gold coins for items and I’m getting randomly nervous that people will somehow hack the API and spam it and double spend or something
4 replies
2 recasts
4 reactions
martin ↑
@martin
solution might be to do it onchain funnily enough but I don’t want to spend on fees
0 reply
0 recast
3 reactions
JB Rubinovitz ⌐◨-◨
@rubinovitz
Make sure the database you’re using is ACID compliant https://en.wikipedia.org/wiki/ACID?wprov=sfti1#
1 reply
0 recast
1 reaction
MJC
@mjc716
depending on setup, there could be race conditions that result in double spend if you don't architect properly
0 reply
0 recast
1 reaction
Tony D’Addeo
@deodad
use serializable transactions
0 reply
0 recast
0 reaction