ข้ามไปยังเนื้อหา

การผสานรวมและการเคลื่อนย้ายข้อมูล

มีให้อ่านอีก 19 ภาษา

English · Español · 日本語 · Português (Brasil) · Français · Deutsch · Italiano · 한국어 · 简体中文 · Português (Portugal) · 繁體中文 · Bahasa Indonesia · Türkçe · Polski · Tiếng Việt · Українська · Español (México) · Français (Canada) · Deutsch (Schweiz)

An open sketchbook on a drafting table at dawn, a building sketched on one page and a data model on the other, with a pencil, an eraser, a cup and a lamp.
ภาพสร้างด้วย AI

คู่มือทบทวนสำหรับบทที่ 9 ของหลักสูตร Data Architect อ่านสี่โมดูลก่อน หน้านี้ช่วยให้คุณตรวจสอบว่าอะไรติดอยู่ในหัวบ้าง

เกี่ยวกับคู่มือทบทวนนี้ คู่มือนี้สร้างขึ้นจากเนื้อหาของหลักสูตรนี้และรายการวัตถุประสงค์ในคู่มือการสอบที่ Salesforce เผยแพร่เท่านั้น ไม่เคยอิงจากข้อสอบจริง และไม่ได้อ้างว่ารู้ว่าข้อสอบมีอะไร ถ้าคุณเคยสอบแล้ว ได้โปรดอย่าส่งข้อสอบมาให้ผม: ข้อตกลงการรับรองห้ามแชร์ข้อสอบ และการท่องจำคำตอบก็เป็นวิธีที่ผิดในการเป็นสถาปนิกอยู่ดี

คู่มือการสอบบอกว่าไม่ได้ทดสอบการตั้งค่าเครื่องมือการผสานรวม และบทนี้เป็นจานชิมสำหรับสถาปนิกข้อมูล ไม่ใช่หลักสูตร Integration Architect สิ่งที่ข้อสอบสนใจคือการผสานรวมทำอะไรกับข้อมูลของคุณ: คีย์ อำนาจในการเขียน ปริมาณและความครบถ้วน และข้อมูลที่เคลื่อนระหว่าง org ตัวเลขของแพลตฟอร์มเปลี่ยนได้ จึงควรตรวจสอบตัวเลขปัจจุบันก่อนพึ่งพามัน

ทำเครื่องหมายไปทีละข้อ แต่ละข้อลิงก์ไปยังส่วนที่สอนเรื่องนั้น

ก่อนลูกศร (สนับสนุน LDV-1 และ SDM-2)

  • I zoom out to the landscape, then zoom in on one arrow and ask its data questions: initiator, direction, freshness, volume and shape, key, write authority, and who proves it arrived. (Zoom In on One Arrow) ⟲
  • ฉันแยกใครเป็นผู้เริ่มออกจากข้อมูลไหลไปทางไหน และรู้ว่ามีเพียง client ที่เห็นการเดินทางไปกลับทั้งหมด (ใครเริ่มไม่ใช่ทิศทางที่ข้อมูลเคลื่อน)
  • I treat freshness as a requirement, not a default, and match the timing to the mechanism: a synchronous call when the caller waits, platform events for fire and forget, Change Data Capture to keep another system in step, the Bulk API for large scheduled loads. (How Current Does It Need to Be?) ⟲
  • I know a database stores; a process calls: polling needs a process, often middleware, and polling for nothing is waste. Change Data Capture has a daily delivery allocation, counted per subscriber. (Asking Every Minute) ⟲
  • I know Salesforce’s guidance for pulling changes on a schedule: getUpdated() and getDeleted() for intervals over 5 minutes; more often than that, let Salesforce send the change. (Asking Every Minute) ⟲
  • I know the three traffic shapes, singles, sets and bulk; that more than 2,000 records is a good candidate for Bulk API 2.0, fewer for bulkified synchronous calls such as Composite; and to send only the fields that changed. (The Number of Zeros Applies to Integrations Too) ⟲
  • I know integration volume becomes data volume: ownership, automation, sharing and storage. (Integration Volume Becomes Data Volume) ⟲

คีย์และอำนาจในการเขียน (สนับสนุน SDM-2, SDM-4 และ MDM-2)

  • I carry an external system’s key in an External ID field marked Unique, one-to-one, and upsert on it: no match creates, one match updates, more than one fails. (One Record, One Key) ⟲
  • When one customer has several external records, I add records, not fields (a hierarchy, peers or a child object), never a key field per ERP. (When the Customer Is in Two ERPs, chapter 6: One Customer, Two ERPs) ⟲
  • I know one key field with the source in the value is still one key per record, and a new partner is a new value, not a new field. (Steve Trucking: One Field, the Source in the Value) ⟲
  • ฉันรู้ว่าคีย์ที่คงที่ทำให้การลองใหม่ปลอดภัย (จุดเริ่มต้นของ idempotency) (คีย์ทำให้การลองใหม่ปลอดภัย)
  • I know a key isn’t authority, and enforce write authority in the org: record types, read-only fields for users, and an integration user with only the access its contract needs. (A Key Isn’t Authority) ⟲
  • I know two-way movement still has one owner per field, and how unclear authority causes loops. (Two-Way Movement, One Owner per Field) ⟲
  • ฉันรู้ว่า ID เรกคอร์ดจาก org Salesforce หนึ่งไม่ใช่คีย์ระดับองค์กรในอีก org: สอง org คือสองระบบ (คีย์ก็มีวงจรชีวิต)

Proof of delivery (supports MIG-1 and MIG-2) ⟲

สัญญาข้อมูลการผสานรวม (สนับสนุน SDM-4)

  • I can write an integration data contract for an arrow, eleven lines: initiator, direction, freshness, volume and shape, key, write authority, pattern, mechanism, proof of delivery, sensitivity and travel, and change. (An Arrow Needs More Than a Label) ⟲
  • I go requirement, then pattern, then mechanism. (Requirements, Then Pattern, Then Mechanism) ⟲
  • I know when to give another team a custom Apex REST endpoint instead of the standard APIs (one stable interface, my own logging and orchestration) and what it costs (code to maintain; API and Apex limits still apply). (A Contract Between Teams) ⟲
  • I count every place the data rests on its way, logs and retry queues included, when it has to stay in a country. (Make Each Line Specific) ⟲
  • For multiple orgs, I start with a contract per movement, and sometimes the contract says don’t move it (chapter 14). (Multiple Orgs, and “Don’t Move It”) ⟲

Where the rest lives. This chapter is about moving data. Not moving it (Salesforce Connect, mashups, data brought in on demand, zero copy: exam objective LDV-3) is chapter 14, Virtualization, Federation, and Zero-Copy (coming soon). Loading and extracting at volume is chapter 10, Migration and Synchronization. ⟲

การสอบคือพื้น ไม่ใช่เพดาน นี่คือนิสัยจากบทนี้ที่สถาปนิกต้องมี ไม่ว่าจะมีคำถามข้อใดถามถึงหรือไม่

  • Zoom out, then zoom in. Start with the landscape; then take one arrow at a time. ⟲
  • จงเข้าใจปริมาณข้อมูลที่กำลังจะมา แม้คนอื่นจะเป็นผู้ออกแบบการผสานรวม
  • เลือกกลไกหลังจากเข้าใจการเคลื่อนย้ายแล้ว
  • A database stores; a process calls. Someone has to own the process. ⟲
  • การเคลื่อนย้ายข้อมูลไม่ได้ฟรี ทุกสำเนาคืออีกที่หนึ่งที่ต้องกำกับดูแล
  • Add records, not fields. ⟲
  • รู้จักเรกคอร์ด รู้จักเจ้าของ แล้วค่อยให้การผสานรวมเขียน
  • Whoever knows what should arrive proves that it did. ⟲
  • ถ้ามันล้มเหลวได้อย่างเงียบๆ มันยังไม่เสร็จ การผสานรวมที่หยุดไปคือปัญหาคุณภาพข้อมูล
  • สิทธิ์บอกว่าทำได้ สถาปัตยกรรมบอกว่าควรทำ
  • Decide the interface between teams in the first weeks: the standard API or a wrapper you own. ⟲
  • สัญญาอยู่ได้นานกว่าเทคโนโลยี
  • ถือว่าทุกการกระทำของเอเจนต์คือการผสานรวม ที่มีคีย์ อำนาจชี้ขาด idempotency และการสังเกตการณ์ได้
คำศัพท์ในหนึ่งบรรทัด
ผู้เริ่มต้นระบบที่เริ่มบทสนทนา (client)
ทิศทางข้อมูลข้อมูลธุรกิจเคลื่อนไปทางไหน ไม่ว่าใครเป็นผู้เริ่ม
FreshnessHow current the data must be
PollingAsking on a schedule whether anything changed
ทีละรายการ เป็นชุด bulkครั้งละหนึ่งเรกคอร์ด กลุ่มเล็ก หรือปริมาณมากในงานเดียว
External IDคีย์ของอีกระบบที่เก็บไว้บนเรกคอร์ด Salesforce ใช้สำหรับจับคู่
Upsertอัปเดตเรกคอร์ดที่ตรงกันถ้ามีอยู่ สร้างถ้าไม่มี
Idempotencyการทำการดำเนินการซ้ำโดยไม่เกิดผลเพิ่มที่ไม่ตั้งใจ
Watermark / checkpointบันทึกว่าการผสานรวมไปถึงไหนอย่างปลอดภัยแล้ว
การกระทบยอดการเปรียบเทียบสิ่งที่ตั้งใจส่งกับสิ่งที่มาถึง
Proof of deliveryEvidence, held by the side that knows what should arrive, that it did
Return receiptAn acknowledgment sent back to say a message was received and processed
Request and replyThe client sends and waits for the answer
Fire and forgetThe client sends without waiting for the outcome
Platform eventข้อความที่เผยแพร่บน event bus ของ Salesforce สำหรับผู้ติดตาม
Change Data Captureevent ที่ Salesforce เผยแพร่เมื่อเรกคอร์ดเปลี่ยน
Replay IDตำแหน่งที่ผู้ติดตามใช้เพื่ออ่าน event ต่อ
Custom Apex RESTYour own REST endpoint in Salesforce, written in Apex, in front of your objects
สัญญาข้อมูลการผสานรวมบันทึกสั้นๆ ว่าการผสานรวมทำอะไรกับข้อมูลได้บ้าง

สถานการณ์สั้นๆ ในแบบของหลักสูตร ตัดสินคำตอบของคุณก่อนเปิดดู

1. Salesforce เรียก ERP เพื่อขอสถานะเครดิตของลูกค้า ข้อมูลไหลไปทางไหน และใครเป็นผู้เริ่ม?

Salesforce เป็นผู้เริ่ม ข้อมูลไหลจาก ERP → Salesforce ผู้เริ่มต้นกับทิศทางเป็นคำถามคนละข้อ และผู้เริ่มต้น (client) คือฝ่ายที่เห็นการเดินทางไปกลับทั้งหมด อ่านทวน ใครเริ่มไม่ใช่ทิศทางที่ข้อมูลเคลื่อน

2. ทีมเสนอให้สร้างเรกคอร์ด Salesforce สำหรับค่าอ่าน GPS ทุกรายการ: 200,000 ต่อวัน คุณถามอะไรก่อน?

ทำไมจะใส่ค่าอ่าน 73 ล้านรายการต่อปีลงในโมเดลเชิงธุรกรรม? นั่นคือการตัดสินใจด้านสถาปัตยกรรมข้อมูลก่อนจะเป็นการตัดสินใจด้านการผสานรวม org อาจต้องการแค่ตำแหน่งล่าสุด อ่านทวน ปริมาณการผสานรวมกลายเป็นปริมาณข้อมูล

3. A warehouse team says, "Snowflake will just poll Salesforce every minute." What's missing? ⟲

A database stores; a process calls. Something has to run the polling (usually an integration layer), with its own credentials, schedule and failures, and 1,440 calls a day mostly find nothing. Ask how current the data must be, then consider letting Salesforce send the changes (Change Data Capture), and count the events. Reread Asking Every Minute.

⟲
4. An external system needs Salesforce's changes about every hour, including deletions. What does Salesforce's own guidance suggest? ⟲

For intervals over 5 minutes, the SOAP API’s getUpdated() and getDeleted() return what changed and what was deleted in a window, instead of a full extract. More often than that, let Salesforce send the change. Reread Asking Every Minute.

⟲
5. The ERP retries a "create customer" call after a timeout and Salesforce ends up with two accounts. How should it have been designed? ⟲

Upsert on the ERP’s customer number in an External ID field marked unique, so a retry matches the existing record instead of inserting a duplicate. Reread Keys Make Retries Safe.

⟲
6. The customer exists in two ERPs, and someone proposes `NA_ERP_ID__c` and `EMEA_ERP_ID__c` on the Account. Your view? ⟲

That’s a key field per ERP: an anti-pattern. It hides repeating structure in fields and turns every new ERP into a schema change. Add records, not fields: child accounts, peer accounts, or a child object per ERP record, each with one key. Reread When the Customer Is in Two ERPs.

⟲
7. The integration log shows zero errors, but finance totals don't match. What happened, and who should have caught it? ⟲

Zero errors isn’t completeness: maybe fewer records were sent than intended, or values changed in transit. The side that knows what should have arrived proves it did: it reconciles counts and control totals against what it meant to send. Reread Who Proves It Arrived?.

⟲
8. A subscriber to platform events was down for a day. Can it catch up? ⟲

Yes, within the 72-hour retention: it resumes from its last Replay ID. It must also handle duplicates, because the same event can arrive twice. Reread The Return Receipt.

⟲
9. The requirement says "we need a REST integration for credit holds." What's wrong with that? ⟲

REST is a mechanism, not a requirement. The requirement is something like “agents see a credit hold within five minutes of the ERP change.” Start there, choose the pattern, then the mechanism, and write the contract. Reread Requirements, Then Pattern, Then Mechanism.

⟲
10. A partner's middleware team will send orders that touch four objects, and your data model changes every release. Standard API or custom Apex REST? ⟲

It depends on the team. If they know Salesforce deeply and can change quickly, the standard APIs work. If not, a custom Apex REST endpoint gives them one stable interface, lets Salesforce orchestrate the four writes and log every call, and absorbs your changes inside. The cost is code you maintain, inside Salesforce’s API and Apex limits. Decide in the first weeks. Reread A Contract Between Teams.

⟲