How Do I Use FunctionGraph?
Process
Figure 1 shows the process of using functions.
- Write code, package and upload it to FunctionGraph, and add event sources such as Simple Message Notification (SMN), Object Storage Service (OBS), and API Gateway (APIG) to build applications.
- Functions are triggered by RESTful API calls or event sources to achieve expected service purposes. During this process, FunctionGraph automatically schedules resources.
- View logs and metrics.
Figure 1 Flowchart
The following shows the details:
- Write code in Node.js, Python, Java, Go, C#, or PHP. For details, see the FunctionGraph Developer Guide.
- Edit code inline, upload a local ZIP or JAR file, or upload a ZIP file from OBS. For details, see Table 3.
- Functions are triggered by API calls or event sources. For details, see Using an SMN Trigger, Using an APIG (Dedicated) Trigger, Using an OBS Trigger, Using a DIS Trigger, Using a Timer Trigger, Using a CTS Trigger, Using an LTS Trigger, and Using a Kafka Trigger.
- FunctionGraph implements auto scaling based on the number of requests. For details about the maximum number of function instances that can be run concurrently, see Quotas and Usage Restrictions.
- View run logs of function as FunctionGraph is interconnected with Log Tank Service (LTS). For details, see Querying Logs.
- View graphical monitoring information as FunctionGraph is interconnected with Cloud Eye. For details, see Viewing Function Metrics.
Parent topic: Overview
- Process