FunctionGraph

FunctionGraph hosts 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 the execution conditions. You pay only for what you use and you are not charged when your code is not running.

No charge for the first 1 million function invocations each month.

Learn more
Product Advantages
  • No Servers to Manage

    Function code is run automatically without the need for provisioning and managing servers, allowing you to focus on business innovation.

  • Auto-scaling

    Functions automatically scale to suit fluctuations in resource demands, ensuring that the services remain accessible even during peaks and spikes.

  • Event-based Triggering

    FunctionGraph works with multiple cloud services (such as SMN, OBS, DIS, and DMS) in an event-based triggering mechanism to meet diverse service requirements and improve development efficiency.

  • Pay per Use

    You will be billed based on the number of requests, execution duration, and number of state transitions (precise down to the 100 ms range).

Application Scenarios
  • Real-time File Processing

  • Real-time Stream Processing

  • Web & Mobile Backends

  • Artificial Intelligence

Real-time File Processing

Real-time File Processing

Uploading files from a client to OBS triggers functions that create image thumbnails in real time, convert video formats, aggregate and filter data files, or implement other file operations.

Advantages

Event-based Triggering

Files are uploaded to OBS to trigger file processing functions.

Auto-scaling

FunctionGraph automatically scales out resources to run more function instances as the number of requests increases.

Pay As You Go

You will be billed only for the file processing time you consume as needed, and you will not be charged for idle resources during periods of low demand.

Related Services

obs

Real-time Stream Processing

Real-time Stream Processing

FunctionGraph works with DIS to process real-time streaming data for such purposes as application activity tracking, transaction order processing, stream analysis, data cleansing, log filtering, metrics generation, social media analysis, and IoT device data telemetry and metering.

Advantages

Event-based Triggering

Data is collected by means of DIS streams to trigger data processing functions.

Auto-scaling

FunctionGraph automatically scales out resources to run more function instances as the number of requests increases.

Pay As You Go

You will be billed only for the data processing time you consume as needed, and you will not be charged for idle resources during periods of low demand.

Related Services

dis

obs

Web & Mobile Backends

Web & Mobile Backends

FunctionGraph combines with other HUAWEI CLOUD services or your virtual machines to quickly build web & mobile backends with high availability and scalability.

Advantages

High Availability

FunctionGraph ensures high reliability of website data using OBS and CloudTable, and high availability of website logic using API Gateway.

Auto-scaling

FunctionGraph automatically scales out resources to run more function instances as the number of requests increases.

Pay As You Go

You will be billed only for the data processing time you consume as needed, and you will not be charged for idle resources during periods of low demand.

Artificial Intelligence

Artificial Intelligence

FunctionGraph combines with HUAWEI CLOUD EI services for fast text recognition and illicit image identification.

Advantages

Quick Establishment

Image upload triggers functions for text recognition and content moderation in a wide range of scenarios. You can make adjustments whenever you need to as demands change.

Easy O&M

You only need to apply for required services and write service code without having to provision or manage servers.

Pay As You Go

You will be billed only for function execution and EI services used, and you will not be charged for idle resources when service demands are low.

Related Services

obs

ocr

moderation

Functions

  • Function Management

    Web-based console for managing functions

  • Flexible Specifications

    Support for multiple runtimes and function memory sizes ranging from 128 MB to 1.5 GB

Function Management

  • Editing Code Inline

    For functions in runtimes such as Python and Node.js, you can edit code inline with syntax highlighting.



  • Uploading Function Packages

    You can zip all dependencies and code of a function and upload the package to FunctionGraph.

  • Uploading Function Packages from OBS

    For a function package larger than the threshold, you can upload it to OBS and specify the URL of the package in your function. FunctionGraph automatically downloads the function code and dependencies in the package from OBS.

Flexible Specifications

  • Multiple Runtimes

    FunctionGraph supports functions in various runtimes, such as Python, Node.js, Java, and Go.

  • Wide Memory Range

    The memory size ranges from 128 MB to 1.5 GB to store function instances.

  • Auto-scaling

    Automatic scaling of function instances based on the number of requests

  • High Availability

    Automatic scheduling of new function instances to process requests in case of instance errors

Auto-scaling

  • Request-based Scaling

    FunctionGraph automatically scales resources based on the number of service requests during peaks and spikes. It supports load balancing that distributes requests to function instances to ensure high processing performance.

High Availability

  • Automatic Fault Recovery

    If an instance becomes faulty, FunctionGraph starts another instance to process new requests and releases resources from the unhealthy instance.

  • Event-based Triggering

    Multiple types of triggers supported to execute functions

  • Monitoring and Logging

    Function metrics monitoring and run logs collection to provide a full view of function statuses

Event-based Triggering

  • Triggering Functions by Different Event Sources

    OBS: Functions are triggered when operations, such as uploading, copying, and deleting objects, are performed on a bucket. For example, a function is invoked to compress and transform the images or videos uploaded to a specified bucket.

    SMN: Functions are triggered to process messages sent to a specified SMN topic.

    DIS: Functions are triggered to process the data uploaded to a specified DIS stream.

    DMS: Functions are triggered to process messages sent to a specified DMS queue.

    APIG: Functions are triggered to perform specified operations when a custom REST API is called.

    Timer: Functions are triggered according to configured rules.

    LTS: Functions are triggered to analyze and process subscribed logs.

    CTS: Functions are triggered to analyze and process subscribed operation records.

    Manual invocation: You can manually invoke functions using an API or the console for debugging purposes.

Monitoring and Logging

  • Function Monitoring

    FunctionGraph displays key metrics of functions, including invocations, errors, throttles, and execution duration.

  • Function Logging

    FunctionGraph records the run logs of functions, making it easy to debug and audit functions through log query.

Usage Guides

Create an Account and Experience HUAWEI CLOUD for Free

Register Now