Great success! See Kompassi for the current implementation.
prototype for SELECT FOR UPDATE SKIP LOCKED based ticket sales solution
- python 3.12+
- hatch (
pipx install hatch,brew install hatchetc.) - postgresql (uses
PGHOST,PGUSERetc. env vars, see docs)
currently anything exciting happens in the tests/test_contested.py test case that inaccurately simulates thousands of users fighting a battle royale for tickets
hatch test -- -s
NOTE: uses schema emticketen_test for tests, will be wiped if exists