Concept 3 of 15Connect and model

Ingestion: data streams, connectors and the Ingestion API

Data streams and their categories, primary keys and event time, refresh modes, Salesforce and cloud storage connectors, the Ingestion API for streaming and bulk, the Web and Mobile SDK, MuleSoft, and real-time ingestion.

Your confidence:Not rated

Simple explanation

A data stream brings data from a source into a DLO.

Category (chosen at creation)

CategoryUse forMust have
ProfilePeople and accountsPrimary key
EngagementTime-stamped events (clicks, orders, calls)Primary key and event time field
OtherReference data (products, stores)Primary key

Refresh modes: full refresh, upsert and incremental options depending on connector; prefer incremental to save credits.

Connectors

  • Salesforce CRM (objects from the home and other orgs), Marketing Cloud, Commerce.
  • Cloud storage: Amazon S3, Google Cloud Storage, Azure.
  • Ingestion API: streaming (small JSON payloads, near real time) and bulk (CSV jobs) defined by a schema.
  • Web and Mobile SDK: behavioural events from sites and apps, including anonymous visitors.
  • MuleSoft and partner connectors for other apps.
  • Zero copy for warehouses (see next concept).

Formulas in streams can clean and derive fields on the way in.

Real-world analogy

Data streams are delivery routes to the sorting office. Each route is labelled when you open it: people, events or reference items. You can't relabel a route afterwards without opening a new one.

Worked example

A bank streams CRM contacts and accounts with the CRM connector (Profile), card transactions from S3 daily (Engagement with transaction time), and mobile app events through the Mobile SDK in near real time. A streaming Ingestion API pushes fraud-alert events from the core banking platform.

Diagram

Rendering diagram…

Key points

  • Choose the category carefully: Profile, Engagement (with event time) or Other.
  • Every stream needs a primary key; engagement needs event time.
  • Prefer incremental refreshes; full refreshes cost more.
  • Ingestion API: streaming for events, bulk for files.
  • Web and Mobile SDK for behavioural and anonymous data.

Limits and gotchas

  • Category and primary key can't be changed after creation; recreate the stream if wrong.
  • Engagement data without a reliable event time breaks time-based insights and segments.
  • Streaming ingestion is near real time, not instant; check latency for each path βš‘ verify.
  • Ingesting everything "just in case" inflates credits and storage; ingest what a use case needs.

🎀 How to say this in an interview

Name the category, key and refresh mode per source and justify streaming vs batch. Mention credit impact of full refreshes.

Common follow-ups

A source only provides full daily extracts. How do you limit cost?

Ask for change data or a modified timestamp, use upsert or incremental modes where supported, or land extracts in cloud storage and compute deltas before ingestion.

When would you use the Ingestion API instead of MuleSoft?

When the source can call an API directly with small events or files; use MuleSoft when you need orchestration, transformation or connections to systems that can't push.