Skip to content

Latest commit

 

History

History

cloudfunction

CloudFunction SDK demo

Introduction

This project helps you quickly build your system. This example project provides guidance only on how to use the SDK in common scenarios, you need to modify parameters accordingly.

Preparing the Environment

Before using the cloud function SDK, your server need support Java 8 and higher.

Configuration

Before running the cloud function SDK, you need to:

  1. Create your own project
  2. Download authentication credential

Sample Code

  1. Custom-runtime Function Example Module: custom-runtime-function-demo Sample code directory: src/main/java/com/huawei/faas

  2. Java-runtime Function Example Module: java-runtime-function-demo Sample code directory: src/main/java/faas

  3. Example of Locally Invoking an HTTP Request Cloud Function Module: invoke-http-function-in-local Sample code directory: src/main/java/com/huawei/faas

  4. Example of Invoking an HTTP Request Cloud Function on the Cloud Module: invoke-http-function-on-cloud Sample code directory: src/main/java/com/huawei/faas

License

This demo is licensed under the [Apache License, version 2.0] (http://www.apache.org/licenses/LICENSE-2.0).