By Shi Mingwei (Shiru) Alibaba Cloud Senior Technical Expert
With the popularization and landing of cloud-native technologies, enterprises often need to rely on multiple cloud products and services when building business systems. The demand for product interconnection and system collaboration is getting stronger. The event-driven architecture applies events to decoupling triggers and interactions between services, which can help users realize the interconnection and interaction between products and systems. As the best choice for event-driven architecture, Function Compute (FC) needs to provide users with rich event source triggering capabilities.
For Function Compute (FC), event source access requires a clear understanding of the many details and the authentication requirements of each upstream event source. Meanwhile, event processing and system error tracking become more difficult, and integration inefficiency becomes the biggest obstacle to product capabilities. Function Compute needs to find a unified standard event source access mode to accelerate event source integration efficiency. It is based on the common access layer to build basic capabilities and observability to provide customers with a wide range of event source trigger options.
Under such circumstances and requirements, Alibaba Cloud Function Compute (FC) and Alibaba Cloud EventBridge are integrated. This means the Function Compute and Alibaba Cloud ecosystem products and business SaaS systems have a unified standard access mode, which is to say Function Compute will have the ability to access all event sources of EventBridge. Serverless Function Compute will reach the last mile of all Alibaba Cloud products and services, providing important architecture expansion capabilities for Alibaba Cloud ecosystem-based products.
Alibaba Cloud EventBridge is a serverless event bus that supports easy connection of user applications, third-party software as a service (SaaS) data, and Alibaba Cloud service data through events. This brings together a wide range of events from cloud products and SaaS services. EventBridge has the capability of event and access standardization:
The combination of EventBridge and Function Compute makes it easy to build event-driven applications because it can complete event ingestion and delivery, security, authorization, and error handling for you. It allows you to build loosely coupled and distributed event-driven architectures that help increase developer agility and application resilience. The Function Compute system provides a comprehensive function creation, release, and operating system. Flexible construction capabilities combined with extreme run-time elasticity capabilities will help businesses build event-driven architectures with the most salient features of the cloud-native era.
EventBridge can also provide real-time data streams from event sources, such as MQ, OSS, and RDB, and route the data to Alibaba Cloud Function Compute as a destination. You can set routing rules to determine the destination of data to build an application architecture that can respond to all data sources in real-time.
Function Compute has already realized the integration with some core systems of Alibaba Cloud before integrating with EventBridge. With the deep integration of Function Compute EventBridge, a large number of services in the Alibaba Cloud ecosystem have realized the integration with Function Compute. The events of these services or products will be used as event sources to trigger functions. The Function Compute trigger types have increased from 15+ to 90+ and have been enriched with the increase of upstream access systems of EventBridge.
EventBridge and the Function Compute console exchange data. Users can select Function Compute as the event processing target in the EventBridge console and enjoy all-in-one services in the EventBridge console. Likewise, users can write functions in the Function Compute console according to different trigger types and corresponding event types. Users do not need to jump back and forth between the Function Compute console and the event bus console.
It can provide a unified view of resources, whether the user processes events from a specified event source by creating triggers in the Function Calculation console or uses Function Calculation as an event processing target in the EventBridge console. At the same time, in the implementation of the underlying system, due to the deep integration of the back-end system API, it can ensure the upper-level business logic adopts a unified API and processing logic, thus ensuring the consistency of the implementation of multiple entry functions from the technical level. It lays a solid foundation for the stable operation of the customer system.
For data consumption scenarios, EventBridge is responsible for the docking and data consumption of upstream systems. Users do not need to learn about the specific consumption mode of event source system data. This part of the work is completed by EventBridge. For Function Compute users, only the logic of data delivery needs to be considered. Users can select the downstream Target provided by EventBridge to realize data delivery, or they can only use the SDK provided by EventBridge to realize data delivery at the code level. This simplifies the complexity of data delivery.
Let's explore the business production environment and see how we can use these two sharp tools to make it all easy:
Business systems generate a large amount of dynamic metric data. You need to extract the metric data for operational analysis and presentation and implement automated operational analysis and presentation through the asynchronous concatenation of EventBridge and FC. Traditional solutions require data extraction and analysis based on real-time computing or offline computing products. The whole solution is heavy and complex to configure. Data analysis results need to be presented, rendered, pushed, and manually connected to the business system. The steps are cumbersome.
Use a new EDA architecture and use EventBridge to connect custom event data. The rule-driven filtering logic is simple. Using FC can realize common data analysis operations in a lightweight manner, making code writing and debugging simpler. At the same time, using EventBridge's push capabilities, analysis results can reach audiences quickly.
Let's 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 batch price, delivery, points, stream calculation, and analysis. Multiple systems have inconsistent message processing logic, and a single system cannot adapt to each associated business. Combine EventBridge Event Center and Function Compute flexible logic expansion capabilities to build business logic.
Large-scale new retail scenarios will be accompanied by irregular sales. Businesses with small traffic at ordinary times will surge in system traffic in large-scale promotions. In a big sale scenario, securing peak traffic requires reserving a lot of resources. The resources will be idle and wasted during the usual low-peak period. The new retail sale scenario uses Function Compute + EventBridge + API Gateway to build a Serverless mode service mid-end to support massive request access. The system has extreme flexibility and does not need to reserve and manage IaaS resources, thus reducing idle costs. At the same time, the Function Compute provides agile development combined with EventBridge low-code asynchronous drive, which improves the efficiency of business iteration.
If the service behind the incident is the building blocks of Alibaba Cloud's ecological services, Serverless Function Compute will be the best way to combine these building blocks in a light and artistic way. You can use Function Compute to paint these building blocks with more brilliant colors and connect them to build a SaaS/PaaS service artwork with incomparable imagination.
EventBridge triggers are now available in all regions of the Alibaba Cloud Function Compute console. Click here to experience it!
Please refer to the official help document of Alibaba Cloud Function Compute (FC) for more information about the trigger creation and configuration: https://www.alibabacloud.com/help/en/function-compute/latest/event-triggers-overview
KubeDL 0.4.0: AI Model Version Management and Tracking Based on Kubernetes
503 posts | 48 followers
FollowAlibaba Cloud Community - December 21, 2021
PM - C2C_Yuan - May 23, 2024
Alibaba Cloud New Products - December 4, 2020
Alibaba Cloud Serverless - January 3, 2024
Alibaba Cloud Native - December 14, 2021
Alibaba Cloud Native - June 12, 2024
503 posts | 48 followers
FollowAlibaba Cloud Function Compute is a fully-managed event-driven compute service. It allows you to focus on writing and uploading code without the need to manage infrastructure such as servers.
Learn MoreServerless Application Engine (SAE) is the world's first application-oriented serverless PaaS, providing a cost-effective and highly efficient one-stop application hosting solution.
Learn MoreHigh Performance Computing (HPC) and AI technology helps scientific research institutions to perform viral gene sequencing, conduct new drug research and development, and shorten the research and development cycle.
Learn MoreDeploy custom Alibaba Cloud solutions for business-critical scenarios with Quick Start templates.
Learn MoreMore Posts by Alibaba Cloud Native Community