指南
每篇指南对应一个具体故障:哪里出错、为什么出错、用真实代码如何修复,以及哪个模块已经内置了该修复。
Stripe delivers events at least once, so your handler will run twice on the same event. The fix is an event table written inside the same transaction as the business data.
A select-then-update queue hands the same row to two workers. One statement with FOR UPDATE SKIP LOCKED claims a job atomically, and a lock expiry keeps a dead worker from pinning it forever.
A presigned PUT fails when the browser sends a header the signature did not cover, or a different content type. Read SignedHeaders from the URL, sign exactly what the browser will send, and check the object afterwards.
Postgres full-text search breaks the first time someone types an ampersand or a stray quote, because to_tsquery takes an expression, not text. websearch_to_tsquery never raises, and prefix search needs a different query.
GenPM 本身的参考文档在文档。