当前位置:网站首页>Use cloud functions to receive callbacks and cooperate with CLS to view callback logs and persistent storage

Use cloud functions to receive callbacks and cooperate with CLS to view callback logs and persistent storage

2022-06-24 05:12:00 yjwang

The status quo of receiving a third-party callback in the traditional way

1. cost - A separate server is required to receive the callback

2. complex - A cumbersome Nginx Configuration and PHP Script

3. Overstaffed - Persistent storage relies on products such as databases

4. heavy - use SQL Statement query is very inconvenient

The benefits of using cloud functions to receive callbacks

1. Open the box - Upload and receive the callback function code package to deploy with one click

2. Portable query , Long term preservation - The callback information received by the cloud function is written in full text CLS And automatically build the field index , Convenient query Callback results You can also configure Automatic delivery Persist the callback log to the object store

Cases of using cloud functions to receive callbacks

  • Object storage - Picture review callback
Callback log real-time query

Cloud function deployment instructions

1. Go to Serverless Console Create a cloud function

2. Click I download the code package used to receive the callback function

3. Create and import cloud functions according to the following figure

Create and import cloud functions

5. Test the callback function

Test the callback function

6. Create the required index fields

Index configuration
Edit index configuration
Create the required index fields

7. Persistent processing callback logs , Post the callback log to the object store

Add delivery task
原网站

版权声明
本文为[yjwang]所创,转载请带上原文链接,感谢
https://yzsam.com/2021/08/20210821020834481Z.html