가이드
가이드 하나에 구체적인 장애 하나. 무엇이 깨지고 왜 그런지, 실제 코드로 어떻게 고치는지, 그리고 어떤 모듈이 이미 그것을 담고 있는지.
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 자체 레퍼런스는 문서에 있습니다.