pullpanda
an ai code-review github app that leaves inline comments with one-click fixes.
- hmac-verified webhooks feed a bullmq queue and a claude structured-output pipeline that drops any finding outside the diff; reviewed its own 491-file pr in 26s for $0.22
- load-tested intake at 1,800 webhooks/sec (p99 72ms) and 292 reviews/sec per worker, which exposed a billing-quota race fixed with postgres advisory locks
typescript · bun · elysia · bullmq · postgres · redis · claude api · next.js
that's the real bug the load test found. commit the fix.
check-then-insert race. two deliveries can both read used = 29 before either inserts, so the installation blows past its quota. take a per-installation advisory lock inside one transaction.