Never sell the same room twice: a PostgreSQL EXCLUDE constraint and the concurrency tests that prove it. A small, runnable extract from a hotel booking platform, using pg and the Node.js built-in test runner. Full write-up in the case study at veritydigital.ie.
nodejs testing sql postgresql concurrency race-condition btree-gist database-constraints double-booking exclude-constraint
-
Updated
Oct 2, 2026 - JavaScript