Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the application scenario of CDN back-to-origin function calculation?

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

What is the application scenario of CDN back-to-origin function calculation? I believe many inexperienced people are at a loss about it. Therefore, this paper summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.

The CDN team and the function computing team recently introduced a new feature, that is, to process the back-to-origin traffic to the function calculation through CDN. This function is designed to help CDN users to process the back-to-origin data quickly and conveniently through the function calculation. Users only need to fill in the custom domain name calculated by the function in the CDN back-to-origin address to forward the request to the function calculation for processing. The configuration is simple and the cost is low. Previously, CDN origin-pull can set several destinations, such as origin-pull to IP address, domain name or object storage OSS, but now a new type of back-to-origin function calculation has been added, which is different from other types. For example, after CDN origin-pull is sent to an IP in ECS, ECS needs to start a set of services to listen for CDN requests, which requires high requirements for system design. For example, if CDN is used for origin-pull to OSS, it can only be static files. When users personalize the back-to-origin content, the above methods are not flexible enough.

Added CDN back-to-origin function architecture diagram:

The business flow diagram can be summarized as follows:

Main function:

Dynamic processing of CDN back-to-origin data

CDN request address processing

Pull through CDN requests and multi-class data processing

Authenticate and redirect the requested address

Scene advantage

Request link shortening (reduce load balancing)

Flexible expansion after request

Authenticate and redirect the requested address

Technical characteristics

Simple, only need console operation configuration

Built-in load balancing and flexible computing capacity expansion, which can support massive concurrency

Support for multiple mainstream languages, java,Nodejs,Python,PHP,C#, etc.

Ali cluster-level secure access

Operations on the console

CDN console configuration:

Function calculation console configuration:

Applicable scenario

Website scene

Static and dynamic web page metadata processing for CDN origin server

File processing scene

Used for CDN origin server multimedia data processing, such as text, picture, video, audio and so on.

Request distribution scenario

The request can be dynamically processed by URL address through function calculation and then distributed to other applications.

The introduction of the above scenarios has several obvious benefits for users:

1. Save traffic costs. Customers who use CDN back-to-origin function to calculate proprietary domains will have a more favorable price than public network traffic (price concessions will be announced later).

2. Customers can easily connect many products together, for example, through function calculation, multiple products can be combined to provide data processing for requests after CDN, such as Sina Weibo image processing (FC+OSS), such as hot data loading of mango TV.

3. It can be used as data processing or request distribution channel. Compared with ECS, this solution has the feature of automatic auto scaling. CDN + function calculation = CDN + load balancer + computing can support a large number of CDN requests in a very elegant and flexible way.

4. The lightweight data processing program is convenient. Writing a function in 5 minutes can flexibly deal with the requested data without maintaining the running environment. In short, it is a great function, so you might as well try it.

After reading the above, have you mastered the application scenario of CDN back-to-origin function calculation? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report