By Ankit Mehta
Alibaba Cloud offers Function as a Service (FaaS), where operations and maintenance are a cloud provider's responsibility, so companies and developers can focus on the code.
Alibaba Cloud Function Compute (FC) is a Platform as a Service (PaaS) solution to support microservices and web applications. Function Compute provides integration with other Alibaba Cloud services, such as Virtual Private Cloud (VPC), Object Storage Service (OSS), ApsaraDB for RDS, and others.
Function Compute supports leading programming languages, such as Node.Js, Java, Go, PHP, Python, and .Net Core. In addition to this list, a docker container-based application deployment is also possible.
Go programming language adoption is rising in many financial institutions due to its stability, low resource consumption, and compatibility. Alibaba Cloud supports the Beego and Gin frameworks on Function Compute natively.
The following step-by-step guide explains how to deploy a Beego application on Function Compute using the Alibaba Cloud management console:
Note: Function Compute requires authorization to activate the service when you access it for the first time. Therefore, you need to use a master payer/root account to initiate the Function Compute the first time:
Note: The deployment process can take up to 15 minutes to complete.
Essentially, Alibaba Cloud uses the Resource Orchestration Service (ROS) in the backend to deploy the Function Compute stack. The Events section provides the stack deployment log:
Step 7: The Overview section provides details such as:
Click on the Domain Name URL. It will lead you to the deployed web application:
You can view all the deployed components by navigating to the Resources section and clicking on the Settings tab:
The Export Function button provides a facility to download existing source code. Users can import the exported source to the new function or with modifications to update the existing function.
The Monitoring section provides extended analytics of the deployed function, including invocations, memory, running time, errors, and more:
The Logs section contains all application logs that can be filtered by hours, days, weeks, or months:
The Deployment section gives you the ability to deploy the newer version of the function by clicking the Publish button and importing the source code. Note: It is preferred to export the function as mentioned in the previous steps. Then, modify it, and import it again.
The following steps are required to import the modified code:
The Settings section provides application settings details. Users can modify the start command settings if needed.
Alibaba Developer - February 1, 2021
JDP - July 17, 2020
Alibaba Clouder - March 2, 2021
Alibaba Clouder - July 20, 2018
JDP - October 21, 2021
JJ Lim - September 17, 2021
Alibaba Cloud Function Compute is a fully-managed event-driven compute service. It allows you to focus on writing and uploading code without the need to manage infrastructure such as servers.Learn More
An online computing service that offers elastic and secure virtual cloud servers to cater all your cloud hosting needs.Learn More
Accelerate software development and delivery by integrating DevOps with the cloudLearn More
Link IoT Edge allows for the management of millions of edge nodes by extending the capabilities of the cloud, thus providing users with services at the nearest location.Learn More
More Posts by Alibaba Cloud Community