--- title: "将 Tulip 集成到交易型业务系统的架构基础" slug: "architecture-fundamentals-of-integrating-tulip-to-a-transactional-business-system" updated: 2026-10-22T09:26:05Z published: 2026-10-22T09:26:05Z canonical: "support.tulip.co/architecture-fundamentals-of-integrating-tulip-to-a-transactional-business-system" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.tulip.co/llms.txt > Use this file to discover all available pages before exploring further. # 将 Tulip 集成到交易型业务系统的架构基础 ## 本文概述 - 本文讨论 Tulip 与交易型业务系统(例如 ERP)的集成。 - 本文旨在提供以下内容: - 对可行方案的高层级概述。 - 理想的集成应具备哪些特征。 - 当无法实现或不切实际时,还存在哪些其他集成方案。 ## Tulip 在企业数据流中的定位 在下图中,您可以从宏观层面了解 Tulip 在企业数据流中的典型位置。Tulip 可与 ERP 或其他交易型业务系统进行集成,以满足制造运营部门认定为适当且相关的各种用例。 ![Tulip position in enterprise data flow - 2026 February.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/Tulip%20position%20in%20enterprise%20data%20flow%20-%202026%20February.png) ### 关于规划集成的知识库文章 - [规划 Tulip 与 MES 或 ERP 之间的集成](/r230/docs/plan-an-integration-between-tulip-and-an-mes-or-erp){`target=_blank`} - [构建您的首个系统集成](/r230/docs/build-your-first-system-integration){`target=_blank`} ## 理想集成的前提与原则 ### 前提与原则 - 保持单一数据源/记录系统。 - 确保集成:简单、及时且高效。 ### 假设 - “真相源”拥有该系统所负责领域内最新且最全面的信息。 - “真相源”可通过 HTTP REST API 进行集成。 - “权威数据源”的架构及其集成用例允许构建“理想”的集成架构。 ### “理想集成”的定义 - 通过 HTTP 连接器与“真相源”进行实时集成 - 在下文的讨论中,此选项被列为[“选项 1”](/r230/docs/architecture-fundamentals-of-integrating-tulip-to-a-transactional-business-system#option-1-realtime-integration-via-http-connectors)。 ## 可能阻碍实现理想集成的情况 多种因素可能导致 Tulip 客户无法以上述“理想”方式与事务性业务系统进行集成。这些因素包括但不限于以下内容: - “数据源”因计划内维护而反复出现长时间停机。 - 严格的业务需求要求制造解决方案在任何情况下都不依赖于“真相源”的实时可用性,例如当“真相源”因意外中断/停机而不可用时。 - “数据源”的性能导致某些集成用例(例如为订单的物料清单(BOM)检索数百个组件)无法在实时环境中执行。 - IT 领导层不允许直接与“数据源”进行集成 ## 典型的 ERP/Tulip 集成用例 下图展示了 Tulip 与 ERP 集成时最常见的一些用例。这绝非详尽无遗的列表,而是旨在代表常见的集成方式,并作为本文后续讨论的参考。 ![Typical ERP Integration Use Cases.svg](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/Typical%20ERP%20Integration%20Use%20Cases.svg) 通常,这些操作(例如“获取物料清单”)各自对应 ERP 中的特定 API 端点。对于与您的集成用例相关的 API 端点,您需要构建一个连接器函数。 ## 将 Tulip 集成到事务型业务系统的选项 下图展示了将 Tulip 与事务性业务系统集成的多种方案。左侧的数字代表推荐的典型顺序,同时也(在一定程度上)反映了这些方案的使用普及程度。 ![Five Options.svg](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/Five%20Options.svg) #### 可选的 iPaaS 注:黄色虚线 iPaaS 框代表一种架构选择。iPaaS 并非总是必需的,但客户出于各种原因(例如对超时提交的自动重试、中间件日志记录等)可将其作为架构的一部分使用。 作为 iPaaS 的替代方案,客户可以使用自定义脚本(例如 Python),或者在架构 1 的情况下,不通过 iPaaS 直接与业务系统集成。 - 为何要使用 iPaaS? - 若业务系统尚未提供现代 API 端点,可通过(定制开发)提供此类端点。 - 支持在 API 超时时自动重试。 - API 日志记录(在需要时便于调试)。 - 选择哪种 iPaaS? - Tulip 并未针对具体哪款 iPaaS 给出特别建议(但 Boomi 和 Mulesoft 是我们的客户常用的选择)。 Customer Infrastructure is the Customer's Responsibility Tulip consistently recommends Option 1 whenever possible. The purpose of this article is to provide high-level guidance on the art of the possible. Tulip can offer some guidance and advisement on the various options discussed herein, however ultimately it is up to a Tulip Customer to determine which of these architecture options is practical and sensible based on various factors, including the [Factors That May Prevent an Ideal Integration](/r230/docs/architecture-fundamentals-of-integrating-tulip-to-a-transactional-business-system#factors-that-may-prevent-an-ideal-integration), a customer's own resource availability and internal expertise thereof, and [limits of the Tulip platform](/r230/docs/platform-limits-and-best-practices){target=`_blank`}. ### 方案 1 — 通过 HTTP 连接器实现实时集成 “集成选项”图中的第一行代表了前文讨论的理想集成架构,并使用 HTTP 连接器。这是 Tulip 客户与 ERP 等事务性业务系统进行集成的最常见方法。关于通过 HTTP 连接器实现此类集成的详细内容,可在知识库和 Tulip 大学的其他部分中找到详尽说明。 ![Path 1 - HTTP Synchronous.svg](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/Path%201%20-%20HTTP%20Synchronous.svg) #### 与通过 HTTP 连接器进行集成相关的关键知识库资源 - [“HTTP 连接器”基础知识](/r230/docs/http-connectors){`target=_blank`} - [连接器限制](/r230/docs/connector-limits){`target=_blank`} #### Tulip University 关于 HTTP 连接器的课程资料 - [在应用程序中构建和使用 HTTP 连接器](https://university.tulip.co/learn/courses/82/build-and-use-http-connectors-in-apps){`target=_blank`} #### 与云端业务系统的理想集成 下图对这种理想的集成进行了更深入的说明。图中展示了在特定触发器操作中使用的单个连接器和连接器函数。 ![Option 1 deep dive v2.svg](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/Option%201%20deep%20dive%20v2.svg) ### 方案 2——通过 SQL 连接器实现实时集成 如果满足以下所有条件,通过 SQL 连接器进行集成通常是次优选择:* 业务系统中不提供 HTTP REST API。* Tulip 的 SQL[连接器支持连接到业务系统的数据库](/r230/docs/sql-connectors#1-choose-your-database-type){`target=_blank`}。* 客户的 IT 部门允许通过 SQL 语句或存储过程连接数据库。![Option 2.svg](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/Option%202%281%29.svg) #### 知识库和大学中关于选项 2 的基础资料 - [SQL 连接器](/r230/docs/sql-connectors){`target=_blank`} - [连接器限制](/r230/docs/connector-limits){`target=_blank`} - [Tulip 大学 - SQL 连接器](https://university.tulip.co/learn/courses/84/sql-connectors){`target=_blank`} ### 方案 3——通过 Tulip 表记录实现异步集成 ![Option 3.svg](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/Option%203.svg) 在我们的“集成方案”图表中,第三行展示了通过Tulip表API,利用Tulip表记录在业务系统与Tulip之间实现异步集成的方式。 这通常涉及 iPaaS 或自定义脚本,其中与集成相关的内容(例如新发布的工单)会定期发布到相应的 Tulip 表中——理想情况下应尽可能接近实时。 客户可以采用事件驱动的方式实现这一功能:当 ERP 中发布订单时,会触发 iPaaS 工作流,该工作流会立即将数据发布到 Tulip。 集成的另一部分涉及通过 iPaaS 或自定义脚本频繁地从 Tulip 表(同样通过 Tulip 表 API)获取内容,然后将内容回写到目标业务系统。 #### 一种常见的做法是跟踪数据是否已成功同步回业务系统。 以一个表示原材料批次消耗情况的 Tulip 表为例。* 使用一个名为“已成功同步到 ERP”之类的布尔类型列* 当 Tulip 应用程序在此表中创建新记录时,该列可以为 NULL 或 False。* 当 iPaaS 获取该记录,并确认数据已成功 POST 回业务系统后,iPaaS 会将该列的值从 NULL/False 更新为 True。 * 这使得 iPaaS 能够将其“同步回 ERP”的对账活动范围缩小至仅包含“已成功发回”列为 NULL 或 False 的 Tulip 表记录。 #### 选项 3 的知识库与大学中的基础资料 - [Tulip Table API 指南](/r230/docs/table-api-guide){`target=_blank`} - [Tulip Table API 限制](/r230/docs/best-practices-for-high-performance-apps){`target=_blank`} - [Tulip University 功能深度解析:Table API](https://university.tulip.co/learn/courses/23/feature-deep-dive-table-api){`target=_blank`} ### 方案 4 - 通过第三方数据库和 SQL 连接器实现异步集成 ![Option 4.svg](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/Option%204.svg) 在“集成方案”图表的第四行中,展示了通过第三方数据库和 SQL 连接器实现业务系统与 Tulip 之间的异步集成。 - 与其他方案类似,这可能涉及 iPaaS 或数据库脚本编写,具体由客户的数据架构师决定。 - 关于同步频率,同样遵循以下原则:尽可能使数据同步接近实时。 #### 知识库和大学中关于方案 4 的基础资料 - [SQL 连接器](/r230/docs/sql-connectors){`target=_blank`} - [连接器限制](/r230/docs/connector-limits){`target=_blank`} - [Tulip University - SQL 连接器](https://university.tulip.co/learn/courses/84/sql-connectors){`target=_blank`} ### 方案 5——通过数据湖/数据仓库实现异步集成 ![Option 5.svg](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/Option%205.svg) 在“集成方案”图表的最后一行中,展示了一种通过数据湖/数据仓库在业务系统与Tulip之间进行的、鲜少使用的异步集成方式。* 关于同步频率,其原则与方案3和方案4相同——应尽可能使数据同步接近实时。 #### 知识库与大学中关于方案 5 的基础资料 - [SQL 连接器](/r230/docs/sql-connectors){`target=_blank`} - [连接器限制](/r230/docs/connector-limits){`target=_blank`} - [Tulip 大学 - SQL 连接器](https://university.tulip.co/learn/courses/84/sql-connectors){`target=_blank`} --- ## 其他学习资料 - Tulip 大学[——与企业应用程序的集成](https://university.tulip.co/learn/courses/5/integration-to-enterprise-applications){`target=_blank`} **Integration Platform as a Service (iPaaS)** **iPaaS** is a suite of cloud-based services that connects and integrates disparate applications, data, and processes, regardless of whether they are on-premises or in the cloud.