1 R&D employee + ¥****300 yuan/month back-end service fee, support the business growth from 0 to ¥30000000 in half a year, how to do it? Shen Zeming from a startup company gave an answer with his team’s real experience at the second Small Program Cloud Development Technology Summit.

The front end becomes full stack

Shen zeming was part of a start-up team of less than 10 people. In the initial stage, there were only 3 people, among whom only he was responsible for RESEARCH and development.

And he was straight from the front.

“Why did I take this development job? It’s all because of this new technology of cloud development!” Shen zeming recalls.

Originally, in order to support the entrepreneurial project, Shen Zeming learned about cloud development and spent a month studying it systematically. With in-depth understanding and use, he decided to choose cloud development as the technology stack of the project. “Write code with cloud development, write and find that it is too easy to use, the feeling of one person in charge of the front and back end is too cool!” .

As Another speaker at the summit, Tencent Cloud TVP Huang Xitong said: “Our front-end development, since the birth of this post, the boundary has been constantly derivative and expansion. What I think is more fun now, what gives the front end more power, what makes us play more cool, are the trends toward the back end. And cloud development complements this cloud capability to make the front end more of a geek than ever before.”

Soon, Shen Zoming completed the development and launch of “A Reward ONLINE” small program, starting their entrepreneurial journey: in half a year, the team created a sales performance of more than 30 million yuan, the sales growth of nearly 100 times.

affordable

What are the human and material costs of such rapid growth?

The answer is ** 1 person + monthly average less than 300 yuan **.

As the chart above shows, the cost of using cloud development is less than 900 yuan at its peak, and the average cost is less than 300 yuan per month. In March, the team switched the mini program to pay-per-quantity environment, and the system returned the unused balance of the package, so the cost in March was negative.

In addition, in a four-month period from March to June, the mini program carried nearly 3 million sales at a total cost of less than 70 yuan. Later, with the operation and promotion of small programs, users gradually increased, and the resource usage also increased. Even so, the highest cost only reached 861 yuan in August.

Careful developers have probably figured out why September and October sales are as good as August, but costs are lower.

The reason is that Shen Zeming observed that the cost of CDN traffic accounted for a large part of the cloud development bill in August. From this, he realized that at the beginning of the business, the amount of pictures stored in the small program was small and was not compressed. However, with the sharp increase of business volume, picture compression became necessary. The cost was significantly reduced by a third after image compression was completed through the applet cloud development call extension capability.

Charging by volume, automatic expansion and contraction

So why is the cost of cloud development so low? The team agreed that the automatic scaling of cloud development was to blame.

Before cloud development, server costs were always a big expense for a startup. According to Shen Zeming, the root cause is the waste of resources: “Because businesses have traffic peak and low peak, in order to ensure stable operation of business during peak, enterprises often buy high-performance and expensive servers, or even cluster load balancing, which will lead to a large number of server resource waste when business traffic is low peak. “The pay-as-you-go and automatic scaling of cloud development is the perfect solution to the startup server cost problem.”

Here, Shen Zeming illustrates with personal experience: the team did the first promotion activity in September, and the instantaneous flow of traffic showed that the two small programs both carried more than 100,000 visits.

At that time, little application of the development of cloud cloud function expansion and automatic mechanism can play a role, rapid response capacity to cope with heavy traffic, let this promotion activity is completed, after the activity, traffic also gradually restore normal level, then automatically shrinkage mechanism to start again, close idle function of cloud resources, reduce the cost of server.

In addition, in order to ensure the smooth operation of the “11·11” activity, the team made double guarantee: one is to submit work orders and ask the engineers of the cloud development team to warm up the cloud function in advance; the other is to extend the activity time and spread the flow as far as possible, not concentrated at a certain point in time. On this basis, the “11·11” activities in the business applets run very stable, the platform goods are also sold out.

Data show that “11·11” on the day of sales of more than 2 million, but the cloud development cost of the day only spent 10 yuan more than usual, that is to say, with small program cloud development, spend 10 yuan to hold a “11·11” millions of water sales activities.

Permission setting, data security

When a start-up company has a certain scale, it will involve personnel expansion, which often leads to the problem of personnel authority control and data security, which is also a point that some start-ups tend to ignore.

In terms of data security, small program cloud development provides fine-grained permission control functions, which can set the required permissions for each member and make different allocations for different cloud environments. For example, the test service environment gives full read and write permissions, while the production service environment only gives read permissions, and so on.

In addition, the permission control function is not only applicable to developers, but also fine-grained adjustment of the permission of operation personnel, effectively reducing security risks.

In addition to the permission problem, database security is also a problem that start-ups need to pay attention to. Enterprises need to focus on how to avoid the occurrence of “deleting libraries and running away”. In this regard, the small program cloud development launched automatic database backup capability, support daily automatic database backup, then, under the efforts of the cloud development team, and upgraded the automatic backup mechanism, to achieve the second level database backup.

“If there is a problem at one second, the error tolerance increases by several orders of magnitude by going back to the previous second,” Shen said.

Grow with cloud development

“As a start-up team of less than 10 people, in half a year to create more than 30 million sales, such rapid development can not be separated from the help of cloud development, we are growing, cloud development is also growing.” Shen Zeming said with a smile.

Product introduction

Cloud Development (TCB) is a cloud native integrated development environment and tool platform provided by Tencent Cloud. It provides developers with highly available, automatic and flexible expansion of back-end cloud services, including computing, storage, hosting and other serverless capabilities, which can be used for cloud integrated development of various end applications (small programs, Public account, Web application, Flutter client, etc.) to help developers build and manage back-end services and cloud resources in a unified manner, avoiding tedious server construction, operation and maintenance during application development. Developers can focus on the implementation of business logic, with lower development threshold and higher efficiency.

Open cloud development: console.cloud.tencent.com/tcb?tdl_anc…

The product documentation: cloud.tencent.com/product/tcb…

Technical documentation: Cloudbase.net? From =10004

Technical exchange plus Q group: 601134960

Latest news follow wechat official account [Tencent Yunyun Development]