Event Notification and Data Processing
Overview
The BOS Event Notification Function is a set of intelligent trigger platform based on the BOS data processing framework V2.0 . Based on functions provided by the platform, developers can define data behaviors that occur in Bucket of business concern. BOS will monitor behaviors such as Put Object and Append Object that occur in Bucket, and provide downstream business system of users with trigger notification.
At meanwhile, combining with the strong AI capacity of Baidu AI Cloud, BOS can support the user behaviors monitored and directly trigger the data processing capacities of Baidu AI Cloud, thus provide the results after such processing directly to the downstream business system of the user. It enables the user with stronger AI processing capacity of data while simplifying user development logic and accelerating the business.
Application Scenarios
The BOS Event Notification Platform provides the users with an automated data behavior monitoring and notification system. It is capable of meeting the following application scenarios:
- If new data is uploaded to a certain Bucket, it is required to immediately notify the upper application and the upper application will immediately pull and apply such data.
- If new image is uploaded to the Bucket, it is required to process the content immediately and the new image generated will be used for front-end presentation. While the original image will be deleted immediately to release the storage space.
- When a new video is uploaded in the bucket, it needs to be de approved immediately, and the illegal content needs to be cleared immediately.
- When several operations such as PutObject, DeleteObject, etc. occur in the Bucket, the subsequent custom processing flow needs to be triggered, which can be fulfilled by BOS trigger of CFC.
Based on many of the above scenarios, BOS users only need to configure the trigger conditions of the event notification in the console, such as the event name, whether to enable encryption authentication, monitoring resources, covering resources, and triggering applications, etc. After the configuration is complete, when the monitored resource of the file under the specified Bucket or the specified prefix changes, the system will automatically trigger the corresponding application.
Precondition
- Baidu AI Cloud account is already registered. For specific operation, please see Account Registration.
- The resources covered in the event notification rule are a Bucket or all files under a certain prefix in a Bucket. Therefore, you need to select the Bucket for creating event notification rules. For details, please refer to Create Bucket.
Create Rules
Note: Unretrieved archive type Object will not trigger event notifications, and retrieved archive type Object will trigger normally.
1.Log in BOS Management Console to enter the overview page. 2.Select Target Bucket from the navigation bar on the left of BOS console and click to open the Bucket files list page. 3.Click the Event Notification tab in the navigation bar at the top of the page to enter the event notification page. 4.Click Create Rule to enter the creation page and configure the following information:
Parameter | Description |
---|---|
Status | Choose whether to enable event notification for new rules. |
Name |
|
Rule ID |
|
Product ID |
|
Encrypted authentication | Choose whether to encrypt the event notification rule. If encryption is enabled:
|
Event listening configuration | Choose whether to enable event listening configuration as needed. To enable it, you need to configure:
|
5.Click OK to save the rule configuration information. The successfully created rule can be viewed in the rule list on the "Event Notification" page. You can also modify or delete existing rules.
Trigger Application Classification
The types of trigger applications consist of three categories: Baidu official applications, Cloud Function Compute (CFC), and custom applications. Among them, Baidu official application is BOS. Based on the powerful AI processing capabilities of Baidu AI Cloud, it packs many high-frequency and easy-to-use AI applications. Users can enjoy Baidu AI capabilities to empower their business by only setting a URL to receive the application processing results in the console with the lowest development cost and the highest development efficiency.
Currently, Baidu official applications include Universal Character Recognition, Universal Object Recognition, and Multimedia Cloud Transcoding.
Application category | Application name | Application description |
---|---|---|
Baidu official applications | Universal text recognition |
|
General object recognition |
|
|
Audio and video transcoding |
|
|
Function computing CFC | Function computing CFC |
|
User-defined application | User-defined application |
|