Review of Party Building Answering Mini Program

Background of this article

The party building answering activity analyzed in this article was held on June 22, and it has been operating normally for the fifth day. Since it was estimated that 700 users will answer the questions every day, to ensure the normal progress of the activity, so under my suggestion Pay-as-you-go service

Overview of this article

This article mainly analyzes the daily use of cloud development resources since the launch of the answering activity on June 22, to evaluate how large-scale single-day answering users are supported by the free package of cloud development.

Through this analysis, it is convenient for me to be more targeted when making package decisions in the future

related articles

Review of the Mini Program of Party Building Answering Activities

https://developers.weixin.qq.com/community/develop/article/doc/000a4296148320f6b68a852c851413

How to open the cloud development CMS content management system

https://developers.weixin.qq.com/community/develop/article/doc/0000cab5cd87b8bca68a3f23253413

Article content

Everyone knows the free package developed by cloud, but it is implemented in a small program. Many people are not very clear about the number of users that this free package supports. As the two core indicators in the free package, that is, the number of read operations. And the number of write operations

(1) The number of read operations, 50,000 times a day

(2) The number of write operations, 30,000 times a day

Of course there are many other indicators, but as an answering applet, the main indicators are the above two.

My screenshot is as of now (2020-06-27 22:30) Resource usage of the cloud development control panel

The figure below shows that as of now, 128 users participated in the answer today

On the main panel of the Cloud Development Console, only a rounded 10,000 times is displayed for the number of read requests

In view more, we can see more detailed resource usage, such as

(1) 12,200 read request operations

(2) 8,932 write request operations,

Through these two sets of data, it is not difficult for us to find that the current free package is sufficient to support current operations.

 

Summary of this article

Through the current actual usage and the configuration of the free package, it is not difficult for us to come to a conclusion. According to the logic of the existing applet, the maximum number of users supported by the cloud development free package is about 500. The specific calculation logic is

Calculate according to read operation

50000/12200 *128 = 524 people

Calculated according to write operations

30000/8932 * 128 = 429 people

Notes for this article

(1) Since it took only two days to make this small program, some problems were found after it went online. Since the activity has already started, no changes have been made to the core logic of the answer. For some problems in the data, they are all through the cloud function Timing trigger, repaired at every hour, this scenario consumes more write operations

(2) The calculation of the cumulative ranking is also calculated by the cloud function timing trigger every hour. This is also a scenario where the write operation consumes more

 

Through the above two remarks, I want to explain: under normal circumstances, the write operation will not be so high

 

Guess you like

Origin blog.csdn.net/qq_29528701/article/details/107014898