CN112258266A - Distributed order processing method, device, equipment and storage medium - Google Patents
Distributed order processing method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN112258266A CN112258266A CN202011076853.5A CN202011076853A CN112258266A CN 112258266 A CN112258266 A CN 112258266A CN 202011076853 A CN202011076853 A CN 202011076853A CN 112258266 A CN112258266 A CN 112258266A
- Authority
- CN
- China
- Prior art keywords
- order
- order request
- request
- node database
- 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.)
- Granted
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 22
- 238000012545 processing Methods 0.000 claims abstract description 177
- 238000000034 method Methods 0.000 claims abstract description 40
- 238000004590 computer program Methods 0.000 claims description 8
- 238000007781 pre-processing Methods 0.000 claims description 5
- 230000000694 effects Effects 0.000 abstract description 10
- 230000008878 coupling Effects 0.000 abstract description 6
- 238000010168 coupling process Methods 0.000 abstract description 6
- 238000005859 coupling reaction Methods 0.000 abstract description 6
- 238000012986 modification Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
- 238000007619 statistical method Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 230000026676 system process Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0633—Lists, e.g. purchase orders, compilation or processing
- G06Q30/0635—Processing of requisition or of purchase orders
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
- G06F16/258—Data format conversion from or to a database
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/542—Event management; Broadcasting; Multicasting; Notifications
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- General Engineering & Computer Science (AREA)
- Finance (AREA)
- Software Systems (AREA)
- Accounting & Taxation (AREA)
- Data Mining & Analysis (AREA)
- Multimedia (AREA)
- Computing Systems (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (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 distributed order processing device 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 writing node database; synchronizing the order requests in the writing node database to the reading node database; sending the message event of the stored order request to the reading 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 writing node database to process the order request and generate a processing result; receiving a processing result which is fed back by the third party and corresponds to the order request; storing the processing result of the order request to a reading node database; and sending the message event which stores the processing result to the reading node database to a user side corresponding to the order request in a broadcasting mode. 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
Technical Field
The present application relates to the field of order processing technologies, and in particular, to a distributed order processing method, apparatus, device, and storage medium.
Background
With the continuous development of the OTA industry, the volume of service orders and the complexity of services rapidly rise, the requirements of the services 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 transmitting information between a user side and different third parties, so that the user can complete order processing between the user side and the different third parties through the order processing system; the order processing system is responsible for receiving the order information and sending the order information in the order processing process, so that the system coupling degree among the user side, the order processing system and a third party is high, and the stability of the order processing system is low.
Disclosure of Invention
In order to solve the problem of low stability of an order processing system, the application provides a distributed order processing method, a distributed order processing device, a distributed order processing apparatus and a storage medium.
In a first aspect, the present application provides a distributed order processing method, which adopts the following technical solutions:
the method comprises the following steps:
receiving an order request of a user side;
storing the order request to a writing node database;
synchronizing the order requests in the writing node database to a reading node database for a third party to read and generate message events;
sending the message event of the stored order request to the reading 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 reading node database after receiving the broadcasting to process the order request and generate a processing result;
receiving a processing result which is fed back by the third party and corresponds to the order request;
storing the processing result of the order request to a reading node database and generating a message event;
and sending the message event which stores the processing result to the reading node database to a user side corresponding to the order request in a broadcasting mode.
By the technical scheme, in the order processing process of the user, the order processing system only stores the order request of the user and the feedback result of the third party, correspondingly sends the stored result information to the user or the third party after 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 invoke the order or the relevant data of the result stored in the order processing system according to the requirement, so that each system can only pay attention to the own service, and simultaneously notify the relevant system in a broadcasting mode, thereby achieving the effect of system decoupling, reducing the coupling degree among the systems and further improving the stability of the order processing system.
Preferably, after the storing the processing result to the reading node database, the method further includes;
sending the message events with the stored processing results to all preset auxiliary processing systems in a broadcasting mode, so that the auxiliary processing systems can call data information related to the order request in the reading node database according to needs after receiving the broadcasting so as to replace the order processing system to process auxiliary events related to the order request except the order request, and storing the processing results of the auxiliary events to the auxiliary database;
in the method, the user side can perform an operation of sending out a query after receiving the broadcast of the message event of the stored processing result;
the method further comprises the following steps:
and when receiving a query request of a user side for the order request, calling relevant data information in the reading node database and/or the auxiliary database and feeding back the called data information to the user side.
Through the technical scheme, the main business 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 business 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 events independently, so that a user can rapidly call and query all the processing results related to the order request, and the user experience is improved.
Preferably, the order request includes a service log and a service node;
the storing the order request to a write node database includes:
distributing an order log for an order request stored in a writing 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 to a writing 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 requests, the specific order requests 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 a writing node database includes:
performing data isomerism on the data formats of the service logs, the service nodes and the order logs in the order requests to obtain a plurality of order request data sources with the same data format as that required to be read by a third party;
storing a number of the order request data sources in a write node database.
According to the technical scheme, before the order request is stored, according to the data requirement format of the third party corresponding to the order request, the data of the order request is subjected to isomerism in advance to enable the format of the data to correspond to the data format required by the corresponding third party, so that the third party does not need to convert the format of the order request when the order request is called, the order request can be rapidly processed by the third party, and the processing efficiency of the third party on the order request is improved.
Preferably, before performing data isomerism on the data formats of the service log, the service node and the order log in the order request, the method further includes the steps of;
respectively preprocessing the data formats of the service log, the service node and 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; and 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, different data types in the order request are classified and preprocessed in advance before data of the order request is subjected to heterogeneous processing, all the data types of the order request are converted into formats required by data heterogeneous in advance, 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 to a reading node database includes:
carrying out data isomerism 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 a user side to read.
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 isomerized into the format corresponding to the data format required by the user side in advance, so that the user side can rapidly process the related data of the order processing result called from the reading node database, 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 to the auxiliary database includes:
carrying out data isomerism 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 required to be read by a user;
and storing the auxiliary processing result data source in an auxiliary database for reading by a user.
Through the technical scheme, before the processing result of the auxiliary event is stored in the auxiliary database, the auxiliary processing structure is isomerized into a 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 from 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 solutions: 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 writing node database and generating a message event;
the data synchronization module is used for synchronizing the order request in the writing node database to the reading 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 reading 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 writing node database after receiving the broadcasting to process the order request and generate a processing result;
the result receiving module is used for receiving the 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 reading node database and generating a message event;
and the second broadcasting module is used for sending the message event which has the stored processing result to the reading node database to the user side corresponding to the order request in a broadcasting mode.
By the technical scheme, in the order processing process of the user, the order processing system only stores the order request of the user and the feedback result of the third party, correspondingly sends the stored result information to the user or the third party after 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 invoke the order or the relevant data of the result stored in the order processing system according to the requirement, so that each system can only pay attention to the own service, and simultaneously notify the relevant system in a broadcasting mode, thereby achieving the effect of system decoupling, reducing the coupling degree among the systems and further improving the stability of the order processing system.
In a third aspect, the present application provides a computer device, which adopts the following technical solution: comprising a memory and a processor, said memory having stored thereon a computer program that can be loaded by the processor and that executes any of the distributed order processing methods described above.
Through 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 which can be loaded by a processor and which can perform any of the above-described distributed order processing methods.
Through 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 concern about own service, and simultaneously inform the relevant system in a broadcasting way, thereby achieving the effect of system decoupling, reducing the coupling degree among the systems and further improving the stability of the order processing system;
2. before the order request is stored, the data of the order request is subjected to isomerism in advance to enable the format of the data to correspond to the data format required by a corresponding third party, so that 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 flowchart of a distributed order processing method according to an embodiment of the present application.
Fig. 2 is a flowchart illustrating the sub-steps of S20 in an embodiment of the present application.
FIG. 3 is a block diagram of an embodiment of the present application, which embodies the structure of receiving a query request.
Fig. 4 is a block diagram of a distributed order processing apparatus according to an embodiment of the present invention.
Reference numerals: 301. a request receiving module; 302. a request 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 present application is described in further detail below with reference to figures 1-4.
The embodiment of the application discloses a distributed order processing method.
With reference to fig. 1, the method comprises the following steps:
and 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 requirements such as a ticket booking request or a payment request; the different order requests correspond to different third parties, respectively, such as: 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 payment software such as WeChat and Paibao.
And S20, storing the order request to the writing node database.
With reference to fig. 2, S20 specifically includes the following four sub-steps:
s201, distributing order logs for the order requests.
Specifically, after receiving an order request, the writing node database allocates a unique order log to the order request, wherein the order log is a unique identity of the order request; therefore, when the order processing system processes the data of the order request at the later stage, the order request can be quickly and accurately found according to the order log.
S202, preprocessing the order request data.
Specifically, preprocessing a service log corresponding to the order request, a service node, an order log and a data format of a modification record of a writing node database 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 formats of the intermediate data sources correspond to the formats required by data isomerism, for example, when the format of the data is isomerised in a Flink streaming computing mode, the data required to be isomerism is processed into the format required by the Flink streaming computing, so that the effect of preprocessing the data required to be isomerism is achieved, and the data isomerism operation can be rapidly performed in the later period.
And S203, carrying out data isomerism on the order request data.
Specifically, a Flink streaming computing mode is adopted to carry out data isomerism on data formats of 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 corresponding to a preprocessed order request, and 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 supplier system of the train ticket, or an order request data source in the same data format as required by the WeChat payment system, etc.
And S204, storing the order request data source.
Specifically, the order request data source obtained after data are heterogeneous is stored in the write node database.
S30, synchronizing the data of the writing node database to the data of the reading node database.
Specifically, after an order request data source obtained after data are heterogeneous is stored in a write node database, information of the order request data source is synchronized to a read node database, so that the read node database also contains relevant information of the order request; and generating a message event representing the stored order request to the read node database while synchronizing information of the requesting data source to the read node database.
And S40, sending the broadcast to the third party corresponding to the order request.
Specifically, after a message event of a stored order request is generated to a reading node database, the message event is synchronously sent to a third party corresponding to the order request in a broadcast mode, for example, when the order request is a WeChat payment request, the message event is sent 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 supplier system; so that a third party can actively call an order request data source in the reading node database after receiving the broadcast to process the order request and generate a processing result; the data format of the order request data source is the same as the format required by the third party so that the third party can quickly process the order request.
Meanwhile, the related data of the order request in the order processing system can be isomerized into different data formats and stored in different databases respectively for different demanders to call at any time, for example, a background research and development staff of the order processing system can call the order information regularly to perform statistical analysis on different order information; or the background operation and maintenance personnel can pull the abnormal events in the order processing process to carry out uniform operation and maintenance processing.
And S50, sending the broadcast to a preset auxiliary processing system.
Specifically, the preset auxiliary processing system is used for processing auxiliary events related to the order request, such as payment state information, seat occupation detail information and the like in the order process, in addition to the order request, in place of the order processing system; the order processing system sends the broadcast to the third party and simultaneously sends the broadcast to the auxiliary processing system; after receiving the broadcast, the auxiliary processing system calls data information related to the order request in the reading node database according to needs to replace the order processing system to process auxiliary events related to the order request except the order request; the auxiliary processing system is arranged to share the effect of 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 except 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.
And S60, storing the processing result of the auxiliary event.
Specifically, the auxiliary processing system generates a plurality of processing results of the auxiliary events after processing the auxiliary events, and after the auxiliary event processing results are generated, adopts a Flink streaming computing mode to perform isomerism on the data format of the processing results of the auxiliary events, obtains an auxiliary processing result data source with the same data format as that required to be read by the user, and stores the auxiliary processing result data source in an auxiliary database for the user to read.
And S70, storing the processing result fed back by the third party.
Specifically, after the third party calls the relevant order request for processing and generates the processing result of the order request, the processing result of the order request is sent to the reading node database, and the reading node database receives the processing result of the order request; after the reading node database receives the processing result of the order request, the data format of the processing result of the order request is subjected to isomerism in a Flink streaming computing mode, an order processing result data source which is the same as the data format which needs to be read by a user side is obtained, and the obtained order processing result data source is synchronously stored in the reading node database to be read by the user side; after the order processing result data source is stored in the read node database, a message event representing the stored processing result is synchronously generated in the read node database.
And S80, sending the broadcast to the user side.
Specifically, the generated message event of the stored processing result to the reading 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 seat occupation success of the ticket, the payment success of the ticket order, and the like.
With reference to fig. 3, the method further comprises the following optional steps:
and S90, receiving the query request of the user side.
Specifically, after receiving the broadcast of the message event of the stored processing result, the user side can select whether to send an inquiry request to the order processing system, and after receiving the order inquiry request of the user side, the order processing system can call and read data sources in the 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 inquired after the order is successfully processed, only the order processing result data source in the reading node database needs 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 the order related information is inquired after the order processing fails, an auxiliary processing result data source stored in an auxiliary database is called to feed back the reason of the order processing failure, such as the information that the order is not paid and the tickets are sold out; the order processing result data source stored in the reading node database and the auxiliary processing result data source stored in the auxiliary database are both in the same data format as that required by the user side, so that the user side can quickly perform related processing on the acquired information.
The implementation principle of the embodiment of the application is as follows: in the order processing process of the user, the order processing system only stores the order request of the user and the feedback result of the third party, correspondingly sends the stored result information to the user or the third party after 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 invoke the order or the related data of the result stored in the order processing system according to the requirement, so that each system can only pay attention to the own service, and simultaneously notify the related system in a broadcasting way, thereby achieving the effect of system decoupling, reducing the coupling degree among the systems and further improving the stability of the order processing system; the auxiliary processing system can replace the order processing system to process auxiliary events except part of order requests, 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 performs data isomerism on the received data, so that the data stored in the data reading database can correspond to the data format required by the user party or the third party, and the user and the third party can perform related processing quickly after calling the related data in the data reading database, thereby further improving the order processing efficiency.
Based on the method, the embodiment of the application further 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 of a user;
a request storage module 302, configured to store the order request to a write node database and generate a message event;
a data synchronization module 303, configured to synchronize 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 configured to send a message event, which has stored the order request to the read node database, to a third party corresponding to the order request in a form of broadcasting, so that the third party can call 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, fed back by the third party;
a result storage module 306, configured to store a processing result of the order request in a read node database and generate a message event;
a second broadcasting module 307, configured to send the message event stored in the read node database to the user side corresponding to the order request in a broadcast manner;
a third broadcasting module 308, configured to send the message event with the stored processing result to all preset auxiliary processing systems in a broadcast manner; the auxiliary processing system calls data information related to the order request in the reading node database according to needs after receiving the broadcast so as to replace the order processing system to process auxiliary events related to the order request except the order request, and stores processing results of the auxiliary events to the auxiliary database;
and a format processing module 309, configured to pre-process the data formats of the service log, the service node, and the order log in the order request, respectively, 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 that can be loaded by the processor and execute 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 that can be loaded by a processor and executes the distributed order processing method as described above, and includes, for example: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The present embodiment is only for explaining the present invention, and it is not limited to the present invention, and those skilled in the art can make modifications of the present embodiment without inventive contribution as needed after reading the present specification, but all of them are protected by patent law within the scope of the claims of the present invention.
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 writing node database;
synchronizing the order requests in the writing node database to a reading node database for a third party to read and generate message events;
sending the message event of the stored order request to the reading 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 reading node database after receiving the broadcasting to process the order request and generate a processing result;
receiving a processing result which is fed back by the third party and corresponds to the order request;
storing the processing result of the order request to a reading node database and generating a message event;
and sending the message event which stores the processing result to the reading node database to a user side corresponding to the order request in a broadcasting mode.
2. The distributed order processing method of claim 1,
after the storing the processing result to the reading node database, further comprising;
sending the message events with the stored processing results to all preset auxiliary processing systems in a broadcasting mode, so that the auxiliary processing systems can call data information related to the order request in the reading node database according to needs after receiving the broadcasting so as to replace the order processing system to process auxiliary events related to the order request except the order request, and storing the processing results of the auxiliary events to the auxiliary database;
in the method, the user side can perform an operation of sending out a query after receiving the broadcast of the message event of the stored processing result;
the method further comprises the following steps:
and when receiving a query request of a user side for the order request, calling relevant data information in the reading node database and/or the auxiliary database and feeding back the called data information to the user side.
3. The distributed order processing method of claim 2,
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 an order request stored in a writing 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 to a writing node database.
4. The distributed order processing method of claim 3,
the storing the service log, the service node and the order log corresponding to the order request to a writing node database includes:
performing data isomerism on the data formats of the service logs, the service nodes and the order logs in the order requests to obtain a plurality of order request data sources with the same data format as that required to be read by a third party;
storing a number of the order request data sources in a write node database.
5. The distributed order processing method according to claim 4, wherein before performing data isomerism on data formats of a service log, a service node and an order log in the order request, the method further comprises;
respectively preprocessing the data formats of the service log, the service node and 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; and 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. The distributed order processing method of claim 3,
the storing the processing result of the order request to a reading node database includes:
carrying out data isomerism 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 a user side to read.
7. The distributed order processing method of claim 3, wherein storing the processing result of the auxiliary event to an auxiliary database comprises:
carrying out data isomerism 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 required to be read by a user;
and storing the auxiliary processing result data source in an auxiliary database for reading by a user.
8. A distributed order processing apparatus, the apparatus comprising:
a request receiving module (301) for receiving an order request of a user side;
a request storage module (302) for storing the order request to a write node database and generating a message event;
a data synchronization module (303) 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 reading 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 writing node database after receiving the broadcasting to process the order request and generate a processing result;
a result receiving module (305) for receiving the processing result corresponding to the order request 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;
and a second broadcasting module (307) for sending the message event stored with the processing result to the reading node database to the user side corresponding to the order request in a broadcasting mode.
9. A computer device comprising a memory and a processor, the memory having stored thereon a computer program that can be loaded by the processor and that executes the method according to any of claims 1 to 7.
10. A computer-readable storage medium, in which a computer program is stored which can be loaded by a processor and which executes the method of any one of claims 1 to 7.
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 true CN112258266A (en) | 2021-01-22 |
CN112258266B 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) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113282660A (en) * | 2021-05-24 | 2021-08-20 | 挂号网(杭州)科技有限公司 | Method and system for synchronizing data in cluster, electronic device and storage medium |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115204814A (en) * | 2022-06-23 | 2022-10-18 | 平安科技(深圳)有限公司 | Order approval method and device, storage medium and computer equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100293334A1 (en) * | 2009-05-15 | 2010-11-18 | Microsoft Corporation | Location updates for a distributed data store |
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 |
US20160306709A1 (en) * | 2015-04-16 | 2016-10-20 | Nuodb, Inc. | Backup and restore in a distributed database utilizing consistent database snapshots |
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 (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
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 |
-
2020
- 2020-10-10 CN CN202011076853.5A patent/CN112258266B/en active Active
- 2020-12-07 WO PCT/CN2020/134274 patent/WO2022073293A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100293334A1 (en) * | 2009-05-15 | 2010-11-18 | Microsoft Corporation | Location updates for a distributed data store |
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 |
US20160306709A1 (en) * | 2015-04-16 | 2016-10-20 | Nuodb, Inc. | Backup and restore in a distributed database utilizing consistent database snapshots |
CN111127157A (en) * | 2019-12-24 | 2020-05-08 | 北京每日优鲜电子商务有限公司 | Order processing method, device, storage medium and equipment |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113282660A (en) * | 2021-05-24 | 2021-08-20 | 挂号网(杭州)科技有限公司 | Method and system for synchronizing data in cluster, electronic device and storage medium |
CN113282660B (en) * | 2021-05-24 | 2023-05-23 | 挂号网(杭州)科技有限公司 | Method and system for synchronizing data in cluster, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112258266B (en) | 2023-09-26 |
WO2022073293A1 (en) | 2022-04-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106874334B (en) | Data processing method and device and information processing system | |
CN110691133B (en) | Web service mimicry system and method applied to network communication equipment | |
CN114363407B (en) | Message service method and device, readable storage medium and electronic equipment | |
CN112258266A (en) | Distributed order processing method, device, equipment and storage medium | |
EP3489825A1 (en) | Method, apparatus and computer readable storage medium for processing service | |
CN110909060B (en) | Data reporting method and system | |
CN113204598A (en) | Data synchronization method, system and storage medium | |
CN109284482B (en) | Writing platform system and article publishing method for writing platform | |
CN111046245A (en) | Multi-source heterogeneous data source fusion calculation method, system, equipment and storage medium | |
CN110928911A (en) | System, method and device for processing checking request and computer readable storage medium | |
CN117354373A (en) | Asynchronous notification method and system based on notification parameter modularized assembly | |
GB2605028A (en) | Internal message routing system and method | |
CN111582996B (en) | Service information display method and device | |
US20090106781A1 (en) | Remote call handling methods and systems | |
CN115543662A (en) | Method and related device for issuing kafka message data | |
CN101170584A (en) | Distributed system and data configuration method in the system | |
CN111324668B (en) | Database data synchronous processing method, device and storage medium | |
CN111258775A (en) | Message processing method, device, equipment and storage medium | |
CN108268607B (en) | Data circulation system and method, storage medium, and terminal | |
CN108196834B (en) | Static processing system of website | |
CN111930841A (en) | Data synchronization method and device | |
CN111190717A (en) | Task processing method and system | |
CN101754178B (en) | Business tracking method, device and system | |
JP7463606B1 (en) | Connection switching server and connection switching method | |
CN112866587B (en) | Method and system for distributing spoken language video synthesis tasks |
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 |