Welcome toTencent Cloud + community, get more Tencent mass technology practice dry goods oh ~
Speaker: Zhang Hao, product leader of Tencent Cloud Middleware
Background: Many developers must experience similar sweet troubles, that is, when the online business scale is getting bigger and bigger, and the system branches are developing more and more, the sense of accomplishment of the initial online will soon be exhausted by the data incompatibility and unsmooth between the systems, and every module update will affect the whole body. Tencent cloud micro-service framework TSF can solve the problem of data island and duplicate wheel for everyone, providing a simple and easy to use code entrance, the complex underlying network, server deployment interface, so that developers can use more easily.
This article is compiled from the content shared by Zhang Hao, head of Tencent Cloud middleware product, at Tencent Cloud + Future Summit.
Good afternoon, everyone! I am Zhang Hao, the product leader of Cloud middleware of Tencent. I am very glad to come to Guangzhou, a city with highly developed industry, finance and manufacturing, and share with you some practices of Tencent cloud micro services.
Zou Hui, the person in charge of the previous topic, is the product director of Tencent Cloud PaaS. He may have talked a lot about the combination theory of DevOps and micro-services and the landing tools. I went on to talk about Tencent Cloud in detail. Above we abstracted a set of platform called TSF can help developers to solve the problem.
Micro service this concept, in the first place of my own understanding, to put IT simple in a word, the traditional redundancy, coupling IT architecture, I passed some Internet means and tools, the decoupling become separate coupling of service, so that the development team can have an independent technology, rapid iteration to do some small run and upgrade, so good with the Internet age, Do some business innovation. But often make up my mind to do micro operations director service is not the most difficult, often after we make the decision, may the team the whole couldn’t keep up with the values of the company still has a lot of fields, such as our purchasing is very much like a traditional hardware and equipment, buy a few bus services, such as industrial developers try to use fully open source products to build their own ecosystem, Found a lot of online problems that couldn’t be solved. Tencent Cloud launched TFS micro-service platform, which aims at tools and platforms similar to Lego bricks to help all our developers to focus more on business development, so that we can focus on the development and launch of business logic instead of building wheel development tools.
The introduction of TFS capabilities is divided into two parts, one is developer-oriented capabilities, the other is operations oriented capabilities.
First, let’s talk about the ability of developers. Tencent takes part in this project with a very open and inclusive attitude, combining with the community. At present, Tencent is deeply involved in the micro-service framework of Spring Cloud. Tencent has made deep iterations and contributions to Spring Cloud. One of the biggest features is a commercial version of Spring Cloud, which solves problems that cannot be solved in the community. Secondly, on the TFS platform, it is very convenient for some Java developers to use Spring to develop the platform. Tencent Cloud also integrates some middleware products of Tencent, including message queue, API gateway and some middle-layer services. Let developers in the process of microservices development do not need to choose the complex cloud API, directly when the cloud server comes to use, this is our practice in this respect. Another popular term is Service Mesh, which is the 3.0 era of microservices.
Tencent will be launched in June or so our Beta version, Service mesh in some heterogeneous system, in the case of multiple language developers, could make the different developers more focus on their business logic, the Service access, found each other between reiteration and balanced coverage, degradation of Service, and so on are the hands of the Service grid, will be more focused.
The ability of the second part, we service, we speak service framework, tencent, proposed the new version based on the spring in the registry has joined the study algorithm, we do it in shenzhen and guangzhou twins rooms can be healed, once a computer center to hang out, we can do a service discovery across the room, registration and access. Our service framework also has rich support in protocol support, including rPC-based high-performance framework and traditional device proprietary protocols.
The third part of the capabilities for developers, Tencent Cloud provides very comprehensive resource isolation, production testing, pre-release capabilities from logic to physical. As a field developer or architect, the first part of micro-service design is how to divide the computing, network and environment resources of basic resources. The first step is to make use of physical machines, virtual machines and other server resources we have purchased. Meanwhile, during the test construction of DevOps, No service preemption, resource preemption or worse. So based on this space, we provide very good isolation between the ecosystem and the cloud test environment.
TSF is seamlessly connected to Tencent Hub. The next part, the fourth part I’m going to introduce to developers, is distributed transactions, which are getting more and more attention in recent years. Now there are so many Internet business is across the company, I just saw the client sinopec last week, I went to gas station, four hundred bucks a tank of gas and added after the check, often there will be a $four hundred settlement is in the gas station first payment gateway has coupons for relief, secondly in WeChat payment gateway for a settlement, the final WeChat payments behind, With the credit card of Agricultural Bank of China, I have to make the second discount settlement, and everyone will find that I, as a developer, have to meet the complex operation activities proposed by the front-end operation team, and I have to do very complex one-time processing at the IT level. How to solve this problem? In particular, the databases of Sinopec, wechat Pay and Agricultural Bank of China’s settlement gateway are not together. They are cross-company. Tencent has launched a distributed transaction platform with independent intellectual property rights based on TCC’s distributed transaction specification to meet the very complex cross-company and cross-department transaction management capability.
The next capability is to talk about gateway services for microservices. The public security gateway is also very important, we will have A few common micro service developers often appeal, first I could be A big state, there are various subsidiaries, A and B departments of business calls to each other, you will find is across the room, may be across A network, how to put my back end service safety and reliability of exposed out, Let my partner team make the call, that’s the first level. At the second level, how can I define an API contract, how can the development team define API specifications from top to bottom, and how can a microservice gateway do these things well, allowing developers to make service calls consistently, whether within the network or across the network.
In gateway do we are beyond the capability of providing the service bus, doing the service procedure, there are great part of the customer base is from traditional clients, like government, tobacco, customs and so on customer, for example, they will have some special requirements, so he need your gateway ability to increase a layer of logical ability, such as the recent government ministries and agencies of the project in guangdong province, He needs some sensitive interfaces, which may add some logical judgment in the process of calling, and some offline review and process review, and then open to the outside world after passing. Tencent cloud in the traditional market we have also made a lot of efforts to increase the logical judgment in the gateway. As well as the way of invocation on the gateway, we use message queue, one-to-one, one-to-many message sending mode to meet the service invocation scenario.
Having talked a lot about developer-oriented capabilities, let’s now talk about operational-oriented capabilities. TSF have a very strong, let I’m very proud of system call TSF life cycle management platform, the first is to solve the developers do micro service configuration of a centralized management, this configuration in the micro service is very important, tencent in every year there are like a double tenth games business, there will be a lot of elastic scaling scenario, business volatility is very large, Such students often have to do operations plan, for example I might want to do some access layer, logic layer, the background in case of large flow of time to do the drop service, avoid hot spots of a node to access specific, cause the whole backend systems across the paralysis, I will do this plan, what can I do when trigger configuration changes to achieve those results. And it can be done to some extent without restarting the compute node. The second part of the capability, we have the ability to quickly start up thousands of service nodes within the minute level to cope with sudden traffic.
For students of operation and maintenance, we have a very perfect all-link intelligent platform. The person in charge of operation and maintenance may be the most resistant to micro services. Why? You see how our operation and maintenance students solve the problem, the most simple, when there is a problem, log on to a machine to see the port, where there is a problem to solve where, a check is done. Microservice is usually a process that has experienced dozens of links in the middle. I may see a button on the front end of the APP, and it will be very painful where there is a problem and how to locate it. Now the traditional way is that I grab some logs on each node to deal with it, which takes a very long time. Tencent TSF platform has done one thing, we refer to Google’s distributed log paper, we will enter a trace ID, we will collect the scattered service nodes together, so that we can view a specific event in the way of events, so that we can clear the investigation. The ability of this part is our ability to be friendly to operation and maintenance students.
Without going over the features, I’ll spend the next five minutes telling you about the problems that microservices have solved, the cases that have been implemented, and the value that has been added. First of all, LET me talk about the case of Tenpay. Tenpay has a transaction order layer, which is the core logic layer supporting Tencent’s popular applications such as QQ and wechat Pay, such as red envelope, etc. Risk control and order processing are all in it. What value does TSF platform bring to it?
First of all, based on the platform of TSF made A micro service, through our operations platform, to assist the goods tenpay head to comb the entire IT infrastructure, such as I can put the non-critical invocation path is asynchronous, New Year’s eve that night, A to B send red envelopes, 12 point will appear when the system is busy, the money is sent, but the balance update is not real-time, There is a logic in this. Updating the balance at this point can be regarded as a downgrade. It doesn’t matter if you update the balance slowly, as long as your money can be sent out, everyone is happy. Therefore, through this point, non-critical path is made asynchronous, so that tenpay’s throughput performance has been greatly improved. Second, Tenpay’s flexibility is very large, how to ensure that some large-scale activities, such as double 11 activities come, can expand and shrink capacity in time, usually can also save some idle servers? Our lifecycle management platform is very well managed.
The second case I would like to talk about Yonghui Supermarket, which is an in-depth partner with Tencent. Tencent began to do new retail with some retail enterprises, what value does the new retail bring? Nothing more than three places in the freight yard. In terms of people, can the online and offline payment experience be improved? In terms of the venue, can the management and store efficiency of the retail merchants be improved? In terms of goods, can the merchants choose products intelligently? What all the developers here can feel is that Yonghui Supermarket launched a very novel APP business mode like facial payment, or some new retail applications like fresh food, meat and fish can be delivered to your home. But to do this is very, very not easy, tencent with yong hui supermarket in the past six months, integration has become a crucial for the construction of the cloud team, starting from the underlying IaaS, step by step, the middle layer is critical, called China retail business, the middle bearing yong hui supermarket in IT is the most critical logic, For example, some of its product quality management, payment management, all these large core platforms have been transformed into micro-services. The biggest value of doing microservices is making your team more agile. Why be agile? Because projects to support the front, face recognition, and fresh home, all of the application to the backend China very much IT needs, can reach the point now is two weeks to send a version, there may be Internet developers may find 15 days can also, not great, but the traditional field 15 days a version is indeed a surprising speed, This is Tencent cloud to yonghui supermarket to bring the greatest value.
The last case is about the bank. Party A did not allow me to reveal my name, so I did not paste the LOGO. This is an online loan business conducted by Tencent cloud technology team, financial team and the bank, which is similar to micro loan on wechat. ** HERE I would like to emphasize that I will not talk about the specific situation of the online loan business. I will talk about the points I will encounter in the process of micro services. Party A will ask me whether you want to kill all the original ones when you do DevOps and service. Common is new business or some business with Internet attributes, we will try to have micro service platform to carry, to run. What about the old business system? The first problem is to solve the problem of communication, tencent cloud side gateway capabilities, we will do so many traditional hardware compatibility, we do these protocols compatible, after the compatible with the original big hardware as big micro service system, it can access to our service framework, service to the registry, so that we can do very light intensity of service management, At the very least, make sure your business is accessible.
When the new system and the old system have a connection and can exchange visits, further reconstruction will be carried out in the second stage to assist in the service governance of fine granularity and the point of service mesh capability. We will reconstruct the original capability through the way of service mesh, so that there will be a very good transition process from the old to the new. Finally, our platform has a lot of practice in some traditional industries, such as industry, retail, energy and transportation. I also hope that the partners present today can work with us to do a good job in micro-service. Thank you.
For more information, please click the link below:
Daily scheduling trillion times, Tencent TSF microservice platform best practices. PDF
Question and answer
Microservices Architecture: How is data sharing across services implemented?
reading
Establishment of microservice call chain tracking center
How to move from traditional monolithic architecture to microservices
Cloud storage: Seven essential functions for enterprises
Has been authorized by the author tencent cloud + community release, the original link: https://cloud.tencent.com/developer/article/1139426?fromSource=waitui
Welcome toTencent Cloud + communityOr pay attention to the wechat public account (QcloudCommunity), the first time to get more massive technical practice dry goods oh ~