Getting Started with Common Practices
Operation Guide
You can create a function and deploy code in either of the following ways:
- FunctionGraph console: It allows you to quickly create executable functions on the GUI, which is suitable for building lightweight applications and quick verification. For details, see Creating a Function from Scratch and Executing the Function.
- VS Code: Based on the Huawei Cloud FunctionGraph VS Code plug-in, you can easily create and execute functions in the local code editor. It is suitable for small teams and individual developers. For details, see Local Debugging with VSCode.
- Serverless Devs: You can manage multiple functions using the YAML configuration file based on the open-source CLI tool. It is suitable for complex projects with many functions or automatic deployment. For details, see Introduction.
- Serverless Framework: The Serverless Framework V3 uses the YAML configuration file to maintain the full lifecycle of functions, which is suitable for users familiar with the tool. For details, see Quick Start.
Best Practices
After understanding basic operations such as creating a function, you can follow FunctionGraph's common practices to implement your services.
This section describes common practices of FunctionGraph. For details, see FunctionGraph Best Practices.
Practice |
Description |
---|---|
Use FunctionGraph to compress images. |
|
Use FunctionGraph to watermark images. |
|
Building an HTTP Function Using an Existing Spring Boot Project |
Deploy a Spring Boot application as an HTTP function on FunctionGraph. |
|
|
|
|
Use FunctionGraph and IoT Device Access (IoTDA) to process status data reported by IoT devices. IoT devices are managed on the IoTDA platform. Their data is transferred from IoTDA to trigger the FunctionGraph functions you have compiled for processing. This combination is suitable for processing device data and storing them in OBS, structuring and cleansing data and storing them in a database, and sending event notifications for device status changes. |
|
Use FunctionGraph to process OBS data. |
|
Using FunctionGraph to Deploy Stable Diffusion for AI Drawing |
Deploy Stable-Diffusion applications in the application center of FunctionGraph and provides multiple methods for customizing AI drawing applications. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot