Prompt
We need to support integrations for customers on different stacks; what architecture should we use?
Latest observation
Oct 23, 2026
OpenAI APIWeb search: off
A good default is an integration platform architecture with a canonical domain model and adapter-based connectors.
Recommended architecture
-
Core integration service
- Owns orchestration, auth, retries, rate limiting, mapping, and audit logs.
- Exposes a stable internal API/events model.
-
Connector/adapter layer per stack
- Build one adapter per external system or customer stack:
- Salesforce, HubSpot, NetSuite, SAP, custom REST, SFTP, etc.
- Each adapter translates between the platform’s canonical model and the external API/schema.
- Build one adapter per external system or customer stack:
-
Canonical data model
- Normalize key business objects: customer, order, invoice, ticket, etc.
- Avoid point-to-point mappings between every pair of systems.
-
Event-driven where possible
- Use webhooks/queues/CDC for async updates.
- Prefer idempotent processing and retryable jobs.
-
Workflow/orchestration engine
- For multi-step syncs, use a workflow engine or job orchestration layer.
- Helpful for long-running processes, compensation, and visibility.
-
Configuration-driven mappings
- Let per-customer differences live in config:
- field mappings, transforms, feature flags, credentials, sync cadence.
- Keep code changes for only true platform-specific differences.
- Let per-customer differences live in config:
Why this works
- Scales better than custom one-off integrations.
- Lets you support many customer stacks without rewriting core logic.
- Makes onboarding new systems mostly “write a connector.”
When to choose alternatives
- Small number of integrations: a modular monolith with plugins may be enough.
- Very high scale / many tenants: separate integration runtime per tenant or per customer tier.
- Heavy enterprise workflows: event bus + workflow engine + strong observability is important.
Key design principles
- Loose coupling
- Canonical contracts
- Idempotency
- Retry and dead-letter handling
- Strong observability
- Secure credential isolation
- Versioned schemas
If you want, I can also propose:
- a reference architecture diagram,
- a build-vs-buy decision, or
- a stack-specific pattern for SaaS + ERP + data warehouse integrations.