CN112258266B - Distributed order processing method, device, equipment and storage medium - Google Patents

Distributed order processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN112258266B
CN112258266B CN202011076853.5A CN202011076853A CN112258266B CN 112258266 B CN112258266 B CN 112258266B CN 202011076853 A CN202011076853 A CN 202011076853A CN 112258266 B CN112258266 B CN 112258266B
Authority
CN
China
Prior art keywords
order
order request
node database
request
data
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.)
Active
Application number
CN202011076853.5A
Other languages
Chinese (zh)
Other versions
CN112258266A (en
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.)
Tongcheng Network Technology Co Ltd
Original Assignee
Tongcheng Network Technology 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 Tongcheng Network Technology Co Ltd filed Critical Tongcheng Network Technology Co Ltd
Priority to CN202011076853.5A priority Critical patent/CN112258266B/en
Priority to PCT/CN2020/134274 priority patent/WO2022073293A1/en
Publication of CN112258266A publication Critical patent/CN112258266A/en
Application granted granted Critical
Publication of CN112258266B publication Critical patent/CN112258266B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders
    • 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/25Integrating or interfacing systems involving database management systems
    • G06F16/258Data format conversion from or to a database
    • 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/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Data Mining & Analysis (AREA)
  • Software Systems (AREA)
  • Finance (AREA)
  • Multimedia (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Development Economics (AREA)
  • Marketing (AREA)
  • Computing Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application relates to a distributed order processing method, a device, equipment and a storage medium, wherein the method comprises the following steps: receiving an order request of a user side; storing the order request to a write node database; synchronizing the order request in the write node database to the read node database; the message event of the stored order request to the read node database is sent to a third party corresponding to the order request in a broadcast mode, so that the third party can call the data of the order request in the write node database to process the order request and generate a processing result; receiving a processing result corresponding to the order request and fed back by a third party; storing the processing result of the order request to a read node database; the message event of the stored processing result to the read node database is transmitted in broadcast form to the user side corresponding to the order request. The application has the technical effects that: the coupling degree between the systems is reduced, and the stability of the order processing system is further improved.

Description

Distributed order processing method, device, equipment and storage medium
Technical Field
The present application relates to the field of order processing technologies, and in particular, to a distributed order processing method, device, equipment, and storage medium.
Background
With the continuous development of the OTA industry, the service order volume and the service complexity are rapidly increased, the requirements of the service on the system are rapidly increased, and the requirements on interface interaction time, system stability, user experience and the like are higher and higher.
The order processing system in the related art is used for carrying out information transfer between a user side and different third parties so that the user can complete order processing with the different third parties through the order processing system; the order processing system is not only responsible for receiving order information, but also responsible for sending order information in the order processing process, so that the system coupling degree among the user side, the order processing system and the third party is higher, and the stability of the order processing system is lower.
Disclosure of Invention
In order to improve the problem of low stability of an order processing system, the application provides a distributed order processing method, a device, equipment and a storage medium.
In a first aspect, the present application provides a distributed order processing method, which adopts the following technical scheme:
the method comprises the following steps:
receiving an order request of a user side;
storing the order request to a write node database;
synchronizing the order request in the write node database to a read node database for a third party to read, and generating a message event;
the method comprises the steps that a message event of a stored order request to a read node database is sent to a third party corresponding to the order request in a broadcast mode, so that the third party can call data of the order request in the read node database after receiving the broadcast to process the order request and generate a processing result;
receiving a processing result corresponding to the order request, which is fed back by the third party;
storing the processing result of the order request to a read node database and generating a message event;
and sending the message event of which the processing result is stored to the read node database to a user side corresponding to the order request in a broadcast mode.
Through the technical scheme, in the process of order processing of the user, the order processing system only stores the order request of the user and the feedback result of the third party, and correspondingly sends the stored result information to the user or the third party after the storage, and does not actively send the stored content; after receiving the result information notified by the order processing system, the user and the third party can select whether to call the relevant data of the order or the result stored in the order processing system according to the need, so that each system can only pay attention to own service, and simultaneously notify the relevant system in a broadcast mode, the effect of decoupling the systems is achieved, the coupling degree between the systems is reduced, and the stability of the order processing system is further improved.
Preferably, after the processing result is stored in the read node database, the method further comprises the steps of;
the message event of the stored processing result is sent to all preset auxiliary processing systems in a broadcast mode, so that the auxiliary processing system can call the data information related to the order request in the node database according to the need after receiving the broadcast to replace the auxiliary event related to the order request except the order request processed by the order processing system, and the processing result of the auxiliary event is stored in the auxiliary database;
in the method, the user side can perform the operation of sending out the query after receiving the broadcast of the message event of the stored processing result;
the method further comprises the steps of:
and when receiving a query request of the user side for the order request, the related data information in the reading node database and/or the auxiliary database is called, and the called data information is fed back to the user side.
According to the technical scheme, the main service closely related to the order request is completed by the order processing system, and the auxiliary event related to the order request except the order request is completed by the auxiliary processing system instead of the order processing system, so that the service pressure of the order processing system is reduced, and the processing speed of the order processing system is improved; meanwhile, the auxiliary processing system stores the processing results of the auxiliary event independently, so that a user can conveniently and quickly inquire all the processing results related to the order request, and the user experience is improved.
Preferably, the order request comprises a service log and a service node;
the storing the order request to a write node database includes:
distributing an order log for the order request stored in the write node database, wherein the order log is a unique identity of the order request;
and storing the service log, the service node and the order log corresponding to the order request into a write node database.
Through the technical scheme, each order request of the user side has the unique identity, so that when other systems call the order request, the specific order request can be quickly identified according to the identity, the possibility of calling errors is reduced, and the stability of the system is further improved.
Preferably, the storing the service log, the service node, and the order log corresponding to the order request in the write node database includes:
carrying out data isomerization on the data formats of the service log, the service node and the order log in the order request to obtain a plurality of order request data sources which have the same data format as that which needs to be read by a third party;
and storing a plurality of order request data sources in a write node database.
According to the technical scheme, before the order request is stored, the data of the order request are heterogeneous according to the data requirement format of the third party corresponding to the order request in advance, so that the format of the order request corresponds to the data format required by the corresponding third party, the third party does not need to convert the format of the order request when the order request is called, the third party can process the order request conveniently, and therefore the processing efficiency of the third party on the order request is improved.
Preferably, before the data of the service log, the service node and the data format of the order log in the order request are heterogeneous, the method further comprises the steps of;
respectively preprocessing the service log, the service node and the data format of the order log in the order request to obtain a service log intermediate data source, a service node intermediate data source and an order log intermediate data source; the log intermediate data source, the service node intermediate data source and the order log intermediate data source all correspond to formats required by data isomerism.
According to the technical scheme, before the data of the order request are subjected to heterogeneous processing, different data types in the order request are classified and preprocessed in advance, all the data types of the order request are converted into the format required by data heterogeneous in advance, so that the data heterogeneous speed is improved, and meanwhile, the possibility of errors in the data heterogeneous process is reduced.
Preferably, the storing the processing result of the order request in a read node database includes:
carrying out data isomerization on the data format of the order request processing result to obtain an order processing result data source which is the same as the data format required to be read by a user side;
and storing the order processing result data source in a reading node database for reading by a user side.
According to the technical scheme, before the processing result fed back by the third party is stored in the reading node database, the format of the order processing result is heterogeneous into the format corresponding to the data format required by the user side in advance, so that the user side can process the related data of the order processing result called in the reading node database quickly, and the processing speed of the user side on the order processing result data is improved.
Preferably, the storing the processing result of the auxiliary event in the auxiliary database includes:
carrying out data isomerization on the data format of the auxiliary event processing result to obtain an auxiliary processing result data source which is the same as the data format to be read by the user side;
the auxiliary processing result data source is stored in an auxiliary database for reading by a user side.
According to the technical scheme, before the processing result of the auxiliary event is stored in the auxiliary database, the structure of the auxiliary processing is heterogeneous into the format corresponding to the data format required by the user side in advance, so that the user side can process the related data of the auxiliary processing result called in the auxiliary database quickly, and the processing speed of the user side on the auxiliary processing result data is improved.
In a second aspect, the present application provides a distributed order processing apparatus, which adopts the following technical scheme: the device comprises:
the request receiving module is used for receiving an order request of a user side;
the request storage module is used for storing the order request to a write node database and generating a message event;
the data synchronization module is used for synchronizing the order request in the write node database to the read node database for a third party to read;
the first broadcasting module is used for sending the message event of the stored order request to the read node database to a third party corresponding to the order request in a broadcasting mode so that the third party can call the data of the order request in the write node database after receiving the broadcasting to process the order request and generate a processing result;
the result receiving module is used for receiving a processing result which is fed back by the third party and corresponds to the order request;
the result storage module is used for storing the processing result of the order request to a read node database and generating a message event;
and the second broadcasting module is used for sending the message event which is stored with the processing result to the reading node database to a user side corresponding to the order request in a broadcasting mode.
Through the technical scheme, in the process of order processing of the user, the order processing system only stores the order request of the user and the feedback result of the third party, and correspondingly sends the stored result information to the user or the third party after the storage, and does not actively send the stored content; after receiving the result information notified by the order processing system, the user and the third party can select whether to call the relevant data of the order or the result stored in the order processing system according to the need, so that each system can only pay attention to own service, and simultaneously notify the relevant system in a broadcast mode, the effect of decoupling the systems is achieved, the coupling degree between the systems is reduced, and the stability of the order processing system is further improved.
In a third aspect, the present application provides a computer device, which adopts the following technical scheme: comprising a memory and a processor, said memory having stored thereon a computer program capable of being loaded by the processor and performing a distributed order processing method as any one of the above.
By the technical scheme, the processor in the computer equipment can realize the distributed order processing method according to the related computer program stored in the memory, so that the effect of improving the stability of the order processing system is achieved.
In a fourth aspect, the present application provides a computer readable storage medium, which adopts the following technical solutions: a computer program is stored that can be loaded by a processor and that performs any of the above-described distributed order processing methods.
By the technical scheme, the distributed order processing method can be stored in the readable storage medium, so that the computer program of the distributed order processing method stored in the readable storage medium can be executed by the processor, and the effect of improving the stability of the order processing system is achieved.
In summary, the present application includes at least one of the following beneficial technical effects:
1. each system can only pay attention to own service, and simultaneously notify the related systems by broadcasting, so that the effect of decoupling the systems is achieved, the coupling degree among the systems is reduced, and the stability of the order processing system is further improved;
2. before the order request is stored, the data of the order request are subjected to isomerism in advance so that the format of the data corresponds to the data format required by the corresponding third party, and therefore the third party can process the order request quickly, and the processing efficiency of the third party on the order request is improved.
Drawings
FIG. 1 is a flow chart of a distributed order processing method according to an embodiment of the application.
FIG. 2 is a flow chart of sub-steps of S20 in an embodiment of the application.
FIG. 3 is a block diagram of a structure embodying the application for receiving a query request.
FIG. 4 is a block diagram of a distributed order processing apparatus in accordance with one embodiment of the present application.
Reference numerals: 301. a request receiving module; 302. requesting a storage module; 303. a data synchronization module; 304. a first broadcasting module; 305. a result receiving module; 306. a result storage module; 307. a second broadcasting module; 308. a third broadcasting module; 309. and a format processing module.
Detailed Description
The application is described in further detail below with reference to fig. 1-4.
The embodiment of the application discloses a distributed order processing method.
Referring to fig. 1, the method comprises the steps of:
s10, receiving an order request of a user side.
Specifically, the order request of the user side comprises a service log and a service node, and the order request is different user demands such as a ticket booking request or a payment request; different order requests correspond to different third parties, respectively, for example: the third party corresponding to the train ticket order request is a supplier of the train ticket; and the third party corresponding to the payment request is a WeChat, a payment bank and other payment software.
S20, storing the order request in a write node database.
Referring to fig. 2, S20 specifically includes the following four sub-steps:
s201, order logs are distributed for order requests.
Specifically, after receiving an order request, the write node database allocates a unique order log for the order request, wherein the order log is a unique identity of the order request; the order request can be quickly and accurately searched according to the order log when the order processing system processes the data of the order request in the later period.
S202, preprocessing order request data.
Specifically, the data formats of the service log, the service node, the order log and the modification record of the write node database corresponding to the order request are preprocessed respectively to obtain a service log intermediate data source, a service node intermediate data source, an order log intermediate data source and a modification record intermediate data source; the format of each intermediate data source corresponds to the format required by data isomerism, for example, when the format of the data is isomerised by adopting a Flink stream type calculation mode, the data required to be isomerised is firstly processed into the format required by the Flink stream type calculation, so that the effect of preprocessing the data required to be isomerised is achieved, and the data isomerisation operation can be conveniently and rapidly carried out in the later period.
S203, data isomerization is carried out on the order request data.
Specifically, a Flink stream computing mode is adopted to carry out data isomerization on a service log intermediate data source, a service node intermediate data source, an order log intermediate data source and a data format of a modified record intermediate data source corresponding to the preprocessed order request, so that a plurality of order request data sources with the same data format as that required to be read by a third party are obtained; for example, an order request data source in the same data format as required by the vendor system of the train ticket or an order request data source in the same data format as required by the WeChat payment system, etc.
S204, storing the order request data source.
Specifically, the data source of the order request obtained after the data is heterogeneous is stored in the write node database.
S30, synchronizing the data of the write node database to the read node database.
Specifically, after the data source of the order request obtained after the data isomerization is stored in the writing node database, synchronizing the information of the data source of the order request to the reading node database, so that the reading node database also contains the related information of the order request; and generating a message event representing a stored order request to the read node database while synchronizing information of the request data source to the read node database.
S40, sending broadcast to a third party corresponding to the order request.
Specifically, after generating a message event of a stored order request to the read node database, synchronously transmitting the message event to a third party corresponding to the order request in a broadcast form, for example, when the order request is a WeChat payment request, transmitting the message event to a WeChat payment system; when the order request is a train ticket booking seat occupying request, a message event is sent to a train ticket provider system; the third party can actively call the order request data source in the read node database after receiving the broadcast so as to process the order request and generate a processing result; the data format of the order request data source is the same as that required by the third party so that the third party can quickly process the order request.
Meanwhile, related data of the order request in the order processing system can be heterogeneous into different data formats and respectively stored in different databases so as to be called by different demanding parties at any time, for example, background research and development personnel of the order processing system can regularly call order information to carry out statistical analysis on different order information; or the background operation and maintenance personnel can pull the abnormal event in the order processing process to perform unified operation and maintenance processing.
S50, sending broadcast to a preset auxiliary processing system.
Specifically, the preset auxiliary processing system is used for replacing the auxiliary processing system to process auxiliary events related to the order request except the order request, such as payment state information, seat occupation detail information and the like in the order process; the order processing system sends the broadcast to the auxiliary processing system while sending the broadcast to the third party; after receiving the broadcast, the auxiliary processing system can call the data information related to the order request in the read node database according to the need to replace auxiliary events related to the order request except the order request processed by the order processing system; the auxiliary processing system is arranged to share the processing pressure of the order processing system, so that the order processing system can only process events directly related to the order request, and auxiliary events outside the order request can be completed by the auxiliary processing system, thereby relieving the service pressure of the order processing system and improving the processing efficiency of the order processing system.
S60, storing the processing result of the auxiliary event.
Specifically, the auxiliary processing system generates processing results of a plurality of auxiliary events after processing the auxiliary events, after generating the processing results of the auxiliary events, adopts a link stream calculation mode to isomerise the data format of the processing results of the auxiliary events to obtain an auxiliary processing result data source which is the same as the data format required to be read by a user side, and stores the auxiliary processing result data source in an auxiliary database for the user side to read.
S70, storing the processing result fed back by the third party.
Specifically, after a third party invokes a related order request to process and generate a processing result of the order request, the processing result of the order request is sent to a reading node database, and the reading node database receives the processing result of the order request; after receiving the processing result of the order request, the read node database adopts a Flink stream computing mode to isomerise the data format of the processing result of the order request, so as to obtain an order processing result data source which is the same as the data format required to be read by a user side, and synchronously storing the obtained order processing result data source into the read node database for the user side to read; after the order processing result data source is stored in the read node database, message events representing the stored processing results to the read node database are synchronously generated.
S80, sending the broadcast to the user side.
Specifically, the generated message event from the stored processing result to the read node database is synchronously sent to the user side, so that the user side can know the processing result of the order request according to the notification of the message event, for example, the ticket is successfully occupied, the ticket order is successfully paid, and the like.
With reference to fig. 3, the method further comprises the optional steps of:
s90, receiving a query request of a user side.
Specifically, after receiving the broadcast of the message event of the stored processing result, the user side can choose whether to send a query request to the order processing system, and after receiving the order query request of the user side, the order processing system can call the data sources in the reading node database and/or the auxiliary database according to different service scenes and feed back the data sources to the user side; different business scenarios include: when the order related information is queried after the order is successfully processed, only an order processing result data source in the reading node database is required to be called to feed back the related information after the order is completed, such as departure time, train number, seat information and the like; when inquiring order related information after the order processing fails, calling an auxiliary processing result data source stored in an auxiliary database to feed back reasons of the order processing failure, such as information of unpaid orders, sold-out tickets and the like; the data source of the order processing result stored in the read node database and the data source of the auxiliary processing result stored in the auxiliary database are the same as the data format required by the user side, so that the user side can quickly perform relevant processing on the fetched information.
The implementation principle of the embodiment of the application is as follows: in the process of order processing of a user, an order processing system only stores an order request of the user and a feedback result of a third party, and correspondingly sends stored result information to the user or the third party after storing, and does not actively send stored contents; after receiving the result information notified by the order processing system, the user and the third transmitter can select whether to call the related data of the order or the result stored in the order processing system according to the need, so that each system can only pay attention to own service, and simultaneously notify the related system in a broadcast mode, thereby achieving the effect of decoupling the systems, reducing the coupling degree between the systems and further improving the stability of the order processing system; the auxiliary processing system can replace the auxiliary event except part of order requests processed by the order processing system, so that the service pressure of the order processing system is reduced; meanwhile, after receiving the order request or the processing result information fed back by the third party, the order processing system can carry out data isomerism on the received data, so that the data stored in the reading database can correspond to the data format required by the user side or the third party, and the user and the third party can carry out relevant processing quickly after retrieving relevant data in the reading database, thereby further improving the processing efficiency of the order.
Based on the method, the embodiment of the application also discloses a distributed order processing device.
With reference to fig. 4, the apparatus comprises the following modules:
a request receiving module 301, configured to receive an order request from a user side;
a request storage module 302 for storing the order request to a write node database and generating a message event;
the data synchronization module 303 is configured to synchronize an order request in the write node database to the read node database for reading by a third party;
the first broadcasting module 304 is configured to send a message event of the stored order request to the read node database to a third party corresponding to the order request in a broadcast manner, so that the third party invokes data of the order request in the write node database after receiving the broadcast to process the order request and generate a processing result;
a result receiving module 305, configured to receive a processing result corresponding to the order request, which is fed back by the third party;
the result storage module 306 is configured to store a processing result of the order request to the read node database and generate a message event;
a second broadcasting module 307, configured to send the message event of the stored processing result to the read node database to a user side corresponding to the order request in a broadcast form;
a third broadcasting module 308, configured to send the message event of the stored processing result to all preset auxiliary processing systems in a broadcast manner; the auxiliary processing system is used for calling the data information related to the order request in the node database according to the need after receiving the broadcast so as to replace the auxiliary event related to the order request except the order request processed by the order processing system, and storing the processing result of the auxiliary event into the auxiliary database;
the format processing module 309 is configured to pre-process the service log, the service node, and the data format of the order log in the order request to obtain a service log intermediate data source, a service node intermediate data source, and an order log intermediate data source.
The embodiment of the application also discloses computer equipment.
In particular, the computer device comprises a memory and a processor, the memory having stored thereon a computer program capable of being loaded by the processor and performing the above-described distributed order processing method.
The embodiment of the application also discloses a computer readable storage medium.
Specifically, the computer readable storage medium stores a computer program capable of being loaded by a processor and executing the distributed order processing method as described above, the computer readable storage medium includes, for example: a U-disk, a removable hard disk, a Read-only memory (ROM), a random access memory (RandomAccessMemory, RAM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
The present embodiment is only for explanation of the present application and is not to be construed as limiting the present application, and modifications to the present embodiment, which may not creatively contribute to the present application as required by those skilled in the art after reading the present specification, are all protected by patent laws within the scope of claims of the present application.

Claims (10)

1. A distributed order processing method, the method comprising:
receiving an order request of a user side;
storing the order request to a write node database;
synchronizing the order request in the write node database to a read node database for a third party to read, and generating a message event;
the method comprises the steps that a message event of a stored order request to a read node database is sent to a third party corresponding to the order request in a broadcast mode, so that the third party can call data of the order request in the read node database after receiving the broadcast to process the order request and generate a processing result;
receiving a processing result corresponding to the order request, which is fed back by the third party;
storing the processing result of the order request to a read node database and generating a message event;
and sending the message event of which the processing result is stored to the read node database to a user side corresponding to the order request in a broadcast mode.
2. The method of distributed order processing according to claim 1, wherein,
after the processing result is stored in the read node database, the method further comprises the steps of;
the message event of the stored processing result is sent to all preset auxiliary processing systems in a broadcast mode, so that the auxiliary processing system can call the data information related to the order request in the node database according to the need after receiving the broadcast to replace the auxiliary event related to the order request except the order request processed by the order processing system, and the processing result of the auxiliary event is stored in the auxiliary database;
in the method, the user side can perform the operation of sending out the query after receiving the broadcast of the message event of the stored processing result;
the method further comprises the steps of:
and when receiving a query request of the user side for the order request, the related data information in the reading node database and/or the auxiliary database is called, and the called data information is fed back to the user side.
3. The method of distributed order processing according to claim 2, wherein,
the order request comprises a service log and a service node;
the storing the order request to a write node database includes:
distributing an order log for the order request stored in the write node database, wherein the order log is a unique identity of the order request;
and storing the service log, the service node and the order log corresponding to the order request into a write node database.
4. A distributed order processing method according to claim 3, wherein,
the storing the service log, the service node, and the order log corresponding to the order request in a write node database includes:
carrying out data isomerization on the data formats of the service log, the service node and the order log in the order request to obtain a plurality of order request data sources which have the same data format as that which needs to be read by a third party;
and storing a plurality of order request data sources in a write node database.
5. The method of claim 4, further comprising, prior to said data isomerization of the data formats of the service log, service node, and order log in the order request;
respectively preprocessing the service log, the service node and the data format of the order log in the order request to obtain a service log intermediate data source, a service node intermediate data source and an order log intermediate data source; the log intermediate data source, the service node intermediate data source and the order log intermediate data source all correspond to formats required by data isomerism.
6. A distributed order processing method according to claim 3, wherein,
the step of storing the processing result of the order request in a read node database comprises the following steps:
carrying out data isomerization on the data format of the order request processing result to obtain an order processing result data source which is the same as the data format required to be read by a user side;
and storing the order processing result data source in a reading node database for reading by a user side.
7. A distributed order processing method as claimed in claim 3, wherein said storing the processing results of the auxiliary event in an auxiliary database comprises:
carrying out data isomerization on the data format of the auxiliary event processing result to obtain an auxiliary processing result data source which is the same as the data format to be read by the user side;
the auxiliary processing result data source is stored in an auxiliary database for reading by a user side.
8. A distributed order processing apparatus, the apparatus comprising:
a request receiving module (301) for receiving an order request from a user side;
a request storage module (302) for storing the order request to a write node database and generating a message event;
the data synchronization module (303) is used for synchronizing the order request in the write node database to the read node database for a third party to read;
the first broadcasting module (304) is used for sending the message event of the stored order request to the read node database to a third party corresponding to the order request in a broadcasting mode, so that the third party can call the data of the order request in the write node database after receiving the broadcasting to process the order request and generate a processing result;
a result receiving module (305) configured to receive a processing result corresponding to the order request, which is fed back by the third party;
a result storage module (306) for storing the processing result of the order request to a read node database and generating a message event;
a second broadcasting module (307) for transmitting the message event of the stored processing result to the read node database in broadcast form to the user side corresponding to the order request.
9. A computer device comprising a memory and a processor, the memory having stored thereon a computer program capable of being loaded by the processor and performing the method according to any of claims 1 to 7.
10. A computer readable storage medium, characterized in that a computer program is stored which can be loaded by a processor and which performs the method according to any one of claims 1 to 7.
CN202011076853.5A 2020-10-10 2020-10-10 Distributed order processing method, device, equipment and storage medium Active CN112258266B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011076853.5A CN112258266B (en) 2020-10-10 2020-10-10 Distributed order processing method, device, equipment and storage medium
PCT/CN2020/134274 WO2022073293A1 (en) 2020-10-10 2020-12-07 Distributed order processing method, apparatus, device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011076853.5A CN112258266B (en) 2020-10-10 2020-10-10 Distributed order processing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112258266A CN112258266A (en) 2021-01-22
CN112258266B true CN112258266B (en) 2023-09-26

Family

ID=74242952

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011076853.5A Active CN112258266B (en) 2020-10-10 2020-10-10 Distributed order processing method, device, equipment and storage medium

Country Status (2)

Country Link
CN (1) CN112258266B (en)
WO (1) WO2022073293A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113282660B (en) * 2021-05-24 2023-05-23 挂号网(杭州)科技有限公司 Method and system for synchronizing data in cluster, electronic equipment and storage medium
CN115204814A (en) * 2022-06-23 2022-10-18 平安科技(深圳)有限公司 Order approval method and device, storage medium and computer equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011078723A1 (en) * 2009-12-25 2011-06-30 Starodubtsev Valeriy Ivanovich System for orders for and the sale of goods and services (variants), method for offering for sale and placing orders, and method for the sale of goods and services
CN104156863A (en) * 2014-08-08 2014-11-19 携程计算机技术(上海)有限公司 OTA website order processing system and method
US10331695B1 (en) * 2013-11-25 2019-06-25 Amazon Technologies, Inc. Replication coordination service for data transfers between distributed databases
CN111127157A (en) * 2019-12-24 2020-05-08 北京每日优鲜电子商务有限公司 Order processing method, device, storage medium and equipment

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8108612B2 (en) * 2009-05-15 2012-01-31 Microsoft Corporation Location updates for a distributed data store
US9507843B1 (en) * 2013-09-20 2016-11-29 Amazon Technologies, Inc. Efficient replication of distributed storage changes for read-only nodes of a distributed database
US10884869B2 (en) * 2015-04-16 2021-01-05 Nuodb, Inc. Backup and restore in a distributed database utilizing consistent database snapshots
CN110012050A (en) * 2018-12-04 2019-07-12 阿里巴巴集团控股有限公司 Message Processing, storage method, apparatus and system
CN109685674A (en) * 2018-12-21 2019-04-26 众安信息技术服务有限公司 Order based on block chain leads to cardization, compensation, the method, apparatus of inquiry and storage medium
CN110245764A (en) * 2019-05-13 2019-09-17 特斯联(北京)科技有限公司 A kind of about vehicle traveling method based on distributed storage database
CN110503781A (en) * 2019-09-19 2019-11-26 腾讯科技(深圳)有限公司 Vehicle leasing business data processing method and device based on block chain

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011078723A1 (en) * 2009-12-25 2011-06-30 Starodubtsev Valeriy Ivanovich System for orders for and the sale of goods and services (variants), method for offering for sale and placing orders, and method for the sale of goods and services
US10331695B1 (en) * 2013-11-25 2019-06-25 Amazon Technologies, Inc. Replication coordination service for data transfers between distributed databases
CN104156863A (en) * 2014-08-08 2014-11-19 携程计算机技术(上海)有限公司 OTA website order processing system and method
CN111127157A (en) * 2019-12-24 2020-05-08 北京每日优鲜电子商务有限公司 Order processing method, device, storage medium and equipment

Also Published As

Publication number Publication date
CN112258266A (en) 2021-01-22
WO2022073293A1 (en) 2022-04-14

Similar Documents

Publication Publication Date Title
US20080262994A1 (en) Populating requests to multiple destinations using a mass request
CN106874334B (en) Data processing method and device and information processing system
CN112258266B (en) Distributed order processing method, device, equipment and storage medium
CN109189841B (en) Multi-data source access method and system
US20110004667A1 (en) Method and system for providing order status information using an update status flag
CN114363407B (en) Message service method and device, readable storage medium and electronic equipment
CN108446335B (en) Heterogeneous system data extraction and unified external data exchange method based on database
CN110968586A (en) Distributed transaction processing method and device
CN112559476B (en) Log storage method for improving performance of target system and related equipment thereof
CN102012899A (en) Method, system and equipment for updating data
US7908243B2 (en) Considering transient data also in reports generated based on data eventually stored in a data-warehouse
US7765197B2 (en) System and method for producing data replica
US7827132B2 (en) Peer based event conversion
US20090187917A1 (en) Transfer of data from transactional data sources to partitioned databases in restartable environments
CN110928911A (en) System, method and device for processing checking request and computer readable storage medium
CN102195936A (en) Method and system for storing multimedia file and method and system for reading multimedia file
CN111966653A (en) Data processing method, device, server and storage medium for micro-service call link
CN115495513A (en) Event standardization method and device
CN115170152A (en) Data distribution method, device, equipment and storage medium
CN110175179B (en) Data transmission method and system, service node and storage device
CN114387124A (en) Time sequence data storage method of nuclear power industry internet platform
CN111258775A (en) Message processing method, device, equipment and storage medium
CN108196834B (en) Static processing system of website
CN111930841A (en) Data synchronization method and device
JP7463606B1 (en) Connection switching server and connection switching method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant