CN109948994A - A kind of instant communicating method, device, computer system and readable storage medium storing program for executing - Google Patents

A kind of instant communicating method, device, computer system and readable storage medium storing program for executing Download PDF

Info

Publication number
CN109948994A
CN109948994A CN201811535126.3A CN201811535126A CN109948994A CN 109948994 A CN109948994 A CN 109948994A CN 201811535126 A CN201811535126 A CN 201811535126A CN 109948994 A CN109948994 A CN 109948994A
Authority
CN
China
Prior art keywords
inventory
store
order
database
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811535126.3A
Other languages
Chinese (zh)
Inventor
顾钰芬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart 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 OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201811535126.3A priority Critical patent/CN109948994A/en
Publication of CN109948994A publication Critical patent/CN109948994A/en
Pending legal-status Critical Current

Links

Abstract

The present invention provides a kind of instant communicating method, device, computer system and readable storage medium storing program for executing, are based on internet O&M, comprising the following steps: add advancements tab or common label in user's request, and according to user's request store result;Order result and order successful information are obtained according to store result;Inventory's result and inventory's successful information are obtained according to store result and order successful information.The present invention realizes Two-phase commitment, ensure that the reliability that order result updates and the reliability that inventory's result updates;Realize the technical effect to store task and store result differentiated control;The case where different clients is separately configured is avoided, the complexity communicated between client is reduced;Expand the scope of application of immediate communication device.

Description

A kind of instant communicating method, device, computer system and readable storage medium storing program for executing
Technical field
The present invention relates to system O&M technical field more particularly to a kind of instant communicating method, device, computer systems And readable storage medium storing program for executing.
Background technique
Activemq and kafka is to be currently being widely used open source processing platform, their message in processing per second Number, information throughput and availability etc. all respectively have superiority and inferiority;Therefore, according to message number, the selection such as stability Activemq message-oriented middleware or kafka message-oriented middleware can choose wherein a certain between mall system and other systems A message-oriented middleware completes communication;
However the message-oriented middleware is in use, it may appear that following problems;
1, existing message-oriented middleware cannot achieve the Two-phase commitment between port and mall system;Wherein, store system System includes mall server, store database, EDrop order server, order database, inventory server and inventory database;
2, the configuration of existing message-oriented middleware is complex, so that the communication between control center and different ports Configuration operation is relatively complicated, and the port configuration of such as existing activemq and kafka and code access way be not identical, therefore, Most current in mall system using being adapted to, to realize the communication between control center and port;
3, current message-oriented middleware can not identify the significance level of the information of transmission, and then also can not be by different Priority realizes the interaction of different information, it is easy to cause important information to be difficult to the case where transmitting, cause mall system with Information exchange between port it is unstable.
Summary of the invention
The object of the present invention is to provide a kind of instant communicating method, device, computer system and readable storage medium storing program for executing, use It is of the existing technology in solving the problems, such as.
To achieve the above object, the present invention provides a kind of instant communicating method, comprising the following steps:
S1: advancements tab or common label are added in user's request, and according to user's request store result;
S2: order result and order successful information are obtained according to store result;
S3: inventory's result and inventory's successful information are obtained according to store result and order successful information.
It further include S0 in above scheme, the step S0 includes: to receive the data packet that is exported by client, and from described User's request is extracted in data packet;
The step S1 includes:
S11: it is requested to export store request signal to mall server according to user;
S12: the store pass signal or store failure signal exported by mall server is received;
S13: store database is updated according to store pass signal;Or
The mall server readjustment is controlled according to store failure signal, and terminates instant messaging;
S14: database pass signal or failed database signal are received;
S15: store result is obtained according to database pass signal;Or
Mall server readjustment is controlled according to failed database signal, and controls store rollback database, terminates Instant Messenger Letter.
In above scheme, the step S2 includes:
S21: order request signal is exported according to the store result, to update order database;
S22: if order database is updated successfully, order pass signal is received;If order database updates failure, Receive order failure signal;
S23: exporting the store result to EDrop order server according to the order pass signal, takes the order Business device handles store result;Or
The mall server and EDrop order server readjustment are controlled according to the order failure signal, and is ordered described in control Single database and store rollback database terminate instant messaging;
S24: the order successful information of the order database output is received;Or
Receive the order failure information of the EDrop order server output.
In above scheme, the step S3 includes:
S31: inventory's request signal is exported to inventory server according to the store result and order successful information, makes institute Inventory server is stated according to inventory service signal update inventory database;
S32: if inventory database is updated successfully, the inventory's pass signal exported by the inventory server is received;If Inventory database updates failure, then receives the inventory's failure signal exported by the inventory server;
S33: exporting the store result to inventory server according to inventory's pass signal, takes the inventory Business device handles store result;Or
The mall server, EDrop order server and inventory server readjustment are controlled according to inventory's failure signal, and The inventory database, order database and store rollback database are controlled, instant messaging is terminated;
S34: inventory's successful information of the inventory database output is received;Or
Receive inventory's failure information of the inventory server output.
In above scheme, when there is common label in user's request:
The step S12 further includes;Setting time limit value is successfully believed if not receiving store in the time limit value Number or store failure signal, then assert that mall server executes and store mission failure and generate store failure signal;
The step S14 further include: setting time limit value, if not receiving database success in the time limit value Signal or failed database signal are then assert and update the store task to the operation failure in the database of store and generation Failed database signal;
When there is advancements tab in user's request:
The step S12 further includes;Setting time limit value is successfully believed if not receiving store in the time limit value Number or store failure signal, then mall server described in secondary control executes store task again, until receive store pass signal Or store failure signal;
The step S14 further include: setting time limit value, if not receiving database success in the time limit value Signal or failed database signal, then mall server described in secondary control exports the store task to store database again, And make store database update store task, until receiving database pass signal or failed database signal.
In above scheme, when there is common label in user's request:
The step S22 further include: setting time limit value is successfully believed if not receiving order in the time limit value Number or order failure signal, then assert that order database updates failure, and generate order failure signal;
The step S24 further include: setting time limit value is successfully believed if not receiving order in the time limit value Breath or order failure information, then assert that EDrop order server can not handle store as a result, and generating order failure information;According to institute It states order failure information and controls the mall server and EDrop order server readjustment, and control the order database and store Rollback database terminates instant messaging;
When there is advancements tab in user's request:
The step S22 further include: setting time limit value is successfully believed if not receiving order in the time limit value Number or order failure signal, then EDrop order server described in secondary control updates order database again, until receiving order and successfully believing Number or order failure signal;
The step S24 further include: setting time limit value is successfully believed if not receiving order in the time limit value Breath or order failure information, then again export the store result to EDrop order server, makes the EDrop order server processing quotient City is as a result, until receive order successful information or order failure information;The store is controlled according to the order failure information Server and EDrop order server readjustment, and the order database and store rollback database are controlled, terminate instant messaging.
In above scheme, when there is common label in user's request:
The step S32 further include: setting time limit value is successfully believed if not receiving inventory in the time limit value Number or inventory's failure signal, then assert that inventory database updates failure, and generate inventory's failure signal;
The step S34 further include: setting time limit value is successfully believed if not receiving inventory in the time limit value Breath or inventory's failure information, then assert that inventory server can not handle store as a result, and generating inventory's failure information;According to institute It states inventory's failure information and controls the mall server, EDrop order server and inventory server readjustment, and control the inventory According to library, order database and store rollback database, terminate instant messaging;
When there is advancements tab in user's request:
The step S32 further include: setting time limit value is successfully believed if not receiving inventory in the time limit value Number or inventory's failure signal, then inventory server described in secondary control updates inventory database again, until receiving inventory and successfully believing Number or inventory's failure signal;
The step S34 further include: setting time limit value is successfully believed if not receiving inventory in the time limit value Breath or inventory's failure information, then again export the store result to inventory server, makes the inventory server processing quotient City is as a result, until receive inventory's successful information or inventory's failure information;The store is controlled according to inventory's failure information Server, EDrop order server and inventory server readjustment, and control the inventory database, order database and store data Library rollback terminates instant messaging.
To achieve the above object, the present invention also provides a kind of immediate communication devices, comprising:
Store results management module: it for adding advancements tab or common label in user's request, and is asked according to user It asks and obtains store result;
Order results management module: order result and order successful information are obtained according to store result;
Inventory's results management module: inventory's result is obtained according to store result and order successful information and inventory successfully believes Breath.
To achieve the above object, the present invention also provides a kind of computer systems comprising multiple computer equipments, it is each to count Calculate machine equipment include memory processor and storage on a memory and the computer program that can run on a processor, institute The step of realizing above-mentioned instant communicating method jointly when stating the processor execution computer program of multiple computer equipments.
To achieve the above object, the present invention also provides a kind of computer readable storage mediums comprising multiple storages are situated between Matter is stored with computer program on each storage medium, and the computer program of the multiple storage medium storage is by processor The step of above-mentioned instant communicating method is realized when execution jointly.
The present invention realizes the Two-phase commitment to the output of store result by order results management module, ensure that and orders Single server process store as a result, and order result is stored unobstructed to the whole flow process of order database, and then guarantee The reliability that order result updates;
The Two-phase commitment to the output of store result is realized by inventory's results management module, ensure that inventory service Device processing store as a result, and inventory's result is stored unobstructed to the whole flow process of inventory database, and then ensure that inventory As a result the reliability updated;
Advancements tab or common label are added in user's request using store results management module, and setting time limits Value, make immediate communication device according to advancements tab or common label using different method management store tasks and store as a result, Realize the technical effect to store task and store result differentiated control;
It can be read by user's request management module and using adaptation layer and different messages bus or message system be installed The data packet of client exported, avoids the case where different clients is separately configured, and reduces and client Between the complexity that communicates;Expand the scope of application of immediate communication device.
Detailed description of the invention
Fig. 1 is the flow chart of instant communicating method embodiment one of the present invention;
Fig. 2 is the workflow in instant communicating method embodiment one of the present invention between immediate communication device and service system Cheng Tu;
Fig. 3 is the program module schematic diagram of immediate communication device embodiment two of the present invention;
Fig. 4 is the hardware structural diagram of computer equipment in computer system embodiment three of the present invention.
Appended drawing reference:
1, immediate communication device 2, client 3, mall server 4, store database
5, EDrop order server 6, order database 7, inventory server
8, inventory database 9, computer equipment 11, store results management module
12, order results management module 13, inventory's results management module
14, user's request management module 91, memory 92, processor
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, The present invention will be described in further detail.It should be appreciated that described herein, specific examples are only used to explain the present invention, It is not intended to limit the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative labor Every other embodiment obtained under the premise of dynamic, shall fall within the protection scope of the present invention.
A kind of instant communicating method, device, computer system and readable storage medium storing program for executing provided by the invention, suitable for being System O&M technical field, it is a kind of based on store results management module, order results management module, inventory's results management to provide The instant communicating method of module and user's request management module.
The present invention realizes the Two-phase commitment to the output of store result by order results management module, ensure that and orders Single server process store as a result, and order result is stored unobstructed to the whole flow process of order database, and then guarantee The reliability that order result updates;
The Two-phase commitment to the output of store result is realized by inventory's results management module, ensure that inventory service Device processing store as a result, and inventory's result is stored unobstructed to the whole flow process of inventory database, and then ensure that inventory As a result the reliability updated;
Advancements tab or common label are added in user's request using store results management module, and setting time limits Value, make immediate communication device according to advancements tab or common label using different method management store tasks and store as a result, Realize the technical effect to store task and store result differentiated control;
It can be read by user's request management module and using adaptation layer and different messages bus or message system be installed The data packet of client exported, avoids the case where different clients is separately configured, and reduces and client Between the complexity that communicates;Expand the scope of application of immediate communication device.
Embodiment one
Please refer to Fig. 1 and Fig. 2, a kind of instant communicating method of the present embodiment, using immediate communication device 1, including it is following Step:
S1: advancements tab or common label are added in user's request, and according to user's request store result;
S2: order result and order successful information are obtained according to store result;
S3: inventory's result and inventory's successful information are obtained according to store result and order successful information.
It preferably, further include S0, the step S0 includes: to receive the data packet that is exported by client 2, and from the number It is requested according to user is extracted in packet;The client 2 includes the first client, the second client and alternative client, the data Packet includes the first data packet, the second data packet and alternate data packet;
The step S0 includes:
S01: the first factory class, the storage of the second factory class and alternative factory class are stored in virtual key code, then by the void Quasi- key is stored in adaptation layer;
The key assignments of virtual key code includes first identifier, second identifier and alternative identification
S02: receiving the first data packet exported by the first client, and the first data packet has first identifier;Or receive by Second data packet of the second client output, the second data packet have second identifier;Or receive exported by alternative client it is standby Data packet is selected, alternate data packet has alternative identification;Or
S03: the first identifier of the first data packet is brought into the virtual key code of adaptation layer, obtains the first factory class;Or
The second identifier of second data packet is brought into the virtual key code of adaptation layer, the second factory class is obtained;Or it will be alternative The alternative identification of data packet is brought into the virtual key code of adaptation layer, and alternative factory class is obtained;
S04: load operating program, using first factory class or the second factory class, or alternative factory class instantiation The operation program makes the operation program that first data packet or the second data packet or alternate data packet can be read;
S05: the user in operation first data packet of Program extraction or the second data packet or alternate data packet is utilized Request.
Further, to be equipped with activemq, (ActiveMQ is that Apache produces to the first client, most popular, energy The powerful open source messaging bus of power) client 2;Meanwhile first factory class matched with activemq;
Second client is to be equipped with kafka (Kafka is that a kind of distributed post of high-throughput subscribes to message system) Client 2, meanwhile, the second factory class is matched with kafka;
Alternative client is customized client 2, user can according to demand in alternative client installation message system or Messaging bus;Meanwhile the message system or messaging bus installed in alternative factory class and alternative client match.
Specifically, the step S1 includes:
S11: it is requested to export store request signal to mall server 3 according to user, makes 3 basis of mall server The store request signal executes store task;
S12: the store pass signal or store failure signal exported by mall server 3 is received;Wherein, if store takes Business device executes store Mission Success, then generates store result and store pass signal, if mall server executes store task and loses It loses, then generates store failure signal;
S13: the mall server 3 is controlled according to store pass signal and exports the store result to store data Library 4, and update store database 4;Or
The mall server 3 is controlled according to store failure signal to adjust back, and terminates instant messaging;
S14: when receiving by the completion update store task of store database 4, the database pass signal or database of output Failure signal;
S15: the mall server 3 is accessed according to database pass signal, and obtains quotient from the mall server 3 City result;Or
Mall server 3 is controlled according to failed database signal to adjust back, and controls 4 rollback of store database, is terminated instant Communication.
Specifically, the step S2 includes:
S21: order request signal is exported to EDrop order server 5 according to the store result, makes the EDrop order server 5 According to order placement service signal update order database 6;
S22: if order database 6 is updated successfully, the order pass signal exported by the order database 6 is received; If order database 6 updates failure, the order failure signal exported by the order database 6 is received;
S23: exporting the store result to EDrop order server 5 according to the order pass signal, takes the order Business device 5 handles store result;Or
The mall server 3 is controlled according to the order failure signal and EDrop order server 5 is adjusted back, and described in control 4 rollback of order database 6 and store database restores the data in mall server 3 to the shape before execution store task State, and restore EDrop order server 5 to the state before update order database 6, terminate instant messaging;
S24: the EDrop order server 5 is received in successful execution store result and generates order as a result, by the order result After storage to order database 6, the order successful information of the output of order database 6;Or
Receiving can not the order failure information that is exported of successful execution store result by the EDrop order server 5.
Specifically, the step S3 includes:
S31: inventory's request signal is exported to inventory server 7 according to the store result and order successful information fruit, is made The inventory server 7 is according to inventory service signal update inventory database 8;
S32: if inventory database 8 is updated successfully, the inventory's pass signal exported by the inventory database 8 is received; If inventory database 8 updates failure, the inventory's failure signal exported by the inventory database 8 is received;
S33: exporting the store result to inventory server 7 according to inventory's pass signal, takes the inventory Business device 7 handles store result;Or
The mall server 3, EDrop order server 5 and inventory server 7 is controlled according to inventory's failure signal to return It adjusts, and controls 4 rollback of the inventory database 8, order database 6 and store database, make the data in mall server 3 State before recovery to execution store task, and restore inventory server 7 to the state before update inventory database 8, knot Beam instant messaging;
S34: the inventory server 7 is received in successful execution store result and generates inventory as a result, by inventory's result After storage to inventory database 8, inventory's successful information of the output of inventory database 8;Or
Receiving can not inventory's failure information for being exported of successful execution store result by the inventory server 7.
Further, when there is common label in user's request:
The step S12 further includes;Setting time limit value is successfully believed if not receiving store in the time limit value Number or store failure signal, then assert that mall server 3 executes and store mission failure and generate store failure signal;
The step S14 further include: setting time limit value, if not receiving database success in the time limit value Signal or failed database signal are then assert and update the store task to the operation failure in store database 4 and generation Failed database signal;
When there is advancements tab in user's request:
The step S12 further includes;Setting time limit value is successfully believed if not receiving store in the time limit value Number or store failure signal, then mall server 3 described in secondary control executes store task again, until receiving store and successfully believing Number or store failure signal;
The step S14 further include: setting time limit value, if not receiving database success in the time limit value Signal or failed database signal, then mall server 3 described in secondary control exports the store task to store database again 4, and store database 4 is made to update store task, until receiving database pass signal or failed database signal.
Further, when there is common label in user's request:
The step S22 further include: setting time limit value is successfully believed if not receiving order in the time limit value Number or order failure signal, then assert that order database 6 updates failure, and generate order failure signal;
The step S24 further include: setting time limit value is successfully believed if not receiving order in the time limit value Breath or order failure information, then assert that EDrop order server 5 can not handle store as a result, and generating order failure information;According to institute It states order failure information and controls the mall server 3 and the readjustment of EDrop order server 5, and control the order database 6 and quotient Database 4 rollback in city restores the data in mall server 3 to the state before execution store task, and makes EDrop order server 5 restore to the state before update order database 6, terminate instant messaging;
When there is advancements tab in user's request:
The step S22 further include: setting time limit value is successfully believed if not receiving order in the time limit value Number or order failure signal, then again EDrop order server 5 described in secondary control update order database 6, until receive order success Signal or order failure signal;
The step S24 further include: setting time limit value is successfully believed if not receiving order in the time limit value Breath or order failure information, then again export the store result to EDrop order server 5, handles the EDrop order server 5 Store is as a result, until receive order successful information or order failure information;
The mall server 3 is controlled according to the order failure information and EDrop order server 5 is adjusted back, and described in control 4 rollback of order database 6 and store database restores the data in mall server 3 to the shape before execution store task State, and restore EDrop order server 5 to the state before update order database 6, terminate instant messaging.
Further, when there is common label in user's request:
The step S32 further include: setting time limit value is successfully believed if not receiving inventory in the time limit value Number or inventory's failure signal, then assert that inventory database 8 updates failure, and generate inventory's failure signal;
The step S34 further include: setting time limit value is successfully believed if not receiving inventory in the time limit value Breath or inventory's failure information, then assert that inventory server 7 can not handle store as a result, and generating inventory's failure information;According to institute It states inventory's failure information and controls the mall server 3, EDrop order server 5 and the readjustment of inventory server 7, and control the library 4 rollback of deposit data library 8, order database 6 and store database makes the data in mall server 3 restore to execution store to appoint State before business restores the data in EDrop order server 5 to the state before update order database 6, and makes inventory service Device 7 restores to the state before update inventory database 8, terminates instant messaging;
When there is advancements tab in user's request:
The step S32 further include: setting time limit value is successfully believed if not receiving inventory in the time limit value Number or inventory's failure signal, then again inventory server 7 described in secondary control update inventory database 8, until receive inventory success Signal or inventory's failure signal;
The step S34 further include: setting time limit value is successfully believed if not receiving inventory in the time limit value Breath or inventory's failure information, then again export the store result to inventory server 7, handles the inventory server 7 Store is as a result, until receive inventory's successful information or inventory's failure information;
The mall server 3, EDrop order server 5 and inventory server 7 is controlled according to inventory's failure information to return It adjusts, and controls 4 rollback of the inventory database 8, order database 6 and store database, make the data in mall server 3 Restore to restore the data in EDrop order server 5 to the shape before update order database 6 State, and restore inventory server 7 to the state before update inventory database 8, terminate instant messaging.
Embodiment two
Referring to Fig. 3, a kind of immediate communication device 1 of the present embodiment, comprising:
Store results management module 11: for adding advancements tab or common label in user's request, and according to user Request store result;
Order results management module 12: order result and order successful information are obtained according to store result;
Inventory's results management module 13: inventory's result and inventory's success are obtained according to store result and order successful information Information.
Preferably, the immediate communication device 1 further include:
User's request management module 14: it is mentioned for receiving the data packet exported by client 2, and from the data packet Take family request.
The technical program is based on internet O&M, is realized by order results management module to the output of store result Two-phase commitment realizes the Two-phase commitment to the output of store result by inventory's results management module, realizes store and appoints Business and store result data transmission optimization, and then ensure that the reliability that order result and inventory's result update;It is tied using store Advancements tab or common label, and setting time limit value is added in fruit management module in user requests, and makes immediate communication device root According to advancements tab or common label using different method management store tasks and store as a result, realize to store task and The technical effect of store result differentiated control;Further optimize the data transmission of store result.
Embodiment three:
To achieve the above object, the present invention also provides a kind of computer system, which includes multiple computers Equipment 9, the component part of the immediate communication device 1 of embodiment two are dispersed in different computer equipments 9, and computer is set Standby 9 can be smart phone, tablet computer, laptop, desktop computer, rack-mount server, the blade for executing program Formula server, tower server or Cabinet-type server (including clothes composed by independent server or multiple servers Business device cluster) etc..The computer equipment 9 of the present embodiment includes, but is not limited to: that connection can be in communication with each other by system bus Memory 91, processor 92, as shown in Figure 4.It should be pointed out that Fig. 4 illustrates only the computer equipment with component- 9, it should be understood that it is not required for implementing all components shown, more or less groups of the implementation that can be substituted Part.
In the present embodiment, memory 91 (i.e. readable storage medium storing program for executing) includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM), static random-access memory (SRAM), read-only storage Device (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read only memory (PROM), magnetic storage, Disk, CD etc..In some embodiments, memory 91 can be the internal storage unit of computer equipment 9, such as the meter Calculate the hard disk or memory of machine equipment 9.In further embodiments, memory 91 is also possible to the external storage of computer equipment 9 The plug-in type hard disk being equipped in equipment, such as the computer equipment 9, intelligent memory card (Smart Media Card, SMC), Secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Certainly, memory 91 can also both include The internal storage unit of computer equipment 9 also includes its External memory equipment.In the present embodiment, memory 91 is commonly used in depositing Storage is installed on the operating system and types of applications software of computer equipment 9, for example, embodiment one immediate communication device 11 journey Sequence code etc..In addition, memory 91 can be also used for temporarily storing the Various types of data that has exported or will export.
Processor 92 can be in some embodiments central processing unit (Central Processing Unit, CPU), Controller, microcontroller, microprocessor or other data processing chips.The processor 92 is commonly used in control computer equipment 9 overall operation.In the present embodiment, program code or processing data of the processor 92 for being stored in run memory 91, Such as operation immediate communication device 11, to realize the instant communicating method of embodiment one.
Example IV:
To achieve the above object, the present invention also provides a kind of computer readable storage mediums comprising multiple storages are situated between Matter, such as flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory), random access storage device (RAM), Static random-access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), can Program read-only memory (PROM), magnetic storage, disk, CD, server, App are stored thereon with using store etc. Computer program, program realize corresponding function when being executed by processor 92.The computer readable storage medium of the present embodiment is used for Immediate communication device 1 is stored, the instant communicating method of embodiment one is realized when being executed by processor 92.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but many situations It is lower the former be more preferably embodiment.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content, it is relevant to be applied directly or indirectly in other Technical field is included within the scope of the present invention.

Claims (10)

1. a kind of instant communicating method, which comprises the following steps:
S1: advancements tab or common label are added in user's request, and according to user's request store result;
S2: order result and order successful information are obtained according to store result;
S3: inventory's result and inventory's successful information are obtained according to store result and order successful information.
2. instant communicating method according to claim 1, which is characterized in that further include S0, the step S0 includes: to receive The data packet exported by client, and user's request is extracted from the data packet;
The step S1 includes:
S11: it is requested to export store request signal to mall server according to user;
S12: the store pass signal or store failure signal exported by mall server is received;
S13: store database is updated according to store pass signal;Or
The mall server readjustment is controlled according to store failure signal, and terminates instant messaging;
S14: database pass signal or failed database signal are received;
S15: store result is obtained according to database pass signal;Or
Mall server readjustment is controlled according to failed database signal, and controls store rollback database, terminates instant messaging.
3. instant communicating method according to claim 1, which is characterized in that the step S2 includes:
S21: order request signal is exported according to the store result, to update order database;
S22: if order database is updated successfully, order pass signal is received;If order database updates failure, reception is ordered Single failure signal;
S23: the store result is exported to EDrop order server according to the order pass signal, is made at the EDrop order server Manage store result;Or
The mall server and EDrop order server readjustment are controlled according to the order failure signal, and controls the order data Library and store rollback database terminate instant messaging;
S24: the order successful information of the order database output is received;Or
Receive the order failure information of the EDrop order server output.
4. instant communicating method according to claim 1, which is characterized in that the step S3 includes:
S31: inventory's request signal is exported to inventory server according to the store result and order successful information, makes the inventory Server is according to inventory service signal update inventory database;
S32: if inventory database is updated successfully, the inventory's pass signal exported by the inventory server is received;If inventory Database update failure, then receive the inventory's failure signal exported by the inventory server;
S33: the store result is exported to inventory server according to inventory's pass signal, is made at the inventory server Manage store result;Or
The mall server, EDrop order server and inventory server readjustment are controlled according to inventory's failure signal, and is controlled The inventory database, order database and store rollback database terminate instant messaging;
S34: inventory's successful information of the inventory database output is received;Or
Receive inventory's failure information of the inventory server output.
5. instant communicating method according to claim 2, which is characterized in that
When there is common label in user's request:
The step S12 further includes;Setting time limit value, if not receiving store pass signal or quotient in the time limit value City failure signal then assert that mall server executes store mission failure and generates store failure signal;
The step S14 further include: setting time limit value, if do not received in the time limit value database pass signal or Failed database signal is then assert and updates the store task to the operation failure in the database of store and generate database mistake Lose signal;
When there is advancements tab in user's request:
The step S12 further includes;Setting time limit value, if not receiving store pass signal or quotient in the time limit value City failure signal, then mall server described in secondary control executes store task again, until receiving store pass signal or store Failure signal;
The step S14 further include: setting time limit value, if do not received in the time limit value database pass signal or Failed database signal, then mall server described in secondary control exports the store task to store database again, and makes quotient City database update store task, until receiving database pass signal or failed database signal.
6. instant communicating method according to claim 3, which is characterized in that
When there is common label in user's request:
The step S22 further include: setting time limit value, if not receiving order pass signal in the time limit value or ordering Single failure signal then assert that order database updates failure, and generates order failure signal;
The step S24 further include: setting time limit value, if not receiving order successful information in the time limit value or ordering Single failure information then assert that EDrop order server can not handle store as a result, and generating order failure information;It is lost according to the order It loses information and controls the mall server and EDrop order server readjustment, and control the order database and store database time Rolling terminates instant messaging;
When there is advancements tab in user's request:
The step S22 further include: setting time limit value, if not receiving order pass signal in the time limit value or ordering Single failure signal, then EDrop order server described in secondary control updates order database again, until receiving order pass signal or ordering Single failure signal;
The step S24 further include: setting time limit value, if not receiving order successful information in the time limit value or ordering Single failure information then again exports the store result to EDrop order server, make EDrop order server processing store as a result, Until receiving order successful information or order failure information;According to the order failure information control the mall server and EDrop order server readjustment, and the order database and store rollback database are controlled, terminate instant messaging.
7. instant communicating method according to claim 4, which is characterized in that
When there is common label in user's request:
The step S32 further include: setting time limit value, if not receiving inventory's pass signal or library in the time limit value Failure signal is deposited, then assert that inventory database updates failure, and generate inventory's failure signal;
The step S34 further include: setting time limit value, if not receiving inventory's successful information or library in the time limit value Failure information is deposited, then assert that inventory server can not handle store as a result, and generating inventory's failure information;It is lost according to the inventory It loses information and controls the mall server, EDrop order server and inventory server readjustment, and control the inventory database, order Database and store rollback database terminate instant messaging;
When there is advancements tab in user's request:
The step S32 further include: setting time limit value, if not receiving inventory's pass signal or library in the time limit value Failure signal is deposited, then inventory server described in secondary control updates inventory database again, until receiving inventory's pass signal or library Deposit failure signal;
The step S34 further include: setting time limit value, if not receiving inventory's successful information or library in the time limit value Deposit failure information, then again export the store result to inventory server, make inventory server processing store as a result, Until receiving inventory's successful information or inventory's failure information;According to inventory's failure information control the mall server, EDrop order server and inventory server readjustment, and the inventory database, order database and store rollback database are controlled, it ties Beam instant messaging.
8. a kind of immediate communication device characterized by comprising
Store results management module: it is obtained for adding advancements tab or common label in user's request, and according to user's request Take store result;
Order results management module: order result and order successful information are obtained according to store result;
Inventory's results management module: inventory's result and inventory's successful information are obtained according to store result and order successful information.
9. a kind of computer system comprising multiple computer equipments, each computer equipment include memory processor and deposit Store up the computer program that can be run on a memory and on a processor, which is characterized in that the place of the multiple computer equipment Reason device realizes the step of any one of claim 1 to 7 instant communicating method jointly when executing the computer program.
10. a kind of computer readable storage medium comprising multiple storage mediums are stored with computer journey on each storage medium Sequence, which is characterized in that the computer program of the multiple storage medium storage realizes right when being executed by processor jointly It is required that the step of any one of 1 to 7 instant communicating method.
CN201811535126.3A 2018-12-14 2018-12-14 A kind of instant communicating method, device, computer system and readable storage medium storing program for executing Pending CN109948994A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811535126.3A CN109948994A (en) 2018-12-14 2018-12-14 A kind of instant communicating method, device, computer system and readable storage medium storing program for executing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811535126.3A CN109948994A (en) 2018-12-14 2018-12-14 A kind of instant communicating method, device, computer system and readable storage medium storing program for executing

Publications (1)

Publication Number Publication Date
CN109948994A true CN109948994A (en) 2019-06-28

Family

ID=67006018

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811535126.3A Pending CN109948994A (en) 2018-12-14 2018-12-14 A kind of instant communicating method, device, computer system and readable storage medium storing program for executing

Country Status (1)

Country Link
CN (1) CN109948994A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111553776A (en) * 2020-04-26 2020-08-18 成都新致云服信息技术有限公司 Data processing method and device and electronic equipment
CN112686625A (en) * 2020-12-25 2021-04-20 哈尔滨宇龙自动化有限公司 MOM system event processing method

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473318A (en) * 2013-09-12 2013-12-25 中国科学院软件研究所 Distributed transaction security method for memory data grid
CN105447000A (en) * 2014-07-31 2016-03-30 阿里巴巴集团控股有限公司 Transactional message transmission method and device
CN106325978A (en) * 2015-06-19 2017-01-11 阿里巴巴集团控股有限公司 Distributed transaction processing method and apparatus
CN107045454A (en) * 2016-02-06 2017-08-15 华为技术有限公司 Striding course distributed transaction control method and related system
CN107766080A (en) * 2016-08-23 2018-03-06 阿里巴巴集团控股有限公司 transaction message processing method, device, equipment and system
CN108153598A (en) * 2017-12-25 2018-06-12 东软集团股份有限公司 Data consistency method and device based on micro services framework
CN108845867A (en) * 2018-07-16 2018-11-20 郑州云海信息技术有限公司 A kind of distributed transaction management method, apparatus, system and storage medium
CN108874947A (en) * 2018-06-05 2018-11-23 亚信科技(中国)有限公司 A kind of data processing system and data processing method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473318A (en) * 2013-09-12 2013-12-25 中国科学院软件研究所 Distributed transaction security method for memory data grid
CN105447000A (en) * 2014-07-31 2016-03-30 阿里巴巴集团控股有限公司 Transactional message transmission method and device
CN106325978A (en) * 2015-06-19 2017-01-11 阿里巴巴集团控股有限公司 Distributed transaction processing method and apparatus
CN107045454A (en) * 2016-02-06 2017-08-15 华为技术有限公司 Striding course distributed transaction control method and related system
CN107766080A (en) * 2016-08-23 2018-03-06 阿里巴巴集团控股有限公司 transaction message processing method, device, equipment and system
CN108153598A (en) * 2017-12-25 2018-06-12 东软集团股份有限公司 Data consistency method and device based on micro services framework
CN108874947A (en) * 2018-06-05 2018-11-23 亚信科技(中国)有限公司 A kind of data processing system and data processing method
CN108845867A (en) * 2018-07-16 2018-11-20 郑州云海信息技术有限公司 A kind of distributed transaction management method, apparatus, system and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘雅琴, 夏玉杰: "分布式事务的两阶段提交在电信资源管理系统中的实现", 河南科技大学学报(自然科学版), no. 02 *
张文, 罗晓沛: "基于商业连锁经营的会员管理系统", 吉林大学学报(信息科学版), no. 05 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111553776A (en) * 2020-04-26 2020-08-18 成都新致云服信息技术有限公司 Data processing method and device and electronic equipment
CN111553776B (en) * 2020-04-26 2023-08-08 成都新致云服信息技术有限公司 Data processing method and device and electronic equipment
CN112686625A (en) * 2020-12-25 2021-04-20 哈尔滨宇龙自动化有限公司 MOM system event processing method
CN112686625B (en) * 2020-12-25 2024-02-06 哈尔滨宇龙自动化有限公司 MOM system event processing method

Similar Documents

Publication Publication Date Title
EP3622687B1 (en) Enclave pool management
US11728992B2 (en) Cryptlet binding key graph
US11875171B2 (en) Blockchain network transaction processing method, apparatus, device, and storage medium
US11176246B2 (en) Enclave pool shared key
CN111091429A (en) Electronic bill identification distribution method and device and electronic bill generation system
US10664591B2 (en) Enclave pools
WO2021088641A1 (en) Data transmission method, data processing method, data reception method and device, and storage medium
CN108462760A (en) Electronic device, cluster access domain name automatic generation method and storage medium
CN104065636A (en) Data processing method and system
CN110611707B (en) Task scheduling method and device
WO2016118429A1 (en) System for efficient processing of transaction requests related to an account in a database
CN112698838B (en) Multi-cloud container deployment system and container deployment method thereof
WO2021139778A1 (en) System scheduling workflow generation method, system, apparatus, and computer readable storage medium
CN113076304A (en) Distributed version management method, device and system
CN110162344A (en) A kind of method, apparatus, computer equipment and readable storage medium storing program for executing that current limliting is isolated
CN109714430A (en) Distributed caching method, device, computer system and storage medium
CN109948994A (en) A kind of instant communicating method, device, computer system and readable storage medium storing program for executing
US20070260606A1 (en) System and method for using a network file system mount from a remote management card
CN114610504A (en) Message processing method and device, electronic equipment and storage medium
CN115098528B (en) Service processing method, device, electronic equipment and computer readable storage medium
CN111679892A (en) Distributed transaction processing method, device, equipment and medium
US11637737B2 (en) Network data management framework
CN113420050B (en) Data query management method, device, computer equipment and readable storage medium
CN112231415B (en) Data synchronization method and system of block chain network, electronic device and readable medium
CN112671923B (en) Unified interface service communication scheduling method and device

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