Ingestion
An ingestion takes data from wherever another system keeps it, splits each payload into records, and turns every record into a dispatch job or, if its target says so, a platform event. It is the inbound twin of a subscription: a subscription delivers events out of the platform, an ingestion brings data in and hands it to the same delivery machinery, with the same retries, ordering, pools and signatures.
The platform stores, versions and governs ingestions. It does not read sources itself. A
separate ingestor runtime does, and an installation without one simply has no ingestions
running. The whole capability is behind FC_INGESTION_ENABLED (off in fc-server, on in fcdev).
The model
Section titled “The model”ingestion = (application, client, code) + source + split + target + flags| Part | Meaning |
|---|---|
| Application | The owner, and it must be of type INTEGRATION. It carries the permissions, the audit scope and the answer to “who owns this”. A target’s job code must start with this application’s code |
| Client | Required. Every ingestion belongs to one client; data that is no particular client’s goes under a client the business keeps for the purpose |
| Code | Stable and lower case, unique within (application, client). An ingestion is addressed as application/client/code |
| Source | Where the data comes from |
| Split | How a payload becomes records |
| Target | What each record becomes |
| Flags | active, and keepFailedPayloads (off unless the client has agreed: a failure may then carry the first 2 KB of the payload) |
Why both an application and a client. Ownership and tenancy are different questions. The integration application says who built and maintains the feed and what it may create; the client says whose data it is, whose secrets it uses and whose jobs it makes. Requiring both makes the wrong thing hard to do: there is no ingestion that quietly writes across tenants.
Sources
Section titled “Sources”| Kind | Reads | Runs on |
|---|---|---|
http |
Payloads pushed to the runtime’s /ingest/... endpoint |
Every runtime that carries it |
sqs, rabbitmq |
Messages from a queue | Every runtime that carries it |
sftp, s3 |
Files in a directory or bucket, polled | One runtime at a time, under a lease |
database-poll, api-poll |
A table or an HTTP API, polled on an interval | One runtime at a time, under a lease |
custom |
A kind that a runtime extension adds (a vendor’s API, for example), or a Camel route | One runtime at a time, under a lease |
A source never holds a secret, only a secret’s name. Every address a source makes the runtime
connect to is checked when it is saved and tested: private networks are allowed (an on-premises
database is the normal case), but loopback, link-local and cloud-metadata addresses are not. An
sftp source must pin the server’s host key or explicitly accept any. Because a definition decides
where the runtime presents a secret, pointing secrets somewhere new needs its own permission
(bind-secrets), and so does reading a queue or bucket with the runtime fleet’s own AWS identity
(runtime-identity).
A Camel route (camel-route) is the escape hatch: a route in Camel’s YAML DSL for a component
or a reshaping step that does not justify an extension. It runs with the runtime’s own network and
identity, so only an anchor-tier pipeline account or an ingestion administrator may write one.
Split and target
Section titled “Split and target”The split is none (the payload is one record), csv (one per row), json (one per element
of an array) or xml (one per element).
The target is one of two kinds:
DISPATCH_JOB(the default): each record becomes a dispatch job with the job code, delivery URL, dispatch pool, dispatch mode and batch size the target names. A connection or one of the application’s own service accounts signs the deliveries, and pausing the connection holds the ingestion’s jobs.dataOnlydelivers the record itself instead of the JSON envelope.EVENT: each record becomes one platform event of an existing event type, stored through the same path asPOST /api/events/batch, so that event type’s subscriptions decide where it goes. Records that are not known to be JSON must be wrapped explicitly (wrapNonJson).
Everything in a target is resolved when the ingestion is saved. A missing pool, an unknown
connection or a job code of another application is a 400 at save, not a failure in a runtime at
three in the morning.
How data moves
Section titled “How data moves”sequenceDiagram
autonumber
participant Src as Source (SFTP, API, queue, HTTP caller)
participant RT as Ingestor runtime
participant P as Platform runtime API
participant DB as Platform database
participant Pipe as Messaging pipeline
RT->>P: poll: kinds I carry, my instance id
P-->>RT: live ingestions for me (effective definitions), leases, tests
RT->>P: fetch the secrets the live definition names
RT->>Src: read (with the lease, for a polled source)
RT->>RT: split into records
RT->>P: POST records to /ingestions/{id}/jobs
P->>DB: build each job (or event) from the ingestion's own target
P-->>RT: ids, or a refusal
RT->>Src: mark done (move the file, ack the message, store the watermark)
DB->>Pipe: jobs delivered, events fanned out to subscriptions
RT->>P: report: route states, counts, failures
The runtime calls the platform; the platform never calls the runtime. A runtime can therefore sit behind a firewall, next to the systems it reads, with only outbound access to the platform.
The runtime sends records, not jobs. The platform builds each job from the ingestion’s own
target (URL, pool, connection, signer, client), so a runtime cannot choose where data goes or who
signs it. Polled sources keep their watermark or cursor on the platform, so it follows the
ingestion when another runtime takes it over. Each record carries a key made from where its payload
came from (a file’s path, modification time and size; a queue message’s id; an HTTP caller’s
Idempotency-Key) and its position, and the platform answers a key it has seen with the job it made
first. A payload read twice, after a timeout or a move to another runtime, makes its jobs once.
An HTTP ingestion answers its caller only after the platform holds the jobs or events: 202
means it is safe to forget the payload, 503 means send it again (with an Idempotency-Key,
nothing is made twice).
Runtimes and leases
Section titled “Runtimes and leases”The ingestor runtime is a Java 25 process built on Apache Camel. It reports the source kinds it carries (its built-in kinds and those its extensions add) and is given only ingestions of those kinds.
- Polled sources run on one runtime at a time, under a lease the runtime renews on every poll (3 minutes on the platform). A watchdog stops a route whose lease is about to lapse without renewal, even if the runtime’s main loop is stuck, so two runtimes never read the same source.
- Polled ingestions of a kind are shared evenly over the runtimes that carry it.
- A runtime that keeps failing an ingestion hands it to another runtime for ten minutes; one that fails everywhere stays put, so its errors stay in view.
- An ingestion that no runtime has held for a while shows as not running, and a metric counts them. A suspended client’s ingestions run nowhere.
- The runtime authenticates as an anchor-tier service account bound to no application, holding
platform:ingestion-runtime; it needs no permission to reveal configuration. It reads secrets only through its own call, which answers only what the ingestion’s live definition binds, at the ingestion’s own client.
Why a separate runtime. Reading SFTP servers, queues and vendor APIs needs connectors, long-lived connections and network access that a multi-tenant API server should not have. Keeping it apart lets the platform stay small and safe, lets the runtime be placed where the data is, and lets a fleet of runtimes scale and fail over without touching the platform.
Definitions, sets and versions
Section titled “Definitions, sets and versions”An ingestion is also a definition file: YAML with the fields above. A file is the same in every environment. What differs per environment or client (a vendor’s login, an organisation id, the delivery URL) is not in the file: the source names a settings entry in the platform configuration of that environment, and the platform substitutes it to make the effective definition a runtime receives. An ingestion whose entry is missing or invalid simply does not run and shows as needing configuration.
A definition can list several clients (or "*" for every client), which makes one ordinary
ingestion per client, each with its own settings, secrets, leases and failures.
A folder of files is applied as one set, in one transaction: each definition is created, changed, adopted, left unchanged or (when the set no longer lists it) removed. A dry run shows the plan and writes nothing. While a set owns an ingestion it changes only through its files.
Every change saves a version, deduplicated by a digest of the definition. Only the live
version runs. Making a version live needs its own permission (promote); without it a save becomes
a draft that someone with promote makes live, never a refusal. Pause stops an ingestion and
resume starts it again, keeping its versions and state.
When things go wrong
Section titled “When things go wrong”A runtime reports failures by category: payload (a record or payload it could not take) and
rejected (the platform refused the jobs for good, for example because the pool was suspended).
A rejected failure becomes a notice on the ingestion until someone dismisses it.
Failures are paced and stay visible. A polled source that keeps failing waits longer between attempts (5 seconds doubling to 5 minutes, with jitter); while the platform is not taking jobs, every ingestion on the runtime waits and one probe tests it. A failure is logged in full once, then at most once a minute with a count. Nothing gives up silently, and the first success ends the streak and says so.
When an ingestion runs but nothing seems to happen, an operator switches on a short trace to see what each poll and exchange did (Audit, traces and logs).
Read next
Section titled “Read next”- Define, test and go live with an ingestion.
- Accept data over HTTP and Definition files and sets.
- Ingestor runtime: leases, shutdown and extensions inside the runtime.
- Ingestion definition format and Ingestor runtime contract.
- Running ingestor runtimes.
- Decisions: ingestion is a platform capability, HTTP ingestions replace ingest functions, failures are paced and visible.