all the time , How to build high performance faster , Highly scalable mobile applications have always been a hot spot in the mobile industry . In the traditional mode , Developers manually integrate the various mobile services they need , Work closely with the background to create high-quality mobile applications . The traditional model will cause some problems ： Different integration and initialization methods , It leads to the scattering of code and the increase of maintenance cost , The strong dependence on background services reduces the individual combat capability of mobile developers , Make the whole development experience not closed-loop .
Tencent cloud , Tencent mobile analytics , Tencent mobile pushes carrier pigeons , Crash monitoring bugly, Tencent billing master jointly launched the mobile development platform , Create a new model of mobile development ： Mobile development as a service （mobile as a service）, First zero code integration , Cloud integrated closed-loop development experience based on configuration .
However , Although many developers of children's shoes have also contacted these services of Tencent cloud , But how to use these services , Create a new mobile development model on Tencent cloud platform , It's simpler 、 Efficient 、 High quality mobile development is still not particularly clear .
So ,5 month 26 Japan , Tencent cloud hosting cloud + Community salon , Five Tencent cloud technology gurus were invited , Explained in detail for developers under the new Tencent cloud mobile development mode , How to provide many cloud based mobile services for mobile developers based on Tencent cloud , Helping developers is simple 、 Efficient 、 Complete mobile development work with high quality .
Mobile development as a service
In the traditional mode , The services available to mobile developers are usually provided in the form of a single product or capability , For example, push is a service that provides push , What analysis provides is the service of analysis . This model , Maybe under a single product , Can do the best , It can also provide good and convenient access 、 Use 、 Management experience . But for the whole mobile development , This mode of providing a single service will lead to the whole mobile development experience is not smooth 、 Imperfect , The fragmentation between various products will lead to the fragmentation of the rhythm of the whole mobile development , It is impossible to do a thing completely on one platform from beginning to end , So Tencent cloud proposes a new model , Mobile development as a service .
Hu Zerui, head of Tencent cloud mobile development platform business, gave a detailed explanation on Tencent cloud's mobile development as a service in the salon . Hu Zerui said , Mobile development as a service , There are two concepts , The first is to provide developers with complete mobile development life cycle services . The second is to provide mobile developers with the best use experience .
Tencent cloud mobile development platform is actually the cooperation between Tencent cloud and various products in Tencent , Deeply integrated products . If you just look at the function , None of these products are particularly new , Widely used within Tencent , There are similar products outside the company that provide corresponding services . such as NTA、bugly、 Master Jimmy , Application treasure, etc . Tencent cloud mobile development platform has made a deep integration of these products , To form a whole , Provide developers with a new development mode and experience . The platform has three key points .
First , Easy to use . That is, the mobile development platform provides rich resources for developers 、 Highly readable documents support . secondly , Efficiency improvement . This promotion includes two aspects , Convenient access , Full range of functions . Third , High retention . From the perspective of Statistics , The final retention rate of developers on Tencent cloud mobile development platform can reach 50%.
The reason why Tencent cloud mobile development platform can achieve such achievements , Because it has grasped the pain point of mobile developers developing applications . actually , When developers develop mobile applications , The main pain point is that the code is messy 、 High communication cost 、 R & D efficiency is low , The core requirement of developers is to focus on the core business . This means that there are some general requirements , In fact, it should be provided by the platform , Mobile developers only need to focus on how to meet the core business .
therefore , For the design of mobile development platform , It should be considered from the following aspects .
1、 Structure thinking , Help developers build mobile applications with the thinking of architects .
2、 Fool application , The simpler it should be used, the better .
3、 Flexible collocation , That is, various functions plug and play at any stage of development , According to the need to use .
Based on this consideration , Tencent cloud mobile development platform provides developers with a zero code integration , Based on configuration 、 Cloud integrated closed-loop development platform , Coverage from R & D 、 test 、 Release 、 The whole process of mobile development life cycle from operation and maintenance to operation , This can help developers simply 、 Efficient 、 Flexible development of mobile applications .
Construction of Tencent carrier pigeon mass mobile push service
Mobile message push , As a way for users to reach . Basically, developers are developing mobile App It is a standard function in . However, limited by the terminal environment 、 infrastructure 、 Background service capability and other factors , To push ten billion messages 、 Real time tracking of push effect , There are still many technical challenges . If we go any further , Only push the content that the user is interested in , Do refined operation , You need the help of big data and machine learning platform , Add... To the push system BI The ability of .
Gan Hengtong, senior engineer of Tencent carrier pigeon, said , For message push, there are three main links , The first step is to retrieve the target users to be pushed , The second step is to select the appropriate channel for message distribution , Finally, the terminal displays the message after receiving it . For mobile push services , The most basic thing is to be at the terminal 、 backstage 、 Data services are refined at three levels .
The challenges faced by the terminal , Mainly ：
- Service To keep alive
- Operation capacity after terminal release
terminal Service Keep alive , The simplest way , It's for everyone App Play an independent Service、 Establish a long connection . This approach is relatively simple to implement , But for users , It will consume more mobile phone resources . Carrier pigeon mobile push is to give consideration to both service quality and user experience , Using a shared channel , More power saving 、 Flow saving . Carrier pigeon has served many large-scale enterprises inside and outside the company App, these App Can effectively improve Service Survival rate .
As for the operation capacity after the release of the terminal , Mainly as follows 3 Dimensions ：
- App Granularity scheduling capability ： It can be controlled through the background cloud , Realize the configuration distribution without user perception 、 Channel switching and other operations ; Support App Granular cloud scheduling .
- Accurate statistical data reporting . For push , It has a positive effect , It also has the opposite effect . However, to get accurate statistical results , There are a lot of details to pay attention to . such as , There are a lot of customization in China ROM, Call the interface to display the message in the notification bar , Whether the message is really displayed to the user , It may be limited by the model ; in addition , There is no unified and effective standard query interface , Query whether the user opens push . To get accurate statistics here , We all need to deeply understand the terminal environment , Do some technical optimization to realize .
- SDK Quality monitoring . In order to ensure the quality of the terminal , Tencent carrier pigeon has built a set from Crash Report 、 Call the police 、 Online repair Crash platform . This can strictly ensure the quality of the terminal .
Tencent carrier pigeon includes terminals 、 Access layer 、 Background logic layer , Storage 、 Data analysis platform 、 Most of the message gateways . For the data analysis platform , Provide users with real-time effect tracking , The ability of multidimensional analysis . The whole system is built on Docker Based on cloud . After one or two years of construction , Carrier pigeons have now initially formed a high-performance 、 The architecture is scalable 、 Easy to operate system .
The use of Tencent carrier pigeons , Have certain experience and skills , Gan Hengtong introduced two points at the salon . First, push performance , That is, how to push faster . Second, operation and maintenance efficiency , That is, how to improve operation and maintenance efficiency .
1. Ensure version consistency , Reduce manual packaging 、 Release deliverables brought by unpacking （ Program 、 Script 、 Configuration files, etc ） The problem of inconsistency
2. Environmental isolation , The integrated process is introduced into the configuration center , Development 、 test 、 O & M uses different configuration centers , Manage version configuration information according to different scenarios , It also makes the configuration of running instances easy to customize and trace
3. Parallel compilation and testing , The integrated process makes full use of gaia Virtualization of hardware resources , The compilation and testing of the original process are limited 、 On a fixed physical machine , After optimization, it can be carried out in parallel on any virtual machine , Equivalent to developers and testers, everyone has an independent development and testing environment , No longer limited by the number of machines
in addition , Carrier pigeon also supports many value-added services , Including precise push 、 data 、 Support platform and visual operation .
Mobile data storage and distribution
If developers look at the scenario of data storage from the perspective of terminals , There may be many from the business scenario , For example, head portrait 、 picture 、 Audio 、 video 、 Unstructured data such as short video , And these data and URL Need to adapt a lot of interfaces . If these adaptations require mobile developers to connect with the background , Mobile developers may have a lot to deal with . From the terminal , Mobile developers want to get a unified warehousing service , Can really see data as transparent , Just focus on URL To deal with .
Dong Chao, head of Tencent cloud storage business terminal, introduced , Tencent cloud has an overall COS service , Is an object storage service . After the data is transmitted , Will be in COS The system is stored as a whole , And cooperate with Tencent cloud's existing , Such as CDN The ability to help users distribute . such , For terminal developers , Just one SDK, Everything else can be entrusted to Tencent cloud hosting .
COS The system has high availability 、 reliability , The reliability of the data reaches 11 individual 9, Availability of data 、 The input accessibility reaches 3 individual 9. and COS The system also has yellow identification 、 General functions such as safety protection , It can help mobile developers greatly reduce the time consumption in these common functions .
COS The system has a three-tier architecture , In the data interface layer of the first layer , Mobile developers through API、SDK、 Use services in common ways such as console , In that sense , It can be simply summed up as a use interface layer .
The second layer is distributed high availability cluster , Application access layer , except API layer , There is also an application access . Application access will distinguish yellow 、 Watermark and other general services are accessed . This will provide developers with a common capability , Developers can choose the capabilities they need , Then integrate these capabilities , The server does not need to develop these functions again .
In the transport layer , The main solution is to upload and download , Uploading is mainly KTS And data stability . Besides , There are also key download and distribution issues , And in the COS There are systematic in the system CDN Acceleration strategy 、 Dynamic acceleration strategy , It can make data download from the cloud faster .
however , When it comes to data storage , Permissions and security should be the most concerned issues of users . therefore , In this regard ,COS The system introduces a complete set of access control policies （CAM） And a temporary key method to ensure the security of the storage system .COS The system is based on Tencent cloud , There is a complete set of distributed systems to deal with the whole COS service . Many problems are also considered in the process of storage landing , Such as security , The system supports server-side encryption , It also supports client encryption , The server encrypts these policies asymmetrically , Of course , Like common version control , Common storage system functions such as cross region replication are also being implemented COS Among the services of the system .
at present , Whole COS Our products have nodes all over the world , This means that if the service needs to go to sea or cross-border services ,COS It would be a very good choice .
Around COS-SDK Product development , Dong Chao shared the production COS-SDK Some of the experience on the Internet , He said ,SDK Is the interface as a service , and COS Services are more back-end services , Many of its considerations are not on the terminal , So we need to encapsulate the service , Better for users . And good SDK Three characteristics are required , Easy to use , Quick start 、 High performance . These words apply to SDK In specific form , In fact, you can put SDK Divided into several modules . The first is the core , That is, code or binary code , It's a distribution form . The second is SDK Interacting with users API, The third is documentation and Demo, Only do these three modules well , Is a good SDK.COS-SDK Making , Is to follow such rules , Therefore, it can provide excellent use experience for mobile developers .
Tencent mobile analysis and product operation
Yang lieang, senior engineer of Tencent mobile analysis, communicated with nearly 200 visitors on Tencent mobile analysis and product operation . Yang Leong said , According to move APP The level of demand for , It can be summarized as 4 There are different stages of development ：
At first, we should look at the indicators and reports , To aggregate data from different platforms ; here we are APP Initial scale , Start to have a pay and profit model , The enterprise has entered the stage of fine operation . At this stage, pay more attention to paid transformation 、 Loss and other user behavior . The next step is targeted marketing , Attract new users . How to control the delivery of advertising 、APP The download 、 Finally complete all links of registration and payment , How to measure the effect of marketing , Become a concern at this stage ; After the previous steps , We can go further , Use big data to solve the pain points and difficulties of subdivided industries . Output a set of industry standardized solutions , Help new enterprises break through operation problems quickly .
The whole process , Is to understand the overall state of the business , To focus on specific groups , Then take action , Finally, the process of becoming an industry expert .
tencent MTA The analysis system can help users become industry experts as soon as possible ,MTA In addition to supporting the two mainstream systems of the mobile terminal Android and iOS Outside , And support Html5. Tencent also has a special program for Html5 Our analytical products . Some more App, For example, wechat carries H5 Containers , That's what they say Hybrid App. besides , Tencent also makes Native and H5 Data exchange is realized ,H5 With the help of App More stable reporting can be achieved through a new reporting channel .
At the beginning of the birth of wechat applet , Tencent launched relevant statistical analysis services , In smart home 、 Smart hardware , Tencent has also launched corresponding products and software development packages .
however , In intervention MTA when , Users often ask a question ： How to know the distribution status of users . This has to mention Tencent's mobile user portrait . Tencent's business line is very broad , Socially 、 Journalism 、 recreational 、 Finance and so on , There are many layouts . quite a lot App There are hundreds of millions or even billions of users , Generate hundreds of billions of data flow loss every year . How to do an effective regularization of these data , Get through data silos , It's really a problem .
actually , The data is connected 、 analysis , Finally, we will get a standardized result . It includes both structured data , It also includes some unstructured data , After the whole process , It will be transformed into a massive multi-dimensional data asset of Tencent . This involves many algorithms and specific domain problems , One of the most basic , It involves the identification of equipment characteristics . In terms of equipment identification , Although the Android system can pass API obtain IMEI The logo of , But under the influence of Shanzhai machine and terminal simulator , There will also be deviations in the analysis and statistical results .
Based on the above facts , Tencent launched a set of solutions , Device identification through mobile terminal , Device fingerprint information , The method of encryption and distribution on the server side , It solves the problem of device recognition in different scenarios . This is called a MID. In addition, through a set of off-line analysis system , You can put the equipment 、 Brush machine 、 Repeatedly assigned... To reset the device MID Connect , To achieve final consistency .
When the enterprise enters a stage of fine operation , At this time, the most important thing is attribution analysis . Tencent provides a variety of means , For example, break down the characteristics of lost users , There are some ways to model , Finally, make a prediction of potential lost users, etc .
In marketing promotion , Tencent selects... From the crowd 、 advertising 、 Effect tracking 、 Flow cleaning several dimensions to improve the process .
In crowd selection ,MTA Provides rule-based 、 Algorithm based user clustering . Can be targeted to do personalized marketing .
meanwhile ,MTA Systems and SPA、WIN Wait for the advertising platform to get through , Support targeted advertising on almost all Tencent traffic , It can also be used. Lookalike The way , Spread to get new users .
User clustering data , It also provides a way to export . It supports exporting data to its own business platform , Facilitate further business analysis and precipitation of data assets . If the effect of clustering is not satisfactory , Or want to expand new users ,MTA Also provided lookalike In the form of , Through the association with large market users , Sort of overlay , We can find the relevance of the target population in different interest categories , You can notice that in some categories you don't normally recognize .
more importantly ,MTA Not just docking top10 The platform of , Including Tencent 、 Iqiyi 、 Baidu 、 Today's headline 、 Momo and other standard advertising channels , It also supports customized platform docking . Because this channel is connected , stay PC End pass with cookie Focus on data , Because the flow side 、 The distribution center and application activation belong to different levels or App, It's hard to connect . Tencent offers two solutions , One is the scalable dynamic signature scheme of channel installation package , In the process of downloading the installation package, the installation package of the corresponding channel in real time . There is also an association algorithm , By collecting IOBS Information 、 Fingerprint information to collect, download and install 、 The act of activating these two parts .
Last ,App Traffic promotion , Can't avoid the problem of traffic cheating . Tencent is also actively carrying out the analysis of traffic cheating . Flow cleaning module , Simple can be divided into 3 layer ： Characteristic layer 、 distinguish 、 application .
Huge profits drive , The development of black production is also to realize machine intelligence . It can be used at a very low cost , Simulate the behavior of normal users 、 Even subsequent active data . Regular rules and pattern recognition , It has been unable to meet the demands . The future confrontation network , And neural evolutionary networks , Can assist in better pattern recognition . From the common techniques of black production , Do targeted data 、 System building , It can achieve better cleaning effect .
actually , Single enterprise , Unable to meet the demands of all users , There will be more collaboration in the future . With tencent MTA For the bridge , Docking infrastructure 、 Business consulting 、 Data services , It will accelerate the ability of enterprises to obtain big data . So that enterprises can benefit from big data 、 Provide users with better service .