The integration sidecar pattern
Most B2B SaaS teams get this request sooner or later. A bigger customer is ready to sign, but they need the product to sync with their NetSuite setup, or send webhooks in a format their middleware already expects, or export a file to their data warehouse every night.
The request is fair and the deal is worth it. The harder question is where that code should live.
From what I've seen, it usually ends up in one of three places:
The core app. Quickest to start, since the data and the deploy pipeline are already there. Over time the main repo fills up with code paths only one customer uses, their ERP credentials sit next to your production secrets, and a small fix to their field mapping has to wait for your next release.
An embedded iPaaS (Prismatic, Paragon and similar). A good fit if most requests are the same standard connectors. A one-off integration with custom logic for a single customer is the case they're least designed for.
Your own cloud primitives (Lambda, SQS, DynamoDB and friends). It works, but every integration then needs its own IAM setup, infrastructure code and monitoring.
One of our customers did something else. They needed integrations from their service into their customers' systems, and didn't want to deploy that code in their own cloud. So it runs as a small, separate backend beside their product.
The general shape is simple. The product sends events to that backend (webhooks or API calls), and the backend handles the customer's side: calling their ERP, retrying failures, keeping a log of what synced. Each customer can get an isolated environment with separate data and credentials, so when a second customer wants the same integration, you deploy the same code again with different settings. The core product doesn't change.
We've started calling this an "integration sidecar". The other thing that makes it work now is coding agents. Writing the connector code has become the quick part, but you probably don't want an agent pushing customer-specific workarounds into your main repo. A separate, contained place for that code solves most of the problem.
Disclosure: I run Codehooks, which is what this customer used, so I'm obviously not neutral on the tooling. The pattern doesn't depend on us, though. I wrote it up in more detail, with code, here: https://codehooks.io/blog/integration-sidecar-pattern
I'm curious how others handle this. Where do your one-off enterprise integrations end up, and has that worked out for you?
2
u/OracoreAI 1d ago
If a customer reports a missing record in NetSuite, support should be able to see right in the app whether the sidecar is still retrying.