Abstract: Since ancient times, our transaction and consumption process has undergone earth-shaking changes. Today, we take you to decipher the story behind the thousand years of buying, buying, buying.

This article is shared from Huawei cloud community “Reveal those things behind The Ten-million-level transactions of Maimaimaimaimaimaimai.com”, the original author: Huawei cloud headlines.

On the cloud general mobilization of dry goods, take you together to reveal those things behind buy buy!

From ancient times to the present, our trade and consumption process

Earth-shaking changes are taking place

Today, Yunbao wants to bring us

Unlock the story behind buying, buying and buying for thousands of years

Looking back to ancient times

People realize their consumption needs by bartering

But often because of the unequal value of goods and unhappy parting

Then came money, from shells to copper coins

“Buy, buy, buy” is possible, but money is hard to carry around

Trading becomes a heavy burden

In the Song Dynasty, paper money was handed in, which greatly improved trading efficiency

However, the problem of “counterfeit banknotes” has plagued people for thousands of years

Now, the development of Internet technology

Let online payment permeate every corner of our life

Transactions can be paid with a swipe of a code

But those of you who are cautious must have

The earliest online shopping, buyers have appeared successful orders

I paid for it but didn’t get it

The seller got the complaint but no record of the order

You eat a bad review and you have no reason to

What the hell is going on here?

Yunbao will take you to micro services

Worried about payment special

But before we understand the problems of modern trading

Let’s take a look at the following three

Q1: What are transactions?

A transaction is a logical processing unit composed of a group of SQL statements. It can be regarded as a large activity composed of different small activities. They have four properties, the transaction ACID property:

Atomicity

Consistency

Isolation

“Durability”

Just keep that in mind

They all succeed or they all fail

There is no “Schrodinger’s transaction”

Q2: What are distributed transactions?

After a single application is split into multiple applications, an SOA architecture, or microservice architecture, is formed. At this time, it becomes a distributed system, and the transactions generated by the distributed system are distributed transactions.

Rowed a point

Ordinary transactions in a singleton architecture are not split due to applications

All functions mixed together, pull the whole body

However, distributed transactions under microservices architecture are due to application splitting

Each system has a clear division of labor and cooperation

Q3: Why are distributed transactions needed?

To give you a typical distributed transaction scenario ~

The whole e-commerce shopping involves four systems

Initiate transactions from the order system

If in the process of ordering

The warehouse system does not end up generating outgoing records

The inventory system should eliminate the deduction

The integration system should also be eliminated

TA can maintain data consistency

Avoid the occurrence of “tragedy” between buyer and seller

Data out of sync

Distributed transactions make data consistent ▼

I’d like to recommend it to you

Huawei Cloud Distributed Transaction Management (DTM

Organically integrate the whole shopping process

Not only convenient buyers, sellers, platform management

And support the safe and prosperous development of e-commerce

Say goodbye to shopping problems

Huawei Cloud DTM is huawei cloud distributed transaction management middleware, providing highly reliable distributed transaction processing capabilities. Support cross-microservice transactions, cross-library transactions, multi-data sources, non-invasive transactions, TCC transactions, transaction monitoring, high TPS transaction processing capability and data analysis, and other functional scenarios to help enterprises meet the consistency requirements of core business data (such as transaction data).

There are too many highlights to finish ↓↓↓

DTM supports non-invasive transaction processing and is applicable to various fields such as finance, telecommunications, e-commerce, logistics, marketing, social networking, games, video, Internet of Things, Internet of vehicles and so on. It is the development trend of distributed transaction technology. There is already plenty of practice in the industry. Moreover, enterprises can quickly access and use distributed transactions without any business transformation, just adding annotations to run.

DTM supports TCC transaction processing. TCC almost meets all business scenarios and is widely applicable as a supplement to non-invasive transactions, such as MongoDB, Redis and other databases where non-invasive mode is not applicable.

Microservice frameworks support a wide range of applications, such as Spring Cloud, CSE, Dubbo, etc. Industry-leading high performance (single cluster above 10W TPS) processing seconds kill, double eleven scene without pressure; Support cross-AZ disaster recovery capabilities, which are needed by banks and financial industries; Supports multi-engine management.

When is huawei Cloud DTM recommended?

Yunbao also gives you a brief talk

“Financial Industry Data” Printing Machine”

In response to high-frequency trading in the financial sector, data synchronization is fast taking off

High-frequency trading of securities and fund companies has high requirements for TPS

CSE+DTM is the perfect partner

Efficient data synchronization

Help financial institutions reduce the length of each transaction

“Time is money”, you know

“Payment Pillar in government Affairs”

In the information age, the government system is more and more advanced

It also gets complicated

As an extension of the payment transfer scenario

Living expenses are indispensable in the government system

For example, pay utilities, telephone bills, Internet bills, etc

With DTM, these common scenarios can be easily accessed

Help government departments deal with distributed transaction consistency

To ensure that the government system can better serve the people

“Pan-internet Multi-domain Expert”

Whether the integral mall involves membership card balance deduction

Member points increase, member growth value increase, etc

Or instantaneous high flow of e-commerce double 11 seconds kill

Or synchronize airline data booking software

DTM can help you figure it out

The delay in payment is clear

Ensure that users can order tickets will be guaranteed

Feedback order information accurately

Helping large companies collaborate online is no secret

Consistency of system or data modification, to ensure no problem

It doesn’t matter if you increase productivity a few times

Click to follow, the first time to learn about Huawei cloud fresh technology ~