Event
Record การเปลี่ยนแปลงของ payment, game session, KYC check, bonus, player profile หรือ object อื่น
ตั้งการส่ง statuses และ events ระหว่าง systems ให้เชื่อถือได้ ตั้งแต่สร้าง message และตรวจ signature ไปจนถึง acknowledgement, redelivery และ error control
กำหนด ID, type, time, object, status และ related data
ส่ง event ผ่าน HTTPS พร้อม signature และ timeout ที่จำกัด
หลังตรวจสอบ ให้เก็บ event อย่างปลอดภัยแล้วส่ง successful HTTP response อย่างรวดเร็ว
Retry delivery ด้วย backoff และเก็บ undelivered events ไว้วิเคราะห์
Sender อาจ redeliver ดังนั้น receiver ต้องตรวจ source, acknowledge และ apply event แต่ละรายการเพียงครั้งเดียว
Record การเปลี่ยนแปลงของ payment, game session, KYC check, bonus, player profile หรือ object อื่น
Receiver ส่ง successful HTTP response หลังตรวจและเก็บ event อย่างปลอดภัย
Redelivery และ reconciliation ช่วยกู้ข้อมูลหลัง system ใด system หนึ่งไม่พร้อมชั่วคราว
Payload format แบบเดียวช่วยให้ verification, routing, duplicate protection และรองรับ event types ต่าง ๆ ง่ายขึ้น
Unique value ที่ระบบใช้รู้ว่าเป็น redelivery และค้น processing history
ชื่อที่ชัดเจนและคงที่ซึ่งระบุการเปลี่ยนแปลงที่เกิดขึ้นและวิธี processing
วันที่และเวลาที่ event ถูกสร้างใน format และ timezone ที่ตกลงกัน
Type และ ID ของ payment, player, round, application, bonus หรือ object อื่น
Version number ช่วยเปลี่ยน payload structure อย่างปลอดภัยโดยไม่กระทบ integrations ที่ทำงานอยู่
ID ของ original request, transaction, session หรือ chain ของ related actions
Brand, project, market, environment, provider และข้อมูลอื่นที่จำเป็นต่อ routing
ชุด fields ขั้นต่ำสำหรับประมวลผล change หรือทำ API request ต่อ
ก่อนเปลี่ยนข้อมูล receiver ตรวจ secure connection, signature, creation time และ unique event ID
ตรวจ signature จาก raw request body ก่อนเปลี่ยน JSON format
ปฏิเสธ request หาก event time อยู่นอกช่วงที่อนุญาต
ใช้ shared secret และ HMAC หรือ digital signature algorithm ที่ตกลงกัน
ยืนยันว่า event ยังไม่ถูก apply และเก็บ verification result
Sender ต้องแยก successful receipt, temporary error และ permanent rejection ส่วน receiver ต้องตอบเร็วและชัดเจน
ยืนยันว่า event ถูกตรวจและเก็บอย่างปลอดภัยสำหรับ processing ต่อ
อย่าทำ processing ที่ใช้เวลานานก่อนตอบ sender — ให้เก็บ event ก่อน
Retry delivery เมื่อเกิด temporary network error, unavailability หรือไม่มี response
เพิ่มช่วงห่างระหว่าง attempts ทีละขั้น เพื่อไม่สร้างโหลดเพิ่ม
เมื่อ attempts หมด ให้เก็บ event ไว้สำหรับ diagnostics และ manual processing
Operator สามารถ resend event ที่เลือกโดยไม่สร้าง operation ใหม่
ติดตามจำนวน attempts, responses, last error และ next delivery time
แจ้งทีมเมื่อ errors เพิ่ม attempts หมด หรือมี events ค้างใน queue
Receiver ต้องไม่สมมติว่าจะได้รับเพียงครั้งเดียวหรือเรียงลำดับเสมอ
ทดสอบ successful delivery, invalid signature, duplicates, slow response, out-of-order events และ failure recovery
Modified message, unknown key, expired timestamp และ unsupported algorithm
Event เดิมเข้ามาหลายครั้งทั้งก่อนและหลัง processing เสร็จ
Receiver ตอบช้าเกินไป connection หลุด หรือ acknowledgement ไม่ถึง sender
Final status มาก่อน intermediate status และ old event มาหลัง new event
ทดสอบ HTTP 5xx, DNS, TLS, rate limits และ attempts exhausted
ค้นหา attempts, responses, errors และ manual replay result ทั้งหมดได้จาก event ID
Production delivery เปิดหลังตรวจ security, duplicate protection, retries และ error control
ส่งรายการ events, receiving endpoints และ status-change rules มาให้ APIACE จะช่วยกำหนด payload, signature verification, redelivery และ error control