// Capabilities

Data Pipelines

Last updated ·

EOXLABS builds data pipelines that move records from where they arrive to where they are used, and that can show the path each record took. Ingestion runs at the edge, validation rejects bad records with a stated reason, transforms are safe to retry, and lineage is stored next to the data in Postgres, D1 or R2.

When does an organization need this kind of pipeline?

  • Data arrives from partners, devices and uploads in formats nobody fully controls.
  • A number in a report is disputed, and no one can show which source records produced it.
  • A nightly job fails halfway, and re-running it creates duplicates.
  • Bad records disappear silently instead of being held for someone to fix.
  • An AI system or a regulator is about to depend on the data, and its quality has never been measured.

What are the stages of an EOXLABS pipeline?

Each stage has one job, writes down what it did, and can be re-run on its own.

  1. Ingest. Workers accept uploads, webhooks and partner feeds. Large files go straight to R2. CONDUIT, EOXLABS's edge file transfer product, shows the pattern: resumable, chunked uploads coordinated at the edge, Durable Object ingest through a private tunnel into R2, and checksums and access history recorded in D1.
  2. Trigger. Arrival starts the work, not a timer. R2 event notifications send a message to a queue when an object is created or deleted. Work tied to one entity, such as a device or an account, runs on a Durable Object alarm, which has at-least-once execution and up to six automatic retries with exponential backoff.
  3. Validate. Each record is checked against a typed schema. A record that fails goes to a quarantine table with the rule it broke, the source it came from and the time. Nothing is dropped without a trace.
  4. Transform. Transforms are versioned functions of their input. A job with several dependent steps runs as a Cloudflare Workflow, which retries failed steps and keeps state between them.
  5. Load. Writes are keyed so that loading the same record twice has the same effect as loading it once.
  6. Record lineage. Every output row points to its source object, the transform version and the run that produced it.

Why must every step be safe to run twice?

Retries are the normal case, not the exception. Cloudflare Queues provides at-least-once delivery by default, and in rare cases may deliver a message more than once. Alarms are at-least-once too. A pipeline that assumes exactly-once delivery will eventually double-count.

EOXLABS designs each load step around an idempotency key derived from the source: the object key and row position, a partner's message ID, or a hash of the content. The write then becomes a no-op on a repeat:

await env.DB.prepare(
  "INSERT INTO readings (id, source_key, value) VALUES (?1, ?2, ?3) ON CONFLICT (id) DO NOTHING"
).bind(recordId, sourceKey, value).run();

The same rule applies to side effects outside the database. A notification or a payment request carries the record's key, so the receiving service can refuse a duplicate.

Where should each kind of data live?

StoreWhat it fitsWhat to watch for
Postgres on NeonRelational data shared across the product, joins and reporting. Neon branches let a schema change be tested on a copy-on-write clone of real data.It lives in one region. Workers reach it through Hyperdrive's pooled connections.
D1SQL data that splits per tenant or per product, close to Workers. Time Travel restores a database to any minute within the last 7 days on the Workers Free plan or 30 days on Workers Paid.A Time Travel restore overwrites the database in place, so it is a recovery tool, not a way to read history.
R2Raw source files, exports and archives, reachable through an S3-compatible API.Objects can't be queried by field. Keep an index of them in a database.
Durable Object storageThe state of one entity or one run: a cursor, a lock, a counter.It isn't built for queries across many entities.

The trade-off is between query power and locality. Postgres answers the hardest questions from one region. D1 and Durable Objects answer simpler ones close to the caller. Most pipelines use more than one.

How does EOXLABS record lineage?

The W3C defines provenance as "information about entities, activities, and people involved in producing a piece of data or thing". EOXLABS's lineage records follow that shape. The entity is the source file or record. The activity is the transform run, with its version. The agent is the service or the person who started it. Lineage rows are append-only and live in the same database as the data they describe, so a question about a number can be answered with a query rather than an investigation.

What does the client receive?

  • A pipeline map: every source, stage, store and consumer, with owners.
  • The schemas each stage enforces, and the quarantine tables with tools to inspect, fix and replay records.
  • Lineage tables, with saved queries that trace any output back to its sources.
  • Runbooks for backfill, replay and recovery after a partial failure.
  • A retention table stating how long raw files, records and lineage are kept, and why.

When isn't a custom data pipeline the right fit?

  • The job is warehouse-scale analytics. Queries over very large historical datasets call for a columnar warehouse or a distributed processing engine, not an operational pipeline on Workers.
  • A standard connector already does it. If two SaaS tools sync through a supported integration and no one needs lineage, a custom pipeline adds cost without adding value.
  • The data needs a log-based streaming platform. Workloads that replay long event histories by offset are better served by a dedicated streaming system.

What usually comes with a pipeline?

Clean, traceable records are the input AI systems and agents need. Backups and access control for the data are covered under security and resilience, and moving data out of an old system is part of legacy-to-edge migration. The capabilities overview shows how these fit together.

The stack pages on R2, D1, Postgres on Neon and Durable Objects go deeper on each store. The engineering note on Durable Object alarms shows how per-entity scheduled work runs without a server.

Lineage matters most where data drives decisions with consequences. The pages on agriculture, financial services and critical infrastructure describe those decisions.

→

Related

+

More capabilities

Have a system that can’t go dark?

Start a project →