|
|
|
|
|
by spdy
4077 days ago
|
|
Its actually quite simple as example for the promo code the code looks like this: 1. Code sent. 2. Check if valid. 3. Redeem code. 4. Invalid code. Now if i send 10 requests at the same time with the same code maybe 4-6 will hit the code part after 2. And your window of opportunity is the time it takes to go from 3 to 4.
Sometimes certain tasks are put inside async queue, you have a slight delay to your database server or you need to wait for db replication to kick in. Because normally there is no code part to recheck how often this code was used. |
|