Skip to content

05.05 Master Data Synchronization Strategy ​


📌 At a Glance ​

รายการรายละเอียด
TopicMaster Data Synchronization Strategy
Difficulty⭐⭐ Intermediate
Reading Time8 นาที
TargetSystem Integrator, Software Architect, Developer

🎯 Learning Objectives ​

หลังจากศึกษาหัวข้อนี้แล้ว ผู้อ่านจะสามารถ

  • วางแผนการ Synchronize Master Data ได้
  • เลือกความถี่ในการอัปเดตข้อมูลแต่ละประเภทได้
  • ลดปัญหาข้อมูลไม่ตรงกันระหว่าง Client System และ SISAHYGO

Overview ​

Master Data เป็นข้อมูลอ้างอิงที่ถูกใช้งานร่วมกันระหว่าง Client System และ SISAHYGO

แม้ว่าข้อมูลเหล่านี้จะมีการเปลี่ยนแปลงไม่บ่อย แต่การ Synchronize อย่างสม่ำเสมอจะช่วยลดปัญหา Validation Error และเพิ่มความถูกต้องของการสร้าง Order Checking

SISAHYGO แนะนำให้กำหนดรอบการ Synchronize ตามลักษณะของข้อมูลแต่ละประเภท


Figure 5-5 Master Data Synchronization Strategy ​

Figure 5-5

Figure 5-5 แสดงลำดับและรอบเวลาที่แนะนำในการ Synchronize Master Data จาก SISAHYGO ไปยัง Client System ก่อนเริ่มใช้งาน Transaction APIs


Recommended Synchronization Flow ​

text
System Installation

        │

        ▼

GET /products

        │

        ▼

GET /units

        │

        ▼

GET /receivers

        │

        ▼

Save to Local Database

        │

        ▼

Ready for Order Checking

Recommended Schedule ​

Master DataFrequencyRecommendation
ProductsDailyอัปเดตก่อนเริ่มงานในแต่ละวัน
UnitsInitial + Monthlyเปลี่ยนแปลงน้อย อัปเดตเมื่อมีการเปลี่ยนแปลง
ReceiversDailyควรอัปเดตก่อนเริ่มสร้าง Order

Synchronization Sequence ​

ลำดับที่แนะนำ

  1. Products
  2. Units
  3. Receivers
  4. ตรวจสอบความสมบูรณ์ของข้อมูล
  5. เปิดใช้งาน Transaction APIs

Local Database ​

แนะนำให้จัดเก็บ Master Data ไว้ในฐานข้อมูลของ Client System

text
products

units

receivers

ข้อดี

  • ลดจำนวน API Calls
  • เพิ่มความเร็วในการค้นหา
  • รองรับการทำงานเมื่อเครือข่ายมีความหน่วง
  • ลดภาระของ API Server

Synchronization Checklist ​

รายการStatus
Products Updated☐
Units Updated☐
Receivers Updated☐
Local Database Updated☐
Ready for Transaction APIs☐

Best Practices ​

  • Synchronize ก่อนเริ่มงานทุกวัน
  • ใช้ Scheduler หรือ Cron Job ในการอัปเดตอัตโนมัติ
  • บันทึกวันที่และเวลาที่ Synchronize ล่าสุด
  • ตรวจสอบจำนวนข้อมูลหลังการ Synchronize ทุกครั้ง

Implementation Notes ​

  • Products และ Receivers เป็น Customer-specific Master Data
  • Units เป็น Global Master Data
  • หากการ Synchronize ไม่สำเร็จ ไม่ควรเริ่มส่ง Transaction จนกว่าจะตรวจสอบปัญหาเรียบร้อย

Summary ​

Master Data Synchronization Strategy ช่วยให้ Client System ใช้ข้อมูลอ้างอิงชุดเดียวกับ SISAHYGO ลดความผิดพลาดในการทำงาน และเพิ่มประสิทธิภาพของการเชื่อมต่อระบบในระยะยาว


Next Step ​

➡️ 05.06 Data Mapping

SISAHYGO API Integration Guide