头图

At the 2021 Tencent Digital Ecology Conference, a customer success story of "Spending Small Money to Do Big Things" impressed both customers and developers. This is precisely the application practice of small programs based on cloud functions and cloud development.

This year, a leading fast-moving consumer goods brand named a large-scale CCTV holiday party. On the night of the party, the number of new registered users of the small program received by the customer reached the expected business goal. The number of visits on the day reached tens of millions, and highest instantaneous concurrency. Millions of requests per minute, while the cost of using the entire cloud function computing resources is only tens of thousands of yuan. The overall time consumption was stable, and the average API time consumption was less than 20 milliseconds, which ensured the smooth progress of this event.

客户小程序访问量

After evaluating the selection of different applet technologies, the customer chose cloud development and cloud functions to build the customer's applet from the perspectives of development efficiency, flexible support, and security. The core business logics include login authentication, lottery, question and answer, etc. Utilizing the advantages of private links, full link performance optimization, and basic security protection provided by cloud development, combined with the advantages of cloud function elastic scaling, low operation and maintenance costs, and high cost performance, this event provides stable infrastructure support and advanced Efficient development tools ensure the complete success of the event.

01.

CCTV Evening-E-commerce Festival Promotion Scenario Demand Analysis

The mini program carries the user's new recruiting and conversion goals for this event. When the host broadcast event starts, the mini program QR code is displayed on the TV screen, and the audience scans the code to enter the event landing page:

小程序前端页面

1. Demand characteristics and pain points

  • application life cycle

The application life cycle is based on the business model-holiday promotion, e-commerce spike application goal is to quickly explode to seize the market in a short period of time, the life cycle is usually 1 week to 1 month.

  • has high customization requirements

In order to deeply integrate with the event goals and product brands, the event page is very personalized from design to interactive settings, and needs to be customized development.

  • A typical high-concurrency scenario

The amount of instantaneous visits is usually dozens of times the usual. It is necessary to consider all aspects of computing, storage, network and service dependencies. If the key constraints and risks are not identified, there may even be a risk of downtime.

全景架构图

2. Program advantages and value

  • full link performance optimization

From the front-end access layer of the applet to the back-end database, from the external link to the VPC network, perform full link performance analysis, monitoring and tuning according to the QPS estimated by the customer, reducing response time, improving system throughput and overall service availability .

  • Efficient low-code development tool

Cloud development + mini-build low-code platform, supports custom components, empowers applet service providers to improve the efficiency of applet construction, and quickly completes the page construction by dragging and dropping the page.

  • scalable cloud resources

Faced with instantaneous high concurrency resource reservation pain points, the ultimate elastic expansion capability of cloud functions is suitable for high concurrency scenarios, without the need to estimate the size of the traffic, and automatically expand and shrink the capacity according to the traffic situation, without manual intervention in the whole process.

As the solution architect of this CCTV gala e-commerce promotion, Yang Zhengquan, the expert architect of Tencent Cloud Serverless, said:

as-you-go cloud functions break the bottleneck of traditional PaaS products. Through rapid expansion and contraction, it can easily cope with instantaneous high-concurrency spikes and big promotion scenarios, and support business growth with stable, reliable and cost-effective computing services. ”

02.

Cloud function + cloud development, responding to the big promotion scenario of the e-commerce industry

The mini program scene of the CCTV evening party is a common demand for user marketing and festival promotions in the e-commerce industry. During the annual promotion period, online channels in the retail industry face historical-level traffic challenges. The peak call volume of medium and large e-commerce platforms can reach tens of millions per minute, which is 10-20 times higher than the daily traffic pressure. In daily operating activities, such as boutique spikes and limited time purchases, e-commerce platforms also face typical scenarios with large traffic, high concurrency, and peak and valley user traffic.

云开发+云函数,弹性算力,平稳支撑电商活动需求

As the underlying computing power, cloud functions help cloud development to provide developers with highly available, automatically and elastically scalable back-end cloud services, including serverless capabilities such as computing, storage, and hosting. On the basis of Tencent Cloud products, the integration and customization of functions are carried out according to the needs of business scenarios, which is closer to the development needs of small programs/web applications, helping developers to build and manage back-end services and cloud resources in a unified manner, and avoid cumbersome application development. Server construction and operation and maintenance allow developers to focus on the realization of business logic, reduce development thresholds, and improve development efficiency.

program advantage

  • quickly build

Through the simple "drag and drop" of WeDa, we can quickly complete the construction of the activity page, and the creative ideas can be realized immediately, and the development efficiency can be increased by more than 3-5 times.

  • ultra-high concurrency

It can quickly pull up 10w concurrent instances and stably support the influx of instantaneous ultra-high traffic.

  • Security and stability

Provide WeChat security gateway, risk control, private link, authentication and other capabilities to protect security, put an end to gangsters, and prevent malicious attacks.

  • lower cost

The event greatly promotes the allocation of exclusive resource pack services, which will be stopped when used up, reducing the investment in core service resources.


"2021 Tencent Digital Ecology Conference-

"The technology of Cloud Native 2.0, that is, the technology of Serverless, first of all, let's take a look at the current situation of the industry. There are two obvious problems with the traditional R&D model:

  1. Basically, about 40% of users, their CPU utilization is less than 10%. What does this data mean? With so many users, 90% of the CPU is idle, which is a huge waste.
  2. The ratio of enterprise R&D personnel and operation and maintenance personnel is about 3:1. As the scale of the enterprise continues to increase, the demand for operation and maintenance personnel is increasing, and a lot of manpower is placed on the maintenance of infrastructure. It is the problem we see.

Serverless can solve these two problems well. First, it is billed according to the actual amount of user requests and actual usage. When idling, there is no billing at all; there is no need to pay for idling at all, you only need to pay for your actual use. Especially for enterprises with low CPU utilization, by adopting serverless technology, they can greatly reduce their own costs. The second is the free operation and maintenance: the so-called serverless is for users, no operation and maintenance is required, so who is the operation and maintenance work assigned to? The operation and maintenance work is handed over to the service provider of the public cloud, and we are responsible for the operation and maintenance work. The entire process is automated, which is free of operation and maintenance for users, so the customer's operation and maintenance costs have been greatly increased.

Next, I will talk about a very typical example that happened recently. For a leading brand in the washing industry in China, they recently held an event on CCTV. This event is an event that all online and offline audiences can scan to participate in. There are a lot of people attending the whole event, and their time is very tight. What should I do?

They found us, and they don't have much experience in how to engage in this activity. Although the client's company is very large, traditional enterprises still have relatively great pressure on technology selection in such a short period of time. Later, we provided our customers with Tencent Cloud's Serverless technology, using SCF cloud function services, which went online after two days of research and development, and the customers were very satisfied with the overall results. During the peak period, there are millions of concurrent users per minute. At the end, there are hundreds of thousands of newly registered users, and the cost of using the entire cloud function computing resources is only tens of thousands of yuan. With a cost of tens of thousands of yuan, a large-scale advertising and marketing campaign was completed at a CCTV party. Compared with the cost of customers buying advertisements on CCTV, it is actually very small. It is the so-called spending small money to do big things.

—— Liu Ying, Vice President of Tencent Cloud

Cloud function + cloud development + micro-build low code, marketing promotion cloud one-stop solution consulting

Identify/scan the QR code below and submit the information. We will contact you within 1-3 working days to communicate with you for more business scenario information and provide you with a more suitable package plan.

图片


CloudBase云开发
425 声望438 粉丝

云开发(Tencent CloudBase,TCB)是云端一体化的后端云服务 ,采用 serverless 架构,免去了移动应用构建中繁琐的服务器搭建和运维。同时云开发提供的静态托管、命令行工具(CLI)、Flutter SDK 等能力极大的降...