CN105183879A - Method for distributed database to keep transactional consistency under cloud computation - Google Patents

Method for distributed database to keep transactional consistency under cloud computation Download PDF

Info

Publication number
CN105183879A
CN105183879A CN201510605942.7A CN201510605942A CN105183879A CN 105183879 A CN105183879 A CN 105183879A CN 201510605942 A CN201510605942 A CN 201510605942A CN 105183879 A CN105183879 A CN 105183879A
Authority
CN
China
Prior art keywords
message
service
local
distributed
transaction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510605942.7A
Other languages
Chinese (zh)
Inventor
胡玉鹏
刘俊朋
郭锋
李新虎
于辉
张兰英
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Group Co Ltd
Original Assignee
Inspur Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Group Co Ltd filed Critical Inspur Group Co Ltd
Priority to CN201510605942.7A priority Critical patent/CN105183879A/en
Publication of CN105183879A publication Critical patent/CN105183879A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2365Ensuring data consistency and integrity

Abstract

The invention discloses a method for a distributed database to keep transactional consistency under cloud computation and belongs to the technical field of database management. Under cloud computation, a service data request is received in a front distributed server for logical processing of service data, a local message is generated, and meanwhile, the message is recorded in a local log to generate a local transaction; meanwhile, the message is distributed to a rear distributed server of a transaction needing to be executed in a matched mode, the transaction is subjected to logical processing through a rear server actuator, meanwhile, data information of a transaction database is updated, a message processing state is recorded, and a service caller is informed of deleting the message in the local log to prevent repeated sending. The method can increase the concurrent access volume, solves the problem that in an existing method, performance is decreased due to messages forwarded by a central node, it can be guaranteed that the transaction is submitted again after a service fault because the local log and a message management module are introduced, and repeated submitting of the transaction can be avoided.

Description

Under a kind of cloud computing, distributed data base keeps the method for transaction consistency
Technical field
The present invention discloses distributed data base under a kind of cloud computing and keeps the method for transaction consistency, belongs to database management technology field.
Background technology
Cloud computing is the emerging technology providing service Network Based, cloud computing needs different assemblies to provide service, and these assemblies are all in the realization being inserted into cloud computing framework in the mode of service interface, and the exploitation of these assemblies also may be provided by different cloud service provider, so the data consistency of its rear end database just must be protected, otherwise the business datum of cloud computing may be in utter disorder.Imagination service A assembly accomplishes a task jointly with service B assembly, after A serviced component have updated the data of local data base example, and serve B and so do not do, so system data will be disorderly, some thing just has no way of investigating, and causes job task to complete.The conforming method of current maintenance Distributed database transaction; usual meeting sets up a Centroid module C between service A and service B; this center module is responsible for linking the message communicating between two services; when application requests; C first by Message Record in local daily record, then forwarding messages simultaneously all processes successfully to A and B, A and B and returns yes to after C; C sends message again to A and B, submits to.When returning no when going wrong in presentation stage service, C also will notify that rolling back action is carried out in all services, this method has repeatedly to be submitted to and interacting message, the network service time is oversize, when transaction time is oversize, the resource time of locking also lengthens, and causes service provision capacity to weaken, the problems such as hydraulic performance decline.The invention provides distributed data base under a kind of cloud computing and keep the method for transaction consistency, arrange message managing module to change for the state of maintain message, when serving A generation message and being sent to service B, the message processing state of service B can along with the process programmed process success of service logic or status of fail, Effect-based operation ensures the consistance of Distributed database transaction, Concurrency Access amount can be improved, solve in classic method due to hydraulic performance decline that Centroid C forwarding messages brings, owing to introducing local daily record and message managing module, can also after service fault, ensure resubmiting of affairs, and that can avoid affairs repeats submission.
Summary of the invention
The present invention is directed to and keep the conforming method of Distributed database transaction at present, repeatedly submit to and interacting message, the network service time is oversize, when transaction time is oversize, the resource time of locking also lengthens, service provision capacity is caused to weaken, the problems such as hydraulic performance decline, distributed data base under a kind of cloud computing is provided to keep the method for transaction consistency, solve the hydraulic performance decline that existing method repeating message is brought, cause the problem of inefficiency, can also after service fault, ensure the resubmiting of affairs, and can avoid affairs repeat submit to.
The concrete scheme that the present invention proposes is:
Under a kind of cloud computing, distributed data base keeps the method for transaction consistency:
Under cloud computing, receive service data request in front Distributed Services, carry out business datum logical process, and produce local message, simultaneously by Message Record in local daily record, generate a local matter; Simultaneously by message distribution give need coordinate perform affairs in rear Distributed Services, according to message calls, logical process is carried out to affairs at the actuator of rear service, upgrade the data message of Service Database simultaneously, recording messages treatment state, and notification service caller deletes the message in local daily record simultaneously, avoid repeating to send.
When breaking down in front Distributed Services, safeguarding the message in front service received in rear Distributed Services, when after front service recovery, initiating a message, whether processed in this message of rear service inspection, if processed, abandoned this message.
Under cloud computing, distributed data base keeps a system for transaction consistency, comprises service execution device module and message managing module,
Wherein under the cloud computing of service execution device module in charge, receive service data request in front Distributed Services, carry out business datum logical process, and produce local message, simultaneously by Message Record in local daily record, generate a local matter;
Message managing module be responsible for by message distribution give need coordinate perform affairs in rear Distributed Services, according to message calls, logical process is carried out to affairs at the actuator of rear service, upgrade the data message of Service Database simultaneously, recording messages treatment state, and notification service caller deletes the message in local daily record simultaneously, avoid repeating to send.
When breaking down in front Distributed Services, message managing module makes to safeguard in rear Distributed Services the message in front service received, and when after front service recovery, initiates a message, whether processed in this message of rear service inspection, if processed, abandoned this message.
Usefulness of the present invention is:
Under cloud computing of the present invention, receive service data request in front Distributed Services, carry out business datum logical process, and produce local message, simultaneously by Message Record in local daily record, generate a local matter; Simultaneously by message distribution give need coordinate perform affairs in rear Distributed Services, according to message calls, logical process is carried out to affairs at the actuator of rear service, upgrade the data message of Service Database simultaneously, recording messages treatment state, and notification service caller deletes the message in local daily record simultaneously, avoid repeating to send; The present invention can improve Concurrency Access amount, solve due to the hydraulic performance decline that Centroid forwarding messages brings in classic method, owing to introducing local daily record and message managing module, can also after service fault, ensure the resubmiting of affairs, and can avoid affairs repeat submit to.
Accompanying drawing explanation
The schematic flow sheet of Fig. 1 the inventive method.
Embodiment
Under a kind of cloud computing, distributed data base keeps the method for transaction consistency:
Under cloud computing, receive service data request in front Distributed Services, carry out business datum logical process, and produce local message, simultaneously by Message Record in local daily record, generate a local matter; Simultaneously by message distribution give need coordinate perform affairs in rear Distributed Services, according to message calls, logical process is carried out to affairs at the actuator of rear service, upgrade the data message of Service Database simultaneously, recording messages treatment state, and notification service caller deletes the message in local daily record simultaneously, avoid repeating to send.
Under cloud computing, distributed data base keeps a system for transaction consistency, comprises service execution device module and message managing module,
Wherein under the cloud computing of service execution device module in charge, receive service data request in front Distributed Services, carry out business datum logical process, and produce local message, simultaneously by Message Record in local daily record, generate a local matter;
Message managing module be responsible for by message distribution give need coordinate perform affairs in rear Distributed Services, according to message calls, logical process is carried out to affairs at the actuator of rear service, upgrade the data message of Service Database simultaneously, recording messages treatment state, and notification service caller deletes the message in local daily record simultaneously, avoid repeating to send.
Utilize said method and system, by reference to the accompanying drawings the present invention is further described.
Present system comprises: service execution device module, message managing module.
Under the cloud computing of service execution device module in charge, receive service data request in front Distributed Services, carry out business datum logical process, and produce local message, simultaneously by Message Record in local daily record, generate a local matter;
Message managing module be responsible for by message distribution give need coordinate perform affairs in rear Distributed Services, according to message calls, logical process is carried out to affairs at the actuator of rear service, upgrade the data message of Service Database simultaneously, recording messages treatment state, and notification service caller deletes the message in local daily record simultaneously, avoid repeating to send.
Utilize present system, with reference in accompanying drawing, when serve A produce message be sent to service B time, the message processing state of service B can along with the process programmed process success of service logic or status of fail, as shown in Figure 1.Message 1, message 2, message 3 at front service A respectively to have sent 3 message at rear service B, service B carries out logical process to affairs, upgrade the data message of Service Database simultaneously, recording messages treatment state, wherein the treatment state of message 1 and message 2 is all yes, then notification service A deletes message 1 and message 2, avoid repeating to send, and message 3 recording status is no, therefore serves A and also can send message 3 to service B, until serve Transaction Information and service A data consistent in B;
Service B recording messages state: when message just produces, be recorded in the local daily record of service A, like this when serving A and stopping suddenly service, can be used for fault recovery; Service B also can safeguard that the message of the service A received considers that service A have issued message 1 before fault, so after service A recovers, again initiate a message 1 time, B first will check that whether message 1 is processed, processed and namely abandoned this message, the benefit done like this to avoid message re-treatment; After service B processes certain message, return to service A, service A will delete processed message in local daily record.

Claims (4)

1. under cloud computing, distributed data base keeps a method for transaction consistency, it is characterized in that
Under cloud computing, receive service data request in front Distributed Services, carry out business datum logical process, and produce local message, simultaneously by Message Record in local daily record, generate a local matter; Simultaneously by message distribution give need coordinate perform affairs in rear Distributed Services, according to message calls, logical process is carried out to affairs at the actuator of rear service, upgrade the data message of Service Database simultaneously, recording messages treatment state, and notification service caller deletes the message in local daily record simultaneously, avoid repeating to send.
2. under a kind of cloud computing according to claim 1, distributed data base keeps the method for transaction consistency, it is characterized in that when breaking down in front Distributed Services, the message in front service received is safeguarded in rear Distributed Services, when after front service recovery, initiate a message, whether processed in this message of rear service inspection, if processed, abandoned this message.
3. under cloud computing, distributed data base keeps a system for transaction consistency, it is characterized in that comprising service execution device module and message managing module,
Wherein under the cloud computing of service execution device module in charge, receive service data request in front Distributed Services, carry out business datum logical process, and produce local message, simultaneously by Message Record in local daily record, generate a local matter;
Message managing module be responsible for by message distribution give need coordinate perform affairs in rear Distributed Services, according to message calls, logical process is carried out to affairs at the actuator of rear service, upgrade the data message of Service Database simultaneously, recording messages treatment state, and notification service caller deletes the message in local daily record simultaneously, avoid repeating to send.
4. under a kind of cloud computing according to claim 3, distributed data base keeps the system of transaction consistency, it is characterized in that when breaking down in front Distributed Services, message managing module makes to safeguard in rear Distributed Services the message in front service received, when after front service recovery, initiate a message, whether processed in this message of rear service inspection, if processed, abandoned this message.
CN201510605942.7A 2015-09-22 2015-09-22 Method for distributed database to keep transactional consistency under cloud computation Pending CN105183879A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510605942.7A CN105183879A (en) 2015-09-22 2015-09-22 Method for distributed database to keep transactional consistency under cloud computation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510605942.7A CN105183879A (en) 2015-09-22 2015-09-22 Method for distributed database to keep transactional consistency under cloud computation

Publications (1)

Publication Number Publication Date
CN105183879A true CN105183879A (en) 2015-12-23

Family

ID=54905960

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510605942.7A Pending CN105183879A (en) 2015-09-22 2015-09-22 Method for distributed database to keep transactional consistency under cloud computation

Country Status (1)

Country Link
CN (1) CN105183879A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106874076A (en) * 2017-01-21 2017-06-20 浙江沛宏网络科技有限公司 Distributed transaction processing method
CN106991087A (en) * 2016-01-20 2017-07-28 阿里巴巴集团控股有限公司 A kind of method of distributed transactions, apparatus and system
CN107203560A (en) * 2016-03-18 2017-09-26 中国移动通信集团宁夏有限公司 Database, multiple database operation transaction consistency ensuring method and system
CN109074529A (en) * 2016-04-20 2018-12-21 Asml荷兰有限公司 Match method, the method and apparatus of scheduled maintenance of record
CN110134735A (en) * 2019-04-10 2019-08-16 阿里巴巴集团控股有限公司 The storage method and device of distributed transaction log
CN112612807A (en) * 2020-12-31 2021-04-06 浙江融象数科控股有限公司 Distributed transaction data consistency system design method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101089857A (en) * 2007-07-24 2007-12-19 中兴通讯股份有限公司 Internal store data base transaction method and system
CN102203779A (en) * 2011-05-03 2011-09-28 华为技术有限公司 Method for updating data and control apparatus thereof
CN103077222A (en) * 2012-12-31 2013-05-01 中国科学院计算技术研究所 Method and system for ensuring consistence of distributed metadata in cluster file system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101089857A (en) * 2007-07-24 2007-12-19 中兴通讯股份有限公司 Internal store data base transaction method and system
CN102203779A (en) * 2011-05-03 2011-09-28 华为技术有限公司 Method for updating data and control apparatus thereof
CN103077222A (en) * 2012-12-31 2013-05-01 中国科学院计算技术研究所 Method and system for ensuring consistence of distributed metadata in cluster file system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106991087A (en) * 2016-01-20 2017-07-28 阿里巴巴集团控股有限公司 A kind of method of distributed transactions, apparatus and system
CN107203560A (en) * 2016-03-18 2017-09-26 中国移动通信集团宁夏有限公司 Database, multiple database operation transaction consistency ensuring method and system
CN107203560B (en) * 2016-03-18 2020-07-07 中国移动通信集团宁夏有限公司 Database, multi-database operation transaction consistency ensuring method and system
CN109074529A (en) * 2016-04-20 2018-12-21 Asml荷兰有限公司 Match method, the method and apparatus of scheduled maintenance of record
CN106874076A (en) * 2017-01-21 2017-06-20 浙江沛宏网络科技有限公司 Distributed transaction processing method
CN106874076B (en) * 2017-01-21 2019-08-30 浙江沛宏网络科技有限公司 Distributed transaction processing method
CN110134735A (en) * 2019-04-10 2019-08-16 阿里巴巴集团控股有限公司 The storage method and device of distributed transaction log
CN112612807A (en) * 2020-12-31 2021-04-06 浙江融象数科控股有限公司 Distributed transaction data consistency system design method
CN112612807B (en) * 2020-12-31 2022-07-05 浙江融象数科控股有限公司 Distributed transaction data consistency system design method

Similar Documents

Publication Publication Date Title
CN105183879A (en) Method for distributed database to keep transactional consistency under cloud computation
CN103473318B (en) A kind of distributed transaction support method towards memory data grid
CN108076098B (en) Service processing method and system
CN110888893A (en) Order processing method based on micro-service e-commerce system
TWI337715B (en) Method and system for complex event processing
WO2021217986A1 (en) Distributed message transmission method and apparatus, computer device and storage medium
CN111277639B (en) Method and device for maintaining data consistency
CN108279986B (en) Distributed transaction processing method and device
CN102981823B (en) A kind of domain driven development plug-in system
CN112039970B (en) Distributed business lock service method, server, system and storage medium
CN107861823A (en) A kind of method of the system security data final consistency based on micro services framework
WO2019037617A1 (en) Data transaction processing method, device, and electronic device
CN108596582B (en) Polymerization payment platform solution based on dubbo
CN104699723A (en) Data exchange adapter and system and method for synchronizing data among heterogeneous systems
CN103995868A (en) Distributed system oriented global transaction manager and transaction handling method
CN109544344B (en) Block chain transaction processing method and equipment based on DAG
CN105516284A (en) Clustered database distributed storage method and device
CN105491078A (en) Data processing method and device in SOA system, and SOA system
US10404635B2 (en) Optimizing data replication across multiple data centers
US11030213B2 (en) Transforming data structures and data objects for migrating data between databases having different schemas
CN103812963A (en) Domain name registration method and domain name registration system
CN101013996A (en) Block storage service method, block storage service system and block storage service client
CN104123135A (en) Method and device for unifying background interfaces
CN109978540B (en) Distributed accounting method, device and system
CN101834873B (en) Data transmission method for business database

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20151223

RJ01 Rejection of invention patent application after publication