Function calculates the build Serverless Web applications (three) - open CDN acceleration for Web applications

Brief introduction

Ali cloud function computing (Function Compute) is a fully managed event-driven computing services, Ali cloud Serverless Computing Platform. Function calculation based building applications, you need to manage servers and other infrastructure, but rather focus on developing the application logic, a substantial increase in development efficiency.

Function calculates the build Serverless Web application (a) - HTTP trigger set forth in the Web application (Serverless web backend) is a very important function calculates a usage scenario. Compared to the traditional build web applications on the server, computing functions without having to manage your infrastructure servers, just write code and upload function calculates will prepare well for your computing resources to resilient , reliable way to run your code, in milliseconds resilient and elastic, easy to deal with peak pressure.

Function calculates the build Serverless Web applications (2) - a custom domain name set forth in the binding custom domain name, custom domain names function, with the use of HTTP trigger for users to build Web applications using the function computing convenience.

This article describes your Web applications enable CDN acceleration , assign the contents of your response to the most appropriate service node, so that end-users with the fastest speed reading to the desired content, effectively reducing access latency, improve service quality .

Introduce the principle of

Calculated as a function of open CDN acceleration service , the application can be deployed in the function calculation as the source station, to publish content to the source edge node.

When you use CDN, you need to understand the following concepts:

Accelerate Domain Name: You need to use the CDN acceleration domain;
source station domain: the domain of the actual business, which is in the FC custom domain name .
When calculated as a function of the back-end CDN application requires you to bind a custom domain name on the calculation function, and then set the custom station domain source domain to accelerate the domain name.

Build step

Do not just build a step too simple Okay!
You have two ways to enable CDN acceleration for your Web application:

Method 1: Turn CDN acceleration service by FC console

You only need when binding custom domain name, open the CDN services to accelerate and accelerate binding domain! So easy ~~

fc-console

Second way: open CDN CDN acceleration service through the console

Of course, you can also CDN console settings, follow these steps:

  1. Enter the CDN console
  2. Enter [Domain Management] -> [domain name] added
  3. Fill domain acceleration, and select a custom function calculation domain as the source station
  4. Successful configuration

cdn-console

Guess you like

Origin yq.aliyun.com/articles/707023