Author : Shi Mingwei (
With the popularization and implementation of cloud-native technologies, enterprises often need to rely on multiple cloud products and services when building business systems, and the demand for product interconnection and system collaboration is becoming stronger. The event-driven architecture applies events to the triggering and interaction between decoupled services, which can help users well realize the interconnection and interaction between products and systems. As the best choice of event-driven architecture, function computing needs to provide users with rich event source triggering capabilities.
For function computing, event source access requires a clear understanding of the many details and authentication requirements of each upstream event source. At the same time, event processing and system error tracking have become more and more difficult, and integration efficiency has become the biggest obstacle hindering product capabilities. In order to accelerate the efficiency of event source integration, function computing needs to find a unified standard event source access method, based on a common access layer to build basic capabilities and observability, and provide customers with a wealth of event source trigger options.
Under such background and requirements, Alibaba Cloud Function Compute and Alibaba Cloud EventBridge products have completed a comprehensive and in-depth integration. This means that function computing and Alibaba Cloud ecosystem products and business SaaS systems have a unified standard access method, which means that function computing will have the triggering ability to access all event sources of EventBridge, and serverless function computing will reach Alibaba Cloud The "last mile" of the entire series of products and services provides important framework expansion capabilities for Alibaba Cloud-based ecological products.
Why EventBridge?
The Alibaba Cloud Event Bus (EventBridge) is a serverless event bus that supports the easy connection of user applications, third-party software as a service (SaaS) data and Alibaba Cloud service data through events. Here is a collection With rich events from cloud products and SaaS services, EventBridge has the capability of event standardization and access standardization:
- Event standardization: EventBridge follows the industry-standard CloudEvent event specification, gathers various events from the Alibaba Cloud ecosystem and EventBridge partners' rich event sources, and provides a complete event delivery mechanism and consumption strategy. The entire system event flow follows a unified event Format;
- Access standardization: Function computing selection and EventBridge integration, whether it is Alibaba Cloud's official event source with many types of products and services, or a third-party SaaS system, EventBridge can provide a unified integration interface for function computing and other system integration, and function computing does not need to be concerned. The specific implementation details of the upstream event source only need to focus on event processing, and all event integration and delivery are handed over to EventBridge for processing;
The combination of EventBridge + Function Compute makes it easy to build event-driven applications, because it can complete event ingestion and delivery, security assurance, authorization, and error handling for you. Allows you to build loosely coupled and distributed event-driven architecture to help improve developer agility and application resilience. The function computing system provides a complete function creation, release and operation system. Flexible construction capabilities combined with extreme runtime flexibility will help businesses build the most distinctive event-driven architecture in the cloud-native era.
At the same time, EventBridge can provide real-time data streams from event sources (such as MQ, OSS, RDB, etc.), and route the data to Alibaba Cloud Function Computing as the target. You can set routing rules to determine the destination of sending data, so as to build an application architecture that can respond to all data sources in real time.
Function calculation + changes brought by EventBridge?
Provide 90+ event source access
Before the integration with EventBridge, function computing has been integrated with some core systems of Alibaba Cloud. With the deep integration of function computing EventBridge, a large number of services in Alibaba Cloud ecosystem have been integrated with function computing. The events of these services or products will be used as events. Source trigger function; the current function calculation trigger type has been increased from the original 15+ to 90+, and it has been enriched with the increase of the upstream access system of EventBridge;
Console enjoy one-stop service
EventBridge and the function computing console communicate data. In the EventBridge console, users can select function computing as the event processing target based on the event, and enjoy a one-stop service in the EventBridge console; also in the function computing console, users can follow different triggers Types write functions according to the corresponding event types; users do not need to jump back and forth between the function calculation console and the event bus console;
Ensure data consistency and stability
Whether the user processes the events of the specified event source by creating triggers on the function computing console; or using function computing as the event processing target in the EventBridge console, it provides a unified resource view; at the same time, in the implementation of the underlying system, due to the later The deep integration of the end system API can ensure that the upper-level business logic adopts a unified API and processing logic, and ensures the consistency of the realization of multiple entry functions from the technical level, laying a solid foundation for the stable operation of the client system;
Simplify the complexity of data consumption and delivery
For data consumption scenarios, EventBridge is responsible for the docking of upstream systems and data consumption. Users do not need to care about the specific consumption methods of event source system data. This part of the work is done by EventBridge; for function computing users, only the logic of data delivery needs to be considered; users can Directly select the downstream Target provided by EventBridge to implement data delivery, or use only the SDK provided by EventBridge at the code level to implement data delivery, which greatly simplifies the complexity of data delivery.
Trigger business application scenarios
Let us explore together, the actual business production environment, how we can use these two tools to make this happen easily:
Automated operation analysis and presentation
The business system will generate a large amount of dynamic indicator data, which needs to be extracted for operation analysis and display, and automated operation analysis and display can be realized through the asynchronous series connection of EventBridge and FC. Traditional solutions require data extraction and analysis based on real-time computing or offline computing products. The entire solution is heavy and complex to configure. Data analysis results need to be pre-defined display rendering and push, and need to manually connect to the business system, and the steps are cumbersome.
The new EDA architecture is adopted, EventBridge is used to dock business custom event data, and the rule-driven filtering logic is simple. The use of FC can be lightweight to achieve common data analysis operations, and code writing and debugging is easier; at the same time, using the rich push capabilities of EventBridge, the analysis results can quickly reach the audience.
Asynchronous decoupling
Take the transaction engine as an example. The transaction system engine is the core system. Each transaction order data needs to be paid attention to by dozens of downstream business systems, including item pricing, delivery, points, flow calculation analysis, etc., multiple systems The message processing logic is inconsistent, and it is impossible for a single system to adapt to every associated business. Combine the EventBridge event center and the flexible logic expansion capabilities of function computing to build business logic.
New retail promotion scenario Serverless + EDA integration
Large-scale new retail scenarios will be accompanied by occasional large-scale promotions. Businesses that usually have little traffic will also have a sudden increase in system traffic in large-scale promotion scenarios. An extremely flexible and stable decoupling architecture is essential. Based on the traditional model, the development of stable, reliable, and highly flexible back-end services has insufficient manpower and tight schedules; large promotion scenarios require a large amount of resources to be reserved to ensure peak traffic, and resources are idle and wasted during low peak periods. The new retail big promotion scenario uses function computing + EventBridge + API gateway to build a serverless mode service center, supporting massive request access, the system is extremely flexible, no need to reserve management IaaS resources, greatly reducing idle costs; at the same time, function computing provides agile development Combined with the low-code asynchronous drive of EventBridge, the efficiency of business iteration is greatly improved.
Summarize
If the services behind the event are the building blocks of Alibaba Cloud's ecological services, then serverless function computing will be the best way to combine these building blocks in a light and artistic way; you can use function calculations to paint these building blocks more beautifully Color, at the same time, it can connect them to build a SaaS/PaaS service artwork with unparalleled imagination.
EventBridge trigger has been calculated for all the console area (Region) open in Ali cloud function, welcome to click here be experience!
For the specific creation and configuration of triggers, refer to the official help documents of https://help.aliyun.com/document_detail/146104.html
\
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。