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

How to use Serverless + CLB to quickly deploy Web services?

2025-03-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article focuses on "how to quickly deploy Web services with Serverless + CLB?" In daily operations, it is believed that many people are using Serverless + CLB to quickly deploy Web services? There are doubts on the problem. The editor has consulted all kinds of materials and sorted out simple and easy-to-use methods of operation, hoping to answer "how to quickly deploy Web services with Serverless + CLB?" The confusion helps! Next, please follow the editor to study!

Create a cloud function SCF

Enter the SCF console and click "New" to create the function.

Function console address: https://console.cloud.tencent.com/scf/list

Select a custom template to create, the running environment is set to "Python3.6", select "local upload folder", download Demo content, after a successful download, need to decompress, upload the entire local folder in the "function code".

Execution method: index.main_handler

Demo download address: https://scfdemo-1253970226.cos.ap-chengdu.myqcloud.com/21_3_17_daxigua.zip

When you are finished, you can customize the relevant code in the function console.

Create a load balancer CLB resource

Go to the CLB console of load balancer, and click "New" to create resources.

Function console address: https://console.cloud.tencent.com/scf/list

Select the cloud load balancer instance supported by the cloud function.

Note: currently, SCF supports binding instances in the same region where the network type is "public network" and the network is "VPC". Listeners support "layer-7 listeners", but not layer-4 listeners.

Create a listener.

Bind SCF instance resources in the CLB console or SCF console.

Visit the path of the CLB listener to view the overall effect (experience address: http://129.226.10.72:81/daxigua).

Scheme summary

Through the access path of CLB listener, you can quickly expand the access and usage scenarios of Serverless applications. Provide developers with highly available Serverless application access services.

instructions

CLB trigger is currently in grayscale testing stage. You can submit an application to use it.

CLB accounts are divided into standard account types and traditional account types. Traditional account types do not support binding to cloud function SCF. It is recommended to upgrade to standard account types. For more information, please see the account type upgrade instructions.

At this point, about "how to quickly deploy Web services with Serverless + CLB?" The study is over. I hope I can solve everyone's doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

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