Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Integration Patterns

The six integration patterns behind every Pandium integration: batch syncs, webhooks, provider APIs, cassettes, proxy pass, and pub/sub. Learn what each one is and when to use it.

Every integration comes down to one decision: who calls whom, and when. That choice shapes almost everything else about how the integration behaves, including its latency, its failure modes, and how much infrastructure it needs to keep running.

Across years of building customer-facing integrations, we have found that nearly everything we are asked to build fits one of six patterns. Five of them come up constantly. The sixth is rare enough that most teams will never need it, but it is worth knowing about.

This section covers each pattern: what it is, how Pandium supports it, and when to reach for it instead of one of the others.

The six patterns

Six cards, one per integration pattern: batch, webhooks, provider API, cassette, proxy pass, and pub/sub
Pattern
What it is
When to use it

A job runs on a schedule, a button click, or an API call, and pulls or pushes whatever changed

Anything from a once-a-minute near-real-time sync to a nightly run, and you want something that scales

A third-party system posts events to Pandium in real time as they happen

Volume is manageable and you need a fast reaction to a single event

Pandium hosts a service that answers a third-party platform's spec, and the platform calls it

The platform requires it and hands you the spec, such as the BigCommerce Tax Provider API

Your code runs inside the third party's own runtime (Magento, NetSuite, Salesforce, Shopify)

The platform gives no other way in, or you need to live inside its UI

A tenant's authenticated connector passes a call straight through to the third-party API

You need one thing, right now, and a full sync would be overkill

You subscribe to a message broker and consume the platform's event stream

Volume is high and you cannot afford lost or duplicated events

Choosing a pattern

Two of these, provider APIs and cassettes, usually are not a choice at all. The platform on the other end dictates them, and the work is building to its spec rather than picking between options.

For everything else, batch is the default. It has the fewest moving parts to keep running, and it covers the large majority of what integrations actually need. Schedules run down to the minute, so if your logic is fast, batch is also a perfectly good semi-real-time pattern. See Run Triggers for how scheduled, manual, webhook, and API triggers all work on the platform today.

Webhooks are the next step when even a one-minute schedule is not fast enough, or when polling for changes is too expensive. Most real-time integrations still pair a webhook with a scheduled batch run as a backstop, because a missed event is always possible.

Proxy pass looks appealing because it is the cheapest pattern to stand up, but simple and scalable solve different problems. Know which one you actually need before you commit to it.

Real products mix them. A typical shape is webhooks for the moment-to-moment changes, a nightly batch run for reconciliation and backfill, and a proxy call wherever a straight passthrough is enough.

Make it idempotent

Whatever pattern you pick, write the integration so that processing the same record or event twice produces the same result. Every pattern on this list will hand you duplicates at some point: a rerun, a retried webhook, a replayed message, an overlapping window. An idempotent integration shrugs those off. One that is not will create duplicate records, and you will spend your time cleaning up instead of building.

If you are still comparing integration platforms more broadly, see our guide to evaluating an embedded iPaaS.

Last updated

Was this helpful?