Przejdź do głównej zawartości

Integracja i przepływ danych

Dostępne także w 19 językach

English · Español · 日本語 · Português (Brasil) · Français · Deutsch · Italiano · 한국어 · 简体中文 · Português (Portugal) · 繁體中文 · Bahasa Indonesia · Türkçe · 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.
Obraz wygenerowany przez AI

Przewodnik do nauki do rozdziału 9 kursu Data Architect. Najpierw przeczytaj cztery moduły; ta strona pomoże ci sprawdzić, co zostało w głowie.

O tym przewodniku. Powstał wyłącznie na podstawie treści tego kursu i listy celów z opublikowanego przez Salesforce przewodnika po egzaminie. Nigdy nie opiera się na prawdziwych pytaniach egzaminacyjnych i nie twierdzi, że wie, co jest na egzaminie. Jeśli masz egzamin za sobą, proszę, nie przysyłaj mi z niego pytań: umowa certyfikacyjna zabrania ich udostępniania, a wkuwanie odpowiedzi i tak jest złą drogą do zostania architektem.

Przewodnik po egzaminie mówi, że egzamin nie sprawdza konfiguracji narzędzi integracyjnych, a ten rozdział to talerz degustacyjny dla architekta danych, a nie kurs Integration Architect. Egzaminowi naprawdę zależy na tym, co integracje robią z twoimi danymi: klucze, prawo zapisu, wolumen i kompletność oraz dane przemieszczające się między orgami. Liczby platformy się zmieniają, więc zanim na nich polegasz, sprawdź aktualne.

Odhaczaj je po kolei. Każdy punkt prowadzi do miejsca, w którym go omówiono.

Zanim narysujesz strzałkę (wspiera LDV-1 i 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) ⟲
  • Oddzielam to, kto inicjuje, od tego, w którą stronę płyną dane, i wiem, że całą drogę tam i z powrotem widzi tylko klient. (Kto zaczyna, to nie to samo, co kierunek danych)
  • 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) ⟲

Klucze i prawo zapisu (wspiera SDM-2, SDM-4 i 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) ⟲
  • Wiem, że stabilne klucze czynią ponowienia bezpiecznymi (to początek idempotentności). (Klucze czynią ponowienia bezpiecznymi)
  • 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) ⟲
  • Wiem, że identyfikator rekordu z jednego orga Salesforce nie jest kluczem przedsiębiorstwa w innym: dwa orgi to dwa systemy. (Klucze też mają cykl życia)

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

Kontrakt danych integracji (wspiera 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. ⟲

Egzamin to podłoga, nie sufit. Oto nawyki z tego rozdziału, których architekt potrzebuje, niezależnie od tego, czy jakiekolwiek pytanie o nie zapyta.

  • Zoom out, then zoom in. Start with the landscape; then take one arrow at a time. ⟲
  • Zrozum ruch, który nadchodzi, nawet jeśli integrację projektuje ktoś inny.
  • Wybierz mechanizm, gdy zrozumiesz przepływ.
  • A database stores; a process calls. Someone has to own the process. ⟲
  • Przenoszenie danych nie jest darmowe. Każda kopia to kolejne miejsce do zarządzania.
  • Add records, not fields. ⟲
  • Poznaj rekord. Poznaj właściciela. Potem pozwól integracji zapisywać.
  • Whoever knows what should arrive proves that it did. ⟲
  • Jeśli może zawieść po cichu, nie jest skończone. Zatrzymana integracja to problem jakości danych.
  • Uprawnienie mówi „może”; architektura mówi „powinna”.
  • Decide the interface between teams in the first weeks: the standard API or a wrapper you own. ⟲
  • Kontrakt przetrwa technologię.
  • Traktuj każdą akcję agenta jak integrację, z kluczami, autorytetem, idempotentnością i obserwowalnością.
TerminW jednym zdaniu
InicjatorSystem, który zaczyna rozmowę (klient)
Kierunek danychW którą stronę płyną dane biznesowe, niezależnie od tego, kto zaczyna
FreshnessHow current the data must be
PollingAsking on a schedule whether anything changed
Pojedynczo, zestawami, hurtowoJeden rekord naraz, małe grupy albo duże wolumeny w jednym zadaniu
Identyfikator zewnętrznyKlucz innego systemu przechowywany w rekordzie Salesforce, używany do dopasowania
UpsertZaktualizuj pasujący rekord, jeśli istnieje, utwórz go, jeśli nie
IdempotentnośćPowtarzanie operacji bez niezamierzonych dodatkowych efektów
Znacznik postępu / punkt kontrolnyZapis tego, dokąd integracja bezpiecznie doszła
UzgadnianiePorównywanie tego, co zamierzono, z tym, co dotarło
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
Zdarzenie platformyWiadomość publikowana na szynie zdarzeń Salesforce dla subskrybentów
Change Data CaptureZdarzenia publikowane przez Salesforce, gdy rekordy się zmieniają
Replay IDPozycja, której subskrybent używa, żeby wznowić czytanie zdarzeń
Custom Apex RESTYour own REST endpoint in Salesforce, written in Apex, in front of your objects
Kontrakt danych integracjiKrótki zapis tego, co integracja może zrobić z danymi

Krótkie scenariusze w stylu kursu. Zdecyduj o odpowiedzi, zanim ją rozwiniesz.

1. Salesforce wywołuje ERP, żeby pobrać status kredytowy klienta. W którą stronę płyną dane i kto inicjuje?

Inicjuje Salesforce; dane płyną ERP → Salesforce. Inicjator i kierunek to osobne pytania, a to inicjator (klient) widzi całą drogę tam i z powrotem. Przeczytaj ponownie Kto zaczyna, to nie to samo, co kierunek danych.

2. Zespół proponuje tworzyć rekord Salesforce dla każdego odczytu GPS: 200 000 dziennie. O co pytasz najpierw?

Po co wkładać 73 miliony odczytów rocznie do modelu transakcyjnego? To decyzja architektury danych, zanim stanie się decyzją integracyjną; org może potrzebować tylko ostatniej pozycji. Przeczytaj ponownie Wolumen integracji staje się wolumenem danych.

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.

⟲