Abstract:

Announced on May 30, ali cloud to global transaction services GTS formal commercial, 100000 transactions per second and will be distributed transaction the “noble” to “civilian” technology, can solve the cross-database, messages, services under the distributed environment of transactional consistency problem, let developers do not need to consider the complex transaction, accelerate micro service to the ground, This is up to 10 times more efficient than traditional XA protocols.

Distributed transaction is a wall that can not be bypassed when enterprises build microservices. Global transaction service GTS can separate complex distributed transaction logic from specific business systems, and realize the life cycle management of distributed transactions, automatic transaction rollback and other functions, so that microservices become more lightweight, simple and stable.

According to the official website, Alibaba Cloud global transaction service GTS, after years of experience in Alibaba Double 11, can carry more than 100,000 transactions per second, and the performance of a single server can reach more than 15,000 TPS. At the same time, GTS can cooperate with ali Cloud MQ message queue and other middleware products to achieve distributed database transactions, multi-library transactions, message transactions, service link level transactions and various combinations.

The separation of transaction and business solves two problems of microservices

Since the concept of micro-service was put forward in 2012, it has spread rapidly around the world and been praised by more and more developers. Many Internet industry giants and open source communities have started the discussion and practice of micro-service. Alibaba has also launched its own micro-service frameworks such as Dubbo and EDAS.

Traditional transactions under the XA protocol

Although there are Internet giants taking the lead in practice, micro-service is still in its infancy, and it is difficult for many small and medium-sized Internet companies to implement micro-service. At present, there are two major problems: one is the complexity brought by the separation of single application into distributed system; Second, after system microservitization, a seemingly simple function may need to call multiple services and operate multiple database implementations internally, and the problem of distributed transaction of service invocation becomes very prominent.

GTS handles distributed transactions

In order to solve these problems, GTS firstly frees microservices from distributed transactions. The realization of microservices does not need to consider complex problems such as reverse interface, idempotence and rollback strategy, which greatly reduces the difficulty and workload of microservices development.

In addition, GTS has little intrusion into the business code, requiring only the @txcTransaction annotation to define transaction boundaries.

After the double 11 test, bearing 100,000 transactions per second

GTS has been thoroughly practiced in Alibaba, and has been widely used in alibaba’s business systems such as Taobao, Tmall, Ali Pictures, Taobaopiao.com, Ali Mama and 1688. It has passed the test of massive requests on Double 11 and can easily carry 100,000 transactions per second. The performance of a single server is up to 15,000 TPS, and it can complete more than 100 million transactions within two hours.

GTS is integrated with SpringCloud and applied to shared travel system

It is reported that GTS can provide external services in the form of public cloud, private cloud and hybrid cloud of Ali Cloud. Many users are using GTS to solve the distributed transaction problem of SpringCloud, Dubbo, EDAS and other micro-services, covering dozens of industries such as electricity, logistics, ETC, tobacco, finance, retail, e-commerce, shared travel and so on.

After nearly 10 years of technical precipitation, alibaba will be the essence of enterprise Internet precipitation on Aliware, the latter supporting the alibaba group, more than 99% of the large scale, and ali cloud enterprises an important part of China, will be ali “middle thick, thin application” China concept is applied to the enterprise, the power enterprises to realize the digital transformation.

The original link