Avoiding Duplicate Record Errors in Rails Under Concurrency
Two concurrent requests can both pass an exists? check and race to insert the same row; here is why, and how to write idempotent Rails controllers.
254 posts. Browse by category or tag, or use search.
Two concurrent requests can both pass an exists? check and race to insert the same row; here is why, and how to write idempotent Rails controllers.
npm ci is not the script-free install it looks like; it still runs prepare scripts for Git-based dependencies, which broke Husky in CI.
When async updates to the same record can finish in any order, the oldest write can silently overwrite the newest one; here is how to stop that.
Poetry and uv solve overlapping problems in Python dependency management; here is where each one wins, and how to use them together.
How deadlocks form in MySQL and PostgreSQL under concurrent updates, and the trade-off between foreign key integrity and write throughput.
Two services sharing a database can pass every test and still fail in production if their DB configuration silently drifts apart.
Two ways to avoid CORS errors in local React development: the package.json proxy field for one backend, or http-proxy-middleware for several.
WARP can report itself as off while Zero Trust still routes your Mac's traffic; here is how to check DNS, ASN, and DoH to find out for sure.
A launchd-scheduled shell script that detects when Cloudflare WARP reconnects on a company-managed Mac and sends a desktop notification.
Compares Ruby's byebug, Python's pdb, and PHP's Xdebug side by side, with the core commands and a working example for each language.