Architecture & Tech Stack10 minute read
Shopify Integration Architecture: P2P vs. iPaaS vs. Middleware
Three topologies connect Shopify to the rest of an enterprise stack, and the choice between them gets treated as a technology preference when it’s really a question about what your team wants to own for the next five years.
Point-to-point connections are the fastest to ship and the first to become unmanageable as the system count grows. iPaaS platforms buy you a managed queue and prebuilt connectors at the cost of a per-transaction fee that compounds with volume. Custom middleware gives you full control and hands you full maintenance. None of these is right in the abstract — each is right for a specific shape of stack, and the honest version of this decision names the trade-off instead of pretending one topology has no downside.
Point-to-point: fast to start, the first thing that breaks at scale
A point-to-point connection — Shopify talking directly to one other system via its native API — is the correct default for a small number of systems with simple, stable data models. It’s the fastest to build and the easiest to debug, because there’s exactly one connection to reason about. When something goes wrong, there are two systems and one hop between them, and the fault is in one of three places.
The trouble starts as system count grows. Each new system needs its own connection to every other system it needs to talk to, and the number of connections grows faster than the number of systems. Four systems fully connected point-to-point need six separate connections; a fifth system needing to talk to all four needs four more. Past a handful of systems, nobody can hold the full connection map in their head, and a change to one system’s API becomes a hunt through every point-to-point connection that touches it.
Three specific things degrade, in roughly this order.
- Transformation logic duplicates. Currency conversion, unit normalization, a customer-ID mapping — the same rule gets written three or four times because there’s no shared layer to put it in once. They then drift, and the drift is silent.
- Failure handling becomes inconsistent. Each connection got its retry logic from whoever built it, in whatever week they built it. Some retry, some don’t, some retry in a way that duplicates writes. Nobody knows which is which without reading each one.
- Nobody owns the map. The stack’s actual shape lives only in the union of its connections, and the only way to learn it is to read them all. That makes every change more expensive than the change itself.
The tell that a stack has outgrown point-to-point is the first of those: the same transformation appearing in more than one place. That’s the point at which a hub starts paying for itself, and it usually arrives well before anyone schedules a conversation about architecture.
What’s worth saying, because it cuts against how this is usually framed: point-to-point isn’t a beginner’s topology to be grown out of. For a stack that will genuinely stay small, or for the well-supported native connections in any stack, it remains the right answer indefinitely. The mistake isn’t choosing it; it’s never noticing when the conditions that made it right stopped holding.
iPaaS: managed infrastructure, at a cost that scales with volume
An iPaaS platform (Celigo, Boomi, Workato, and others) gives you a managed queue, retry logic, and a library of prebuilt connectors, so the reliability engineering — the durable queue, the retry-on-failure logic, the monitoring — is the vendor’s problem, not yours. That’s real value, and it’s easy to undercount if you’ve never had to build it: a durable queue with correct idempotency, exponential backoff, dead-letter handling and alerting is weeks of work and then a permanent operational responsibility.
The honest trade-off is the pricing model. Most iPaaS platforms charge per transaction or per connector-hour, which means the cost scales with order volume in a way a self-hosted custom layer doesn’t. A custom layer’s cost is roughly a function of how many integrations it carries; an iPaaS platform’s cost is a function of how much business flows through it. Those two curves cross somewhere, and for a brand at real enterprise scale that per-transaction fee can become a larger line item than the engineering cost of maintaining custom middleware would have been.
Where the crossing point sits is worth calculating rather than guessing, and it’s worth calculating against the volume you expect in three years rather than today’s. A platform that is obviously cheap at current volume and obviously expensive at three times current volume is a decision with an expiry date, which is fine as long as somebody knows the date.
iPaaS earns its place clearly when the connectors needed are mostly standard — a well-supported ERP, a common CRM — and the team doesn’t want reliability engineering as an ongoing responsibility. It earns its place less clearly when the transformations needed are highly specific to the business. At that point you’re paying the vendor’s fee and still writing custom logic inside their platform, which is close to the worst of both models: the cost structure of buying, the maintenance burden of building, and the custom logic now written in a proprietary environment that is harder to test, harder to version, and harder to hire for than your own codebase.
Custom middleware: full ownership, full maintenance
Custom middleware — a service you build and host, purpose-built to sit between Shopify and the rest of the stack — gives full control over the data model, the retry logic, and the cost structure, with no per-transaction fee. The transformations are written in your own language, in your own repository, tested with your own tools, by people you can hire on the open market.
The cost is that every piece of infrastructure the vendor would have provided is now your team’s responsibility to build and keep running: the durable queue, the monitoring and alerting, the rate-limit handling, the dead-letter path, the runbook for when it’s 2am and the queue is backed up. That responsibility doesn’t end at launch. It’s a standing claim on engineering attention for as long as the integration exists, and it competes with everything else on the roadmap.
This is the right choice when the transformations are genuinely specific to the business — the kind of logic that doesn’t map cleanly onto a commercial connector — and when the team has, or is willing to build, the operational muscle to run it. Both halves matter. A team with genuinely specific requirements and no appetite for operations will build something correct and then fail to keep it running, which is a worse outcome than a connector that fits imperfectly.
Trade Coffee’s own architecture discovery weighed almost exactly this trade-off, structured as two named paths: a mostly-buy path (a managed OMS, mostly SaaS connectors, no per-order subscription cost, but real engineering maintenance to own the backend) against a more-managed path (fewer moving parts and minimal maintenance, at the cost of a per-order fee on every subscription transaction). The team’s own analysis was explicit that the second path meant technology wouldn’t need to be a core competency — a deliberate statement about which trade-off they were choosing to make, not just which vendor scored higher on a feature list.
That framing is the one worth borrowing. The output of this decision shouldn’t be a topology name; it should be a sentence about what your team is choosing to be responsible for.
Most real stacks are a mix, and that’s fine if it’s deliberate
Very few enterprise stacks are purely one topology, and the ones that claim to be usually aren’t. A typical shape is native point-to-point connections for the app ecosystem, a hub for the systems with materially different data models, and one piece of genuinely custom logic where the business is actually differentiated. That’s three topologies in one stack, and it’s the right answer more often than any pure one.
The distinction that matters isn’t mixed versus pure. It’s whether each piece of the mix was chosen or inherited. A stack where someone can say “Recharge is native because its connection is well-maintained and we have no transformation to do; the ERP is behind a layer because we compute available-to-promise there; the taste engine is custom because it’s the product” is a healthy mixed stack. A stack where the same shape exists but nobody can say why is a pile of decisions that were each locally reasonable and collectively unexamined.
Before you sign anything
Who owns your integrations after launch?
Meet the pod who would run them, before you sign.
How to actually decide
Start from two questions, not a feature comparison.
- Are the transformations you need standard or specific? Standard means mapping fields between well-known systems — commodity work, so buy it, whether that’s an iPaaS connector or a native integration. Specific means a proprietary subscription model, a regulated workflow, a catalog structure the market hasn’t solved for. That’s the reason custom logic exists at all, and where owning the code pays off even if it costs more engineering time.
- Does your team want infrastructure ownership as a standing responsibility, or would they rather pay a vendor to hold that risk? Neither answer is wrong, but it should be a deliberate choice, made once, rather than an accident of whichever proof of concept happened to ship first.
Two further inputs are worth putting on the table at the same time, because they’re the ones that tend to surface later as surprises. The first is volume trajectory: a per-transaction fee is a different decision at 10,000 orders a month than at 300,000, and the honest version of the comparison uses the number you expect rather than the one you have. The second is who will be on call. A topology that depends on an engineering team you don’t have, or won’t have after the current project ends, is a plan for a degraded integration rather than a good one.
The stacks that regret their integration architecture three years later are almost always the ones where this decision was never made explicitly — a point-to-point connection got added because it was fastest that week, and the pattern repeated until nobody had chosen the architecture on purpose. The failure isn’t choosing wrong. It’s never choosing.
What changes the answer later
This decision has a shelf life, and it’s worth knowing what expires it rather than rediscovering it during an incident. Four things reliably do:
- Order volume crossing the point where a per-transaction fee stops being the cheaper option.
- System count crossing the point where point-to-point connections can’t be held in one head.
- A change in what’s differentiated — logic that was specific to your business five years ago may now be a standard feature somebody sells, and worth retiring rather than maintaining.
- A change in the team — the appetite for infrastructure ownership is a property of the team you have, and teams change.
None of those is an emergency if the original decision was written down with its reasoning, because then it can be revisited against what actually changed. Without that, a revisit is an archaeology project first and a decision second.
A second question sits alongside this one and often gets tangled with it: not which topology, but whether a given layer should be bought, built, or a thin custom shell around a bought connector. That’s covered in Shopify Middleware: Build, Buy, or Both. For the ERP-specific version of the cost side, see Shopify ERP Integration Cost.
How we approach this decision
We make this call once, explicitly, at the start of an integration engagement — not connection by connection as each new system comes up. The two questions above get answered before any topology is chosen, along with the volume trajectory and who will be operating the result, and the answer gets written down so it’s still legible to whoever inherits the stack in three years.
It sits inside a wider model: see enterprise Shopify integrations for the order chain the whole thing is organized around, and the Integrations service for how the work is scoped.
Frequently Asked Questions
Is iPaaS always better than point-to-point?
No. iPaaS earns its transaction fee when it saves you from building reliability infrastructure yourself, but that fee scales with order volume, and past a certain scale it can cost more than the engineering time it saved. Run the comparison against the volume you expect in three years, not today’s.
When does custom middleware make sense over a commercial connector?
When the transformations are genuinely specific to how your business operates — a proprietary subscription model, a regulated workflow — rather than standard field-mapping a commercial connector already handles well. And when the team is willing to own the operations, not only the code.
How many point-to-point connections can a stack support before it needs a different architecture?
There’s no fixed number, but the tell is duplicated transformation logic across multiple connections, or nobody being able to describe the full connection map without checking documentation. Either symptom means the hub would already be paying for itself.
Can we mix topologies in one stack?
Yes, and most enterprise stacks do — native connections for the app ecosystem, a hub for systems with materially different data models, custom logic where the business is genuinely differentiated. What matters is that each piece was chosen for a stated reason rather than inherited from whichever connection shipped first.
Choosing a topology before you’ve chosen what to own? Talk to an architect about the trade-off first.
Before you sign anything
Integrations need an owner, not a ticket queue.
Ninety minutes with the Account Manager and Delivery Manager who would own your account, before you sign anything. A written 90-day plan either way.










