Run your code without servers by FunctionGraph
Introduction
In this session we will compress images by automatically trigger the python code with using FunctionGraph
What is FunctionGraph
❗ Run your code without provisioning or managing servers ❗
FunctionGraph hosts and computes event-driven functions in a serverless context while ensuring high availability, high scalability, and zero maintenance. All you need to do is write your code and set conditions. You pay only for what you use and you are not charged when your code is not running.
Summary of Demo
In this demo we will Upload images to a specified Object Storage Service (OBS) bucket after then FunctionGraph triggered and Compress each uploaded image.
Step by Step
1-Create two different buckets on the OBS console.
2-Create a function with an OBS trigger.
3-Upload an image to one of the buckets.
4-The function is triggered to compress the image.
5-The function uploads the processed image to the other bucket
Creating OBS Buckets
Creating an Agency
Creating a Function
Upload your code
Add Dependencies
Configuration
Create Trigger
Final 🎉
- We uploaded image to our OBS bucket (b-input)
- As we set before our code triggered when we upload image
- Compressed image uploaded automatically to OBS bucket (b-output)
If you’re interested in getting hands-on experience with Huawei Cloud Services , you can register and explore KooLabs , Huawei’s online interactive and free learning platform , as well as Huawei Cloud Developer Forum , where you can connect with other developers and gain insights into Huawei’s Cloud computing solutions.
You can reach me from my Linkedin account for all your questions and requests.