hoophq / sequence

Immutable, scalable, and easy to use ledger service.
Apache License 2.0
493 stars 31 forks source link

Multiple concurrent requests results in incorrect 200 responses #19

Open lnmunhoz opened 4 years ago

lnmunhoz commented 4 years ago

If you send multiple concurrent requests like:

POST transactions andrios -> lucas (amount 5) 
POST transactions andrios -> lucas (amount 10) 
POST transactions andrios -> lucas (amount 15) 
POST transactions andrios -> lucas (amount 20) 
POST transactions andrios -> lucas (amount 25)

You'll get multiple 200 OK responses, but only one of this transactions actualy succeeded.