Help Center> > Service Overview >Overview

Overview

FunctionGraph hosts and computes functions in a serverless context. It automatically scales to suit fluctuations in resource demands during peaks and spikes while requiring no reservation of dedicated servers or capacities. You will be billed based on actual usage. FunctionGraph consists of the function and workflow modules that respectively implement function computing and orchestration.

Function

FunctionGraph hosts event-driven functions while ensuring high availability, high scalability, and zero maintenance. All you need to do is write your code and set the conditions. You pay only for what you use and you are not charged when your code is not running.

Function Application Process

Figure 1 shows the process of using functions.

Figure 1 Function application process

The process is explained as follows:

  1. Write code in Node.js, Python, Java, Go, C#, or PHP. For details, see the FunctionGraph Developer Guide.
  2. Alternatively, edit code inline, directly upload a ZIP file or JAR file, or upload a ZIP file from OBS. For details, see Table 2.
  3. Create an API or set a cloud service event source to trigger the function. For details, see Using an SMN Trigger, Using a DMS Trigger, Using an APIG Trigger, Using an OBS Trigger, Using a DIS Trigger, Using an LTS Trigger, Using a CTS Trigger, and Using a Timer Trigger,.
  4. During function execution, FunctionGraph scales automatically based on the number of requests without the need for configurations. For details about the maximum number of function instances that can be run concurrently, see Usage Restrictions.
  5. FunctionGraph works with Log Tank Service (LTS), allowing you to query run logs of your function without the need for configurations. For details, see Querying Logs.
  6. FunctionGraph works with Cloud Eye, allowing you to view graphical monitoring information about your function without the need for configurations. For details, see Function Monitoring.
  7. After function execution, FunctionGraph bills based on the compute time you consume. The billing is down to the 100 ms range.

Workflow

FunctionGraph coordinates distributed application functions and microservice components using visual workflows. With FunctionGraph, you can use independently executable, discrete functions to build applications, which can be easily scaled up or modified to meet fast-growing and complex service requirements. FunctionGraph has the following features:

Workflow application process

Figure 2 shows the process of using workflows. Typically, you can orchestrate an internal trigger in an event workflow or bind external triggers to a workflow.

Figure 2 Workflow application process