BT San Technology

26 October 2026

Webhooks that never arrive or arrive twice: designing retries and reconciliation between systems

2 min read · Websites and web apps

Illustration: a finger pointing at an orange-highlighted row in an event list on a laptop, with a network switch and blue cables behind
AI-generated illustration

This guide is available in Thai only.

รับเหตุการณ์ต่างจากทำงานปลายทางเสร็จ รหัสเหตุการณ์ ลายเซ็น และการตรวจคำขอซ้ำ การลองใหม่ ลำดับข้อมูล และข้อมูลที่ต้องตรวจชดเชย

ขั้นตอนนำไปใช้

  1. กำหนดสัญญาข้อมูลและหลักฐานรับคำขอ
  2. เก็บสถานะเหตุการณ์ก่อนประมวลผลที่เหมาะกับระบบ
  3. ทดสอบส่งซ้ำ ผิดลำดับ และบริการปลายทางล่ม
  4. ทำหน้ารายการผิดพลาดและงานกระทบยอดตามรอบ

ตัวอย่างผลส่งมอบ

ผลส่งมอบ: แผนรับเหตุการณ์สถานะจัดส่งพร้อมวิธีกู้รายการตกหล่น

ประโยชน์

ช่วยให้เห็นรายการตกหล่นและแก้ปัญหาเป็นรายเหตุการณ์

ข้อจำกัดและข้อควรระวัง

เงื่อนไขการส่งซ้ำและลำดับเหตุการณ์ขึ้นกับผู้ให้บริการ ต้องตรวจเงื่อนไขจริงเสมอ

แหล่งอ้างอิงเริ่มต้น

  • Stripe — Webhook events
  • Stripe — Idempotent requests

References

  1. Stripe — Webhook events (accessed 2026-11-21)
  2. Stripe — Idempotent requests (accessed 2026-11-21)

Add us on LINE

Scan with the LINE app on your phone

QR code to add LINE @Bankoos

LINE ID: @Bankoos

Open LINE on this computer