Mule API 用于体验的 Led 连接设计方法 API
Mule API Led Connectivity Design Approaches for Experience API
作为我们通往 API 主导的连通性之旅的一部分,我们必须将我们的资源(即 API 端点)分组到多个 Mule 应用程序中以获得 API 的体验。
为了让 Mule 应用程序具有有意义的名称,同时保持最大的可重用性,而不是将消费者名称与应用程序名称相关联(这使得体验 API 与当前应用程序环境紧密耦合),我们建议有 Mule 应用程序名称来反映业务的本质。
选项列表如下。你觉得哪一个更理想?您在您的组织中使用了什么方法?
- 基于Channel/Consumer
为消费者提供专门的体验 API,例如 WEB、CRM、移动等
uri 示例:
www.example.com/example-**web**-application/v1/
www.example.com/example-**crm**-application/v1/
www.example.com/example-**mobile**-application/v1/
专业人士:- 应用渠道特定策略更容易,管理更容易,中断更小 window
缺点:- 可重用性降低,api 中对象重复的可能性增加
- 基于业务领域
使用公司数据模型。例如 - 客户、产品、付款等
uri 示例:
www.example.com/example-**customers**-application/v1/
www.example.com/example-**products**-application/v1/
www.example.com/example-**payments**-application/v1/
Pro 的:- 提高可重用性,与渠道无关,相同 api 可用于不同的消费者。
缺点:管理可能会变得复杂,中断更严重 window,多个消费者可能会受到影响
- 基于客户旅程
这种方法与客户与组织的生命周期相关联。例如 - 潜在客户 --> 潜在客户 --> 参与 --> 付款 --> 客户保留
uri 示例:
www.example.com/example-**prospect**-application/v1/
www.example.com/example-**lead**-application/v1/
www.example.com/example-**engage**-application/v1/
专业人士:与渠道无关,相同的 api 可用于不同的消费者。
缺点:可能会变得越来越大,可能仍需要进一步细分
谢谢。
据我了解你的问题; 您想知道体验端点使用什么 URI APIs,对吗?
基于 a recent blog entry from mulesoft(2017 年 7 月 12 日)。
经验API是:
Experience APIs are the means by which data can be
reconfigured so that it is most easily consumed by its intended
audience, all from a common data source, rather than setting up
separate point-to-point integrations for each channel. An Experience
API is usually created with API-first design principles where the API
is designed for the specific user experience in mind.
根据 MuleSoft 的示例和我的理解,经验 API 是为给定的 "experience" 创建的;网络、虚拟现实、移动等...
您正在尝试为给定的特殊体验创建 API,以便让该特定客户更轻松地消费 API。
据我了解,这个级别的主要目标不是re-usability。您专注于系统 API 和流程 API 级别的 re-usability,但体验 API 应该通过提供正是他们需要的接口和数据,因此他们不必直接与系统和进程 API 通信,但他们得到一个 tailor-made API,完全适合他们的特殊需要。
由于经验API是tailor-made为特殊经验/频道/client-application;我认为在 URI 中表示这个是个好主意。
作为我们通往 API 主导的连通性之旅的一部分,我们必须将我们的资源(即 API 端点)分组到多个 Mule 应用程序中以获得 API 的体验。
为了让 Mule 应用程序具有有意义的名称,同时保持最大的可重用性,而不是将消费者名称与应用程序名称相关联(这使得体验 API 与当前应用程序环境紧密耦合),我们建议有 Mule 应用程序名称来反映业务的本质。
选项列表如下。你觉得哪一个更理想?您在您的组织中使用了什么方法?
- 基于Channel/Consumer 为消费者提供专门的体验 API,例如 WEB、CRM、移动等
uri 示例:
www.example.com/example-**web**-application/v1/
www.example.com/example-**crm**-application/v1/
www.example.com/example-**mobile**-application/v1/
专业人士:- 应用渠道特定策略更容易,管理更容易,中断更小 window
缺点:- 可重用性降低,api 中对象重复的可能性增加
- 基于业务领域 使用公司数据模型。例如 - 客户、产品、付款等
uri 示例:
www.example.com/example-**customers**-application/v1/
www.example.com/example-**products**-application/v1/
www.example.com/example-**payments**-application/v1/
Pro 的:- 提高可重用性,与渠道无关,相同 api 可用于不同的消费者。
缺点:管理可能会变得复杂,中断更严重 window,多个消费者可能会受到影响
- 基于客户旅程
这种方法与客户与组织的生命周期相关联。例如 - 潜在客户 --> 潜在客户 --> 参与 --> 付款 --> 客户保留
uri 示例:
www.example.com/example-**prospect**-application/v1/
www.example.com/example-**lead**-application/v1/
www.example.com/example-**engage**-application/v1/
专业人士:与渠道无关,相同的 api 可用于不同的消费者。
缺点:可能会变得越来越大,可能仍需要进一步细分
谢谢。
据我了解你的问题; 您想知道体验端点使用什么 URI APIs,对吗?
基于 a recent blog entry from mulesoft(2017 年 7 月 12 日)。
经验API是:
Experience APIs are the means by which data can be reconfigured so that it is most easily consumed by its intended audience, all from a common data source, rather than setting up separate point-to-point integrations for each channel. An Experience API is usually created with API-first design principles where the API is designed for the specific user experience in mind.
根据 MuleSoft 的示例和我的理解,经验 API 是为给定的 "experience" 创建的;网络、虚拟现实、移动等...
您正在尝试为给定的特殊体验创建 API,以便让该特定客户更轻松地消费 API。
据我了解,这个级别的主要目标不是re-usability。您专注于系统 API 和流程 API 级别的 re-usability,但体验 API 应该通过提供正是他们需要的接口和数据,因此他们不必直接与系统和进程 API 通信,但他们得到一个 tailor-made API,完全适合他们的特殊需要。
由于经验API是tailor-made为特殊经验/频道/client-application;我认为在 URI 中表示这个是个好主意。