Hacker Times
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
soontimes
17 days ago
|
parent
|
context
|
favorite
| on:
We replaced Redis with MySQL for inventory reserva...
Can you clarify why this involves no locking? There can still be 2 actors fighting for the same row.
isignal
17 days ago
[–]
Two concurrent deductions of inventory do contend but only during the actual DB update. That is just normal DB locking for SQL isolation levels. The blog refers to explicit locking by the app, which is where skip locked comes in.
soontimes
17 days ago
|
parent
[–]
Yes, the point is to spread contention across multiple rows. They also mention this in the beginning of the article
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: