Futu Niu Niuyun first-hand experience of small program development, the old driver leads the way!

Futu Niuniu Stock is a product that provides account opening and trading services for Hong Kong stocks and US stocks. It is also one of the first small programs based on the rapid development of Tencent Cloud. The Futu Niu Niu Stock Mini Program was launched on January 9 with a total number of users exceeding 2W on the first day and a total number of uses exceeding 15W.

Futu Niu Niu stock applet page:

clipboard.png

Product logic

At the beginning of product design, the team adheres to the concept of quickly and efficiently solving user needs from the scene. It is hoped that the user will be triggered by the real scene, use the Futu applet to solve the problem, and then leave such a path.

Futu Niuniu itself is not a lightweight product, but the starting point of the small program is light weight and efficiency improvement, so we analyzed what kind of users will use a stock type of light in what scenarios. Small program, product summary mainly has the following two scenarios:

  1. The users are mainly stock followers, and occasionally need to pay attention to the price of several stocks. There is a demand to buy stocks, but the frequency is very low. For these users, there is really no need to install an app in the mobile phone, which can be solved through a small program.

  2. Users have positions, but they hold them for a long time, and occasionally pay attention to the price of the stocks held, the profit and loss of positions and other information.

Product design ultimately focuses on the two keywords "low frequency" and "basic service" to do product function planning. The function of Futu Niu Niu Stock Applet finally presented is simple, lightweight and practical, which is the basic stock service experience. Including market prices, market prices, individual stock prices, information, account system, asset query, online account opening, and the trading functions being implemented.

Development experience

As one of the first developers of small programs, Futu is in pain and happy.

The biggest feeling is still the execution and efficiency of WeChat colleagues. The API on the official website will be updated in 2-3 days, and the developers' feedback can be answered within 24 hours at the latest.

During the development process, many problems were encountered, but most of WeChat has been solved. If you are developing a WeChat applet for the first time, the following experience should be able to help you, especially in architecture design and interaction design. The following are the most impressive questions:

  • Code + Resource <= 1M

  • The UI stack has only 5 layers, and an exception is thrown directly at the 6th layer

  • The concurrent number of http is 10 (previously it was 5), the 11th directly throws an exception

  • The applet cannot jump outside (jump H5, etc.), all the work can only be done in the applet

  • No API for reading and writing binary stream files

  • Provide key-value form is permanent storage, limit 10M size

  • JavaScript is single-threaded

solution

When designing, take these factors into account. For example, if the code is only 1M, we will divide the iteration as small as possible to avoid hacking the code. The UI stack can only have 5 layers. When designing interactions, you can only follow this rule. Because it is rapid development, generally speaking, the documents are read carefully and then developed. If you encounter problems that cannot be solved for a long time, you will feedback to WeChat colleagues. These few experiences written for the first time to develop small programs, their code is suitable and interactive design is extremely beneficial. I have seen that after the code is written, it exceeds 1M, and then cut the code, the pain of cutting.

Tencent cloud applet solution experience

The overall structure is not much different from Tencent Cloud's official website:

clipboard.png

The products that use Tencent Cloud are:

  • Cloud Server

  • Cloud load balancing

  • Domain DNS

  • HTTPS access

  • Object storage

  • CDN acceleration

  • Cloud Redis

  • Cloud MySQL

The following are the real feelings submitted by Futu background development students:

  • DNS: There is no need to maintain a set of DNS servers by yourself. The filing process is clearer, step by step does not need to search for things in the east, saving time;

  • https support: the certificate is in one place, no need to copy it. This part of Tencent Cloud is equivalent to a certificate management system, which is free to manage and does not require certificates to be deployed to each machine;

  • Object storage: Needless to say, distributed storage is very costly to implement, and it can be used as cool as possible;

  • CDN acceleration: integration of various operators, nationwide distribution, all in one network. Tencent Cloud has become a CDN expert;

  • Cloud Redis: Cloud Redis with unlimited capacity expansion, no need to pay attention to the complicated data support and expansion process. The page is lightly clicked, and the expansion is completed immediately;

  • Cloud database MySQL: Master-slave synchronization is no longer annoying, application is ready. There are also off-site deployments to achieve true off-site disaster tolerance. Expansion is a matter of moments.

summary

As one of the first batch of mini-programs, Futu Niuniu has stepped on some pits during the development of WeChat mini-programs, and accelerated the development process using the Tencent Cloud Mini Program solution. Overall, small programs have become an indispensable part of APP + H5 for Internet startups, and we look forward to seeing more developers entering the pit.


Learn more about small dry goods can go to Tengyun Pavilion

Guess you like

Origin www.cnblogs.com/jlfw/p/12733387.html