CN107368502A - Information synchronization method and device - Google Patents

Information synchronization method and device Download PDF

Info

Publication number
CN107368502A
CN107368502A CN201610319890.1A CN201610319890A CN107368502A CN 107368502 A CN107368502 A CN 107368502A CN 201610319890 A CN201610319890 A CN 201610319890A CN 107368502 A CN107368502 A CN 107368502A
Authority
CN
China
Prior art keywords
information
article
prompt message
change
change prompt
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
CN201610319890.1A
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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information 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 Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201610319890.1A priority Critical patent/CN107368502A/en
Publication of CN107368502A publication Critical patent/CN107368502A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2453Query optimisation
    • G06F16/24534Query rewriting; Transformation
    • G06F16/24539Query rewriting; Transformation using cached or materialised query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2358Change logging, detection, and notification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2365Ensuring data consistency and integrity

Abstract

This application discloses information synchronization method and device.One embodiment of methods described includes:Information change prompt message in supervisory messages queue;Information change prompt message is extracted from the message queue;Change from described information in prompt message and parse article identification information and temporal information;Send the Item Information inquiry request of the corresponding article identification information;The article fresh information of the corresponding Item Information inquiry request is received, modification is synchronized to Item Information according to the article fresh information.The embodiment is after information change prompt message is detected, article identification information and temporal information are parsed from information change prompt message, and send the Item Information inquiry request of homologue product identification information, modification is synchronized to Item Information according to the article fresh information of corresponding article information inquiring request, article fresh information can be got in time, avoid synchronizing information mistake.

Description

Information synchronization method and device
Technical field
The application is related to technical field of information processing, and in particular to synchronizing information processing technology field, More particularly to information synchronization method and device.
Background technology
Shopping at network enables to consumer is home-confined can just inquire about and buy the business of needs Product, become the important way currently done shopping.Consumer logs in shopping website, inquires about needs Commodity, these commodity can form sequence information, confirm that backward shopping website is submitted through consumer. After shopping website receives sequence information, stored according to the merchandise news in sequence information to commodity Area's picking, then passs consumer soon.
On shopping website, the price of commodity is not fixed, and the price of commodity can be certain Time adjusts, for example, when the commodity for having type identical new occur, it is necessary to adjust in time The relevant information (such as pricing information, delivery availability information) of integral quotient product.Shopping website is in order to ensure The safety and stability of merchandise news, multiple information systems are generally set, when merchandise news is at one When being changed on system, the system can generate the message for the merchandise news that a correspondence changes To other systems.Generally, the amended content of information can be included in message (for example, by commodity Originally Guangdong is changed to by Beijing with sending), other systems are originally according to the message modification received Information corresponding on system.
When synchronous, the system that information changes sends message (for information between information system Message) after, other information system is possible to not receive or disappeared without synchronous this in time Breath.Now, the information management system of shopping website can first preserve this message, when appropriate Between this message is sent to other information system again.What if now information changed is Same information on system is again there occurs change (for example, in a short time, believe the price of commodity Breath has been done to be adjusted twice), the system that information changes can send one again and be directed to same information Message (second of message), if other systems have received this message (second of message), Other information system will be according to corresponding information in this message modification the system, now information Synchronous success.But information management system can again send and send failure (for the first time Message), if message is sent successfully, second of message modification can be first by other systems Secondary message, this has resulted in synchronizing information mistake.
The content of the invention
This application provides information synchronization method and device, to solve the skill mentioned in background technology Art problem.
In a first aspect, this application provides a kind of information synchronization method, methods described includes:Prison The information change prompt message surveyed in message queue, the message queue are used to deposit described information Change prompt message, described information change prompt message is used to synchronize Item Information, wrapped Containing temporal information corresponding to article identification information corresponding to information change and information change;From described Information change prompt message is extracted in message queue;Change from described information in prompt message and parse Go out article identification information and temporal information;Send the Item Information of the corresponding article identification information Inquiry request;The article fresh information of the corresponding Item Information inquiry request is received, according to institute State article fresh information and modification is synchronized to Item Information.
In certain embodiments, in the article for receiving the corresponding Item Information inquiry request Also include after the step of fresh information:The article fresh information is preserved to local cache number According to.
In certain embodiments, methods described also includes:Receive article interrogation information, the thing Product Query Information includes the identification information for being queried article;Searched from the local cache data The article fresh information of the identification information of article is queried described in corresponding;The article is updated and believed Breath is sent to the issuing side of the article interrogation information.
In certain embodiments, methods described also includes:If can not be from the local cache data In find it is corresponding described in be queried article identification information article fresh information, then send thing Product information inquiring request, and by the article of the correspondence received the Item Information inquiry request more Fresh information is sent to the issuing side of the article interrogation information.
Second aspect, this application provides a kind of information synchronization method, methods described includes:Connect Information change prompt message is received, described information change prompt message is used to carry out together Item Information Step, includes temporal information corresponding to article identification information corresponding to information change and information change; Described information change prompt message is put into and disappeared by the time that sends of described information change prompt message Cease queue.
In certain embodiments, methods described also includes:It is a plurality of when existing in the message queue During information change prompt message comprising same article identification information, each information change is inquired about The temporal information of prompt message, retain the temporal information pair minimum with the time interval of current time The information change prompt message answered, and delete remaining information for including same article identification information Change prompt message.
In certain embodiments, methods described also includes:Delete and carried from the message queue The information change prompt message taken.
The third aspect, this application provides a kind of synchronizing information device, described device includes:Letter Breath change prompt message monitoring unit, for the information change prompt message in supervisory messages queue, The message queue is used to deposit described information change prompt message, described information change prompting letter Cease for being synchronized to Item Information, include article identification information corresponding to information change and letter Temporal information corresponding to breath change;Information change prompt message extraction unit, for disappearing from described Cease and information change prompt message is extracted in queue;Information change prompt message resolution unit, is used for Change from described information in prompt message and parse article identification information and temporal information;Article is believed Inquiry request transmitting element is ceased, the Item Information for sending the corresponding article identification information is looked into Ask request;Information synchronizing unit, for receiving the article of the corresponding Item Information inquiry request Fresh information, modification is synchronized to Item Information according to the article fresh information.
In certain embodiments, described device also includes:Article fresh information unloading unit, use Preserved in by the article fresh information to local cache data.
In certain embodiments, described device also includes:Article interrogation information receiving unit, use In receiving article interrogation information, the article interrogation information includes being queried the identification information of article; First information query unit, for being queried described in the lookup correspondingly from the local cache data The article fresh information of the identification information of article;Article interrogation information transmitting unit, for by institute State the issuing side that article fresh information is sent to the article interrogation information.
In certain embodiments, described device also includes:Second information query unit, for Can not be found from the local cache data it is corresponding described in be queried the identification information of article During article fresh information, Item Information inquiry request is sent, and by the correspondence received the thing The article fresh information of product information inquiring request is sent to the issuing side of the article interrogation information.
Fourth aspect, this application provides a kind of synchronizing information device, described device includes:Letter Breath change prompt message receiving unit, change prompt message for receive information, described information becomes Change prompt message to be used to synchronize Item Information, include article mark corresponding to information change Temporal information corresponding to information and information change;Information change prompt message sequencing unit, is used for Described information change prompt message is put into and disappeared by the time that sends of described information change prompt message Cease queue.
In certain embodiments, described device also includes:Information change prompt message screening unit, Carried for a plurality of information change comprising same article identification information in the message queue be present When showing information, the temporal information of each information change prompt message is inquired about, when retaining and be current Between the minimum temporal information of time interval corresponding to information change prompt message, and delete remaining The information change prompt message for including same article identification information.
In certain embodiments, described device also includes:Information change prompt message deletes unit, For deleting the information change prompt message being extracted from the message queue.
5th aspect, this application provides a kind of information synchronization system, the system includes above-mentioned The synchronizing information device of the third aspect and the synchronizing information device of fourth aspect.
The information synchronization method and device that the application provides, are detecting information change prompt message Afterwards, article identification information and temporal information are parsed from information change prompt message, and is sent The Item Information inquiry request of corresponding article identification information, according to corresponding article information inquiring request Article fresh information modification is synchronized to Item Information, can get in time article renewal Information, avoid synchronizing information mistake.
Brief description of the drawings
Retouched by reading with reference to the detailed of being made to non-limiting example of being made of the following drawings State, other features, objects and advantages will become more apparent upon:
Fig. 1 is the flow chart according to one embodiment of the information synchronization method of the application;
Fig. 2 is the flow chart according to another embodiment of the information synchronization method of the application;
Fig. 3 is a flow chart according to the application scenarios of the information synchronization method of the application;
Fig. 4 is the structural representation according to one embodiment of the synchronizing information device of the application;
Fig. 5 is the structural representation according to another embodiment of the synchronizing information device of the application Figure;
Fig. 6 is the structural representation according to one embodiment of the synchronizing information device of the application.
Embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is appreciated that , specific embodiment described herein is used only for explaining related invention, rather than to the hair Bright restriction.It also should be noted that for the ease of description, illustrate only in accompanying drawing with About the related part of invention.
It should be noted that in the case where not conflicting, embodiment and embodiment in the application In feature can be mutually combined.Describe this in detail below with reference to the accompanying drawings and in conjunction with the embodiments Application.
Fig. 1 shows the flow chart 100 of one embodiment of information synchronization method, and the information is same One step process comprises the following steps:
Step 101, the information change prompt message in supervisory messages queue.
Message queue is used to deposit information change prompt message (equivalent to disappearing in background technology Breath), if message queue for sky, illustrate that information need not be synchronized, otherwise, it is necessary to Information is synchronized.What the system that information change prompt message is changed by information was sent, Information change prompt message is used to synchronize Item Information, includes thing corresponding to information change Temporal information corresponding to product identification information and information change.It should be noted that the present embodiment Although information change prompt message is used to synchronize Item Information, information change prompting letter Breath is only intended to prompt, and not comprising the Item Information for needing synchronization.For example, information change carries Show that information is:X divides the X seconds when article A, the information change time X X X month, X day.
Step 102, information change prompt message is extracted from the message queue.
Other systems can whether there is information change prompt message in supervisory messages queue, if do not had Have, then continue to monitor, if monitoring that existence information changes prompt message in message queue, Information change prompt message is extracted from message queue.
Step 103, from described information change prompt message in parse article identification information and when Between information.
Information change prompt message contain article identification information corresponding to the information to change and Temporal information.Article identification information, which is used for determination, needs information to be modified, and temporal information is used for Characterization information change prompt message sends the time, can thus judge information change prompt message Validity, avoid and replaced present in prior art by information change prompt message before The problem of information change prompt message renewed.
Step 104, the Item Information inquiry request of the corresponding article identification information is sent.
From the description in background technology, the method for existing synchronizing information is straight in message Connect the delta data for including information.And where the information change prompt message of the application is served only for prompting A little information are changed, the change when occurred, not the tool comprising information change Body value.The application method is prompted after information change prompt message is received according to information change The article identification information that packet contains sends Item Information inquiry to the system that information changes please To ask, Item Information inquiry request is used for the current information for inquiring about the article of corresponding article identification information, This ensures that getting the up-to-date information of article, the synchronous letter occurred in background technology is avoided Cease the situation of mistake.
Step 105, the article fresh information of the corresponding Item Information inquiry request, root are received Modification is synchronized to Item Information according to the article fresh information.
After Item Information inquiry request to be sent to the system that information changes, information becomes The system of change can return to corresponding article fresh information, and it is newest that article fresh information contains article Data, modification is synchronized to the Item Information on current system by article fresh information, It ensure that synchronous correctness.
In some optional implementations of the present embodiment, the corresponding article is received described Also include after the step of article fresh information of information inquiring request:The article is updated and believed Breath is preserved to local cache data.
System is during synchronous Item Information, it is possible to which running into can not timely synchronizing information Situation, therefore, article fresh information can be preserved to local cache data, prevent data from losing Lose, then Item Information is synchronized again.
In some optional implementations of the present embodiment, the present embodiment methods described can be with Comprise the following steps:
The first step, receive article interrogation information.
Article may be sent with the other-end that current system is connected by wired or wireless mode Query Information, for understanding article or purchase article.The article interrogation information includes being queried The identification information of article, it is queried the identification information of article.
Second step, the mark that article is queried described in corresponding to is searched from the local cache data The article fresh information of information.
Seen from the above description, can be by article fresh information after article fresh information is got Be saved in local cache data, the data volume of local cache data than preserved in system other The data volume of data is small, and the reading speed of local cache data is faster.Therefore, Ke Yicong The article fresh information of the corresponding identification information for being queried article is searched in local cache data.
3rd step, the article fresh information is sent to the issuing side of the article interrogation information.
After getting article fresh information, by wired or wireless mode, article is updated and believed Breath is sent to the terminal or equipment of inquiry Item Information.
In some optional implementations of the present embodiment, the present embodiment methods described can be with Including:If the mark that article is queried described in corresponding to can not be found from the local cache data Know the article fresh information of information, then send Item Information inquiry request, and pair that will be received The article fresh information of the Item Information inquiry request is answered to be sent to the article interrogation information Issuing side.
Some data in local cache data can place for a long time, and some data are put into local After data cached, it can be automatically deleted after the regular hour, also a kind of situation, is exactly system Information change prompt message is inquired, sends Item Information to the system that information changes Inquiry request, and also it is not received by article fresh information.At this point it is possible to directly to information The system to change sends Item Information inquiry request, according to the correspondence received the article The article fresh information of information inquiring request is sent to the issuing side of the article interrogation information.
Fig. 2 shows the flow chart 200 of one embodiment of information synchronization method, and the information is same One step process comprises the following steps:
Step 201, receive information change prompt message.
The system that information changes can send message to other systems, in order to ensure having for information Sequence is transmitted, and information management system needs receive information to change prompt message, for other systems Obtain.Wherein, described information change prompt message is used to synchronize Item Information, comprising Temporal information corresponding to article identification information corresponding to information change and information change.
Step 202, the time that sends for changing prompt message by described information changes described information Prompt message is put into message queue.
Information change prompt message includes temporal information corresponding to information change, generally, according to connecing Information change prompt message is put into message team by the sequencing of the information change prompt message received Row;Meanwhile information change is carried by the sequencing for sending the time of information change prompt message Show information be put into message queue can also meet some information between needs according to certain sequencing The requirement synchronized.
In some optional implementations of the present embodiment, the present embodiment methods described can be with Including:When a plurality of information change for including same article identification information in the message queue being present During prompt message, the temporal information of each information change prompt message is inquired about, is retained and current Information change prompt message corresponding to the minimum temporal information of the time interval of time, and delete it The remaining information change prompt message for including same article identification information.
After a certain information change prompt message is put into message queue, do not carried by other systems also Take, when being connected to others again has the information change prompt message of unified article identification information, be The multiple simultaneously operating of other systems is avoided, also for the possibility that avoids the occurrence of timing error, Can be by information change prompt message recently received in a plurality of same article identification information (i.e. Information change prompt message corresponding with the temporal information that the time interval of current time is minimum) make Message queue is stored in for effective information change prompt message, others are directed to same article mark The information change prompt message for knowing information is deleted as invalid information.
In some optional implementations of the present embodiment, the present embodiment methods described can be with Including:The information change prompt message being extracted is deleted from the message queue.
If information change prompt message was extracted by other systems, in order to avoid due to Repeat synchronously, will can be carried caused by the reasons such as network delay or system time are inconsistent The information change prompt message taken is deleted from message queue, while also improves message queue In data storage validity.
The method that above-described embodiment of the application provides has message change in message queue is monitored After prompt message, change from message in prompt message and extract article identification information, and transmission pair The Item Information inquiry request of article identification information is answered, according to the article fresh information fed back Synchronous Item Information, the synchronous correctness of Item Information can be ensured, avoid timing error.
With continued reference to Fig. 3, Fig. 3 is the application scenarios according to the information synchronization method of the present embodiment Flow chart.Fig. 3 includes merchandise system, price system and message system.Wherein, commodity system The system that system changes as information, price system disappear as the system for needing synchronizing information Breath system preserves information change prompt message as information management system.When a certain in merchandise system Item Information changes, then merchandise system automatically generate one comprising article identification information and when Between information information change prompt message, and information change prompt message is sent to message system; Temporally information change prompt message is put into message queue message system by information in order, etc. Treat the extraction of price system;Information change prompt message in the message queue of message system is carried After taking, message system deletes the information change prompt message being extracted from message queue.Valency When case system monitors existence information change prompt message in the message queue of message system, it will believe Breath change prompt message extracts the local cache data for being put into price system, then changes again The information of corresponding informance change prompt message in price system.Looked into when price system receives outside When asking request, first look for whether having article fresh information (corresponding diagram 3 in local cache data In pricing information), if so, then return to external inquiry request issuing side;Otherwise, to Merchandise system sends Item Information inquiry request, the article fresh information got is sent to outer The issuing side of portion's inquiry request.
With further reference to Fig. 4, as the realization to method shown in above-mentioned each figure, the application provides A kind of one embodiment of synchronizing information device, the device embodiment and the method shown in Fig. 1 Embodiment is corresponding.
As shown in figure 4, the synchronizing information device 400 described in the present embodiment includes:Information change Prompt message monitoring unit 401, information change prompt message extraction unit 402, information change carry Show information resolution unit 403, Item Information inquiry request transmitting element 404 and synchronizing information list Member 405.Wherein, information change prompt message monitoring unit 401, in supervisory messages queue Information change prompt message, the message queue be used for deposit described information change prompt message, Described information change prompt message is used to synchronize Item Information, corresponding comprising information change Article identification information and information change corresponding to temporal information;Information change prompt message is extracted Unit 402, for extracting information change prompt message from the message queue;Information change Prompt message resolution unit 403, article is parsed for changing from described information in prompt message Identification information and temporal information;Item Information inquiry request transmitting element 404, for transmission pair Answer the Item Information inquiry request of the article identification information;Information synchronizing unit 405, is used for The article fresh information of the corresponding Item Information inquiry request is received, is updated according to the article Information synchronizes modification to Item Information.
In some optional implementations of the present embodiment, the synchronizing information device of the present embodiment 400 can also include:Article fresh information unloading unit (not shown), for by described in Article fresh information is preserved to local cache data.
In some optional implementations of the present embodiment, the synchronizing information device of the present embodiment 400 can also include:Article interrogation information receiving unit (not shown), the first information are looked into Ask unit (not shown) and article interrogation information transmitting unit (not shown).Wherein, Article interrogation information receiving unit is used to receive article interrogation information, the article interrogation packet Include the identification information for being queried article;First information query unit is used for from the local cache number According to the article fresh information for the identification information that article is queried described in middle lookup correspondingly;Article interrogation Information transmitting unit is used for the hair that the article fresh information is sent to the article interrogation information Go out end.
In some optional implementations of the present embodiment, the synchronizing information device of the present embodiment 400 can also include:Second information query unit (not shown), for can not be from institute State the article renewal that the identification information that article is queried described in correspondence is found in local cache data During information, Item Information inquiry request is sent, and the correspondence received the Item Information is looked into The article fresh information for asking request is sent to the issuing side of the article interrogation information.
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, the application provides A kind of one embodiment of synchronizing information device, the device embodiment and the method shown in Fig. 2 Embodiment is corresponding.
As shown in figure 5, the synchronizing information device 500 described in the present embodiment includes:Information change Prompt message receiving unit 501 and information change prompt message sequencing unit 502.Wherein, believe Breath change prompt message receiving unit 501 is used for receive information change prompt message, described information Change prompt message is used to synchronize Item Information, includes article mark corresponding to information change Know temporal information corresponding to information and information change;Information change prompt message sequencing unit 502 The time that sends for changing prompt message by described information puts described information change prompt message Enter message queue.
In some optional implementations of the present embodiment, the present embodiment synchronizing information device 500 can also include:Information change prompt message screening unit (not shown), for The a plurality of information change prompt message for including same article identification information in the message queue be present When, inquire about each information change prompt message temporal information, retain with current time when Between be spaced the temporal information of minimum corresponding to information change prompt message, and delete remaining and include The information change prompt message of same article identification information.
In some optional implementations of the present embodiment, the present embodiment synchronizing information device 500 can also include:Information change prompt message delete unit (not shown), for from The information change prompt message being extracted is deleted in the message queue.
The present embodiment additionally provides a kind of information synchronization system, and the system includes above-mentioned Fig. 4 pairs Synchronizing information device corresponding to the synchronizing information device and Fig. 5 answered.
Below with reference to Fig. 6, it illustrates suitable for for realizing the synchronizing information of the embodiment of the present application The structural representation of the computer system 600 of device.
As shown in fig. 6, computer system 600 includes CPU (CPU) 601, its Can according to the program being stored in read-only storage (ROM) 602 or from storage part 608 The program that is loaded into random access storage device (RAM) 603 and perform various appropriate actions And processing.In RAM603, also it is stored with system 600 and operates required various program sums According to.CPU601, ROM602 and RAM603 are connected with each other by bus 604.Input/ Output (I/O) interface 605 is also connected to bus 604.
I/O interfaces 605 are connected to lower component:Importation 606 including keyboard, mouse etc.; Including cathode-ray tube (CRT), liquid crystal display (LCD) etc. and loudspeaker etc. Output par, c 607;Storage part 608 including hard disk etc.;And including such as LAN card, The communications portion 609 of the NIC of modem etc..Communications portion 609 is via such as The network of internet performs communication process.Driver 610 is also according to needing to be connected to I/O interfaces 605.Detachable media 611, such as disk, CD, magneto-optic disk, semiconductor memory etc., Be arranged on as needed on driver 610, in order to the computer program that reads from it according to Need to be mounted into storage part 608.
Especially, in accordance with an embodiment of the present disclosure, can be with above with reference to the process of flow chart description It is implemented as computer software programs.For example, embodiment of the disclosure includes a kind of computer journey Sequence product, it includes being tangibly embodied in the computer program on machine readable media, above-mentioned meter Calculation machine program bag contains the program code for being used for the method shown in execution flow chart.In such implementation In example, the computer program can be downloaded and installed by communications portion 609 from network, And/or it is mounted from detachable media 611.
Flow chart and block diagram in accompanying drawing, it is illustrated that according to the system of the various embodiments of the application, Architectural framework in the cards, function and the operation of method and computer program product.This point On, each square frame in flow chart or block diagram can represent a module, program segment or code A part, a part for above-mentioned module, program segment or code is used for comprising one or more The executable instruction of logic function as defined in realization.It should also be noted that at some as replacement In realization, the function of being marked in square frame can also be with different from the order marked in accompanying drawing hair It is raw.For example, two square frames succeedingly represented can essentially perform substantially in parallel, they Sometimes can also perform in the opposite order, this is depending on involved function.It is also noted that It is, each square frame and block diagram in block diagram and/or flow chart and/or the square frame in flow chart Combination, function or the special hardware based system of operation it can be realized as defined in execution, Or it can be realized with the combination of specialized hardware and computer instruction.
Being described in unit involved in the embodiment of the present application can be real by way of software It is existing, it can also be realized by way of hardware.Described unit can also be arranged on processing In device, for example, can be described as:It is single that a kind of processor includes the monitoring of information change prompt message Member, information change prompt message extraction unit, information change prompt message resolution unit, article Information inquiring request transmitting element and information synchronizing unit.Wherein, the title of these units is at certain The restriction to the unit in itself is not formed in the case of kind.For example, information synchronizing unit can be with It is described as " unit for being used for synchronizing information ".
As on the other hand, present invention also provides a kind of nonvolatile computer storage media, The nonvolatile computer storage media can be in above-described embodiment included in said apparatus Nonvolatile computer storage media;Can also be individualism, without non-in supplying terminal Volatile computer storage medium.Above-mentioned nonvolatile computer storage media be stored with one or The multiple programs of person, when said one or multiple programs are performed by an equipment so that above-mentioned Equipment:Information change prompt message in supervisory messages queue, the message queue are used to deposit Described information changes prompt message, and described information change prompt message is used to carry out Item Information It is synchronous, include temporal information corresponding to article identification information corresponding to information change and information change; Information change prompt message is extracted from the message queue;Change prompt message from described information In parse article identification information and temporal information;Send the thing of the corresponding article identification information Product information inquiring request;The article fresh information of the corresponding Item Information inquiry request is received, Modification is synchronized to Item Information according to the article fresh information.
Above description is only the preferred embodiment of the application and saying to institute's application technology principle It is bright.It will be appreciated by those skilled in the art that invention scope involved in the application, and it is unlimited In the technical scheme that the particular combination of above-mentioned technical characteristic forms, while it should also cover and not depart from In the case of the inventive concept, it is combined by above-mentioned technical characteristic or its equivalent feature And the other technical schemes formed.Such as features described above and (but not limited to) disclosed herein The technical scheme that technical characteristic with similar functions is replaced mutually and formed.

Claims (15)

1. a kind of information synchronization method, it is characterised in that methods described includes:
Information change prompt message in supervisory messages queue, the message queue are used to deposit institute Information change prompt message is stated, described information change prompt message is used to carry out together Item Information Step, includes temporal information corresponding to article identification information corresponding to information change and information change;
Information change prompt message is extracted from the message queue;
Change from described information in prompt message and parse article identification information and temporal information;
Send the Item Information inquiry request of the corresponding article identification information;
The article fresh information of the corresponding Item Information inquiry request is received, according to the article Fresh information synchronizes modification to Item Information.
2. according to the method for claim 1, it is characterised in that receive corresponding institute described Also include after the step of stating the article fresh information of Item Information inquiry request:
The article fresh information is preserved to local cache data.
3. according to the method for claim 2, it is characterised in that methods described also includes:
Article interrogation information is received, the article interrogation information includes being queried the mark letter of article Breath;
The thing for the identification information that article is queried described in corresponding to is searched from the local cache data Product fresh information;
The article fresh information is sent to the issuing side of the article interrogation information.
4. according to the method for claim 3, it is characterised in that methods described also includes:
If the mark that article is queried described in corresponding to can not be found from the local cache data The article fresh information of information, then send Item Information inquiry request, and the correspondence that will be received The article fresh information of the Item Information inquiry request is sent to the hair of the article interrogation information Go out end.
5. a kind of information synchronization method, it is characterised in that methods described includes:
Receive information changes prompt message, and described information change prompt message is used for Item Information Synchronize, include the time corresponding to article identification information corresponding to information change and information change Information;
Described information change prompt message is put by the time that sends of described information change prompt message Enter message queue.
6. according to the method for claim 5, it is characterised in that methods described also includes:
Carried when a plurality of information change comprising same article identification information in the message queue be present When showing information, the temporal information of each information change prompt message is inquired about, when retaining and be current Between the minimum temporal information of time interval corresponding to information change prompt message, and delete remaining The information change prompt message for including same article identification information.
7. according to the method for claim 5, it is characterised in that methods described also includes:
The information change prompt message being extracted is deleted from the message queue.
8. a kind of synchronizing information device, it is characterised in that described device includes:
Information change prompt message monitoring unit, is carried for the information change in supervisory messages queue Show information, the message queue is used to deposit described information change prompt message, and described information becomes Change prompt message to be used to synchronize Item Information, include article mark corresponding to information change Temporal information corresponding to information and information change;
Information change prompt message extraction unit, become for extracting information from the message queue Change prompt message;
Information change prompt message resolution unit, solved for changing from described information in prompt message Separate out article identification information and temporal information;
Item Information inquiry request transmitting element, for sending the corresponding article identification information Item Information inquiry request;
Information synchronizing unit, for receiving the article renewal of the corresponding Item Information inquiry request Information, modification is synchronized to Item Information according to the article fresh information.
9. device according to claim 8, it is characterised in that described device also includes:
Article fresh information unloading unit, for the article fresh information to be preserved to local slow Deposit data.
10. device according to claim 9, it is characterised in that described device also includes:
Article interrogation information receiving unit, for receiving article interrogation information, the article interrogation Information includes being queried the identification information of article;
First information query unit, for searching the corresponding quilt from the local cache data Inquire about the article fresh information of the identification information of article;
Article interrogation information transmitting unit, for the article fresh information to be sent into the thing The issuing side of product Query Information.
11. device according to claim 10, it is characterised in that described device also includes:
Second information query unit, for that can not found from the local cache data pair During the article fresh information for the identification information that described should be queried article, Item Information inquiry is sent Request, and the article fresh information of the correspondence received the Item Information inquiry request is sent Issuing side to the article interrogation information.
12. a kind of synchronizing information device, it is characterised in that described device includes:
Information change prompt message receiving unit, change prompt message for receive information, it is described Information change prompt message is used to synchronize Item Information, includes thing corresponding to information change Temporal information corresponding to product identification information and information change;
Information change prompt message sequencing unit, for changing the hair of prompt message by described information Go out the time by described information change prompt message be put into message queue.
13. device according to claim 12, it is characterised in that described device also includes:
Information change prompt message screening unit, for a plurality of bag in the message queue be present During information change prompt message containing same article identification information, each information change of inquiry carries Show the temporal information of information, retain corresponding with the temporal information that the time interval of current time is minimum Information change prompt message, and delete remaining include same article identification information information become Change prompt message.
14. device according to claim 12, it is characterised in that described device also includes:
Information change prompt message deletes unit, is extracted for being deleted from the message queue The information change prompt message crossed.
15. a kind of information synchronization system, it is characterised in that the system includes claim 8 To the synchronizing information device described in 11 any one and the letter described in any one of claim 12 to 14 Cease sychronisation.
CN201610319890.1A 2016-05-13 2016-05-13 Information synchronization method and device Pending CN107368502A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610319890.1A CN107368502A (en) 2016-05-13 2016-05-13 Information synchronization method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610319890.1A CN107368502A (en) 2016-05-13 2016-05-13 Information synchronization method and device

Publications (1)

Publication Number Publication Date
CN107368502A true CN107368502A (en) 2017-11-21

Family

ID=60303700

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610319890.1A Pending CN107368502A (en) 2016-05-13 2016-05-13 Information synchronization method and device

Country Status (1)

Country Link
CN (1) CN107368502A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110427386A (en) * 2019-08-05 2019-11-08 广州华多网络科技有限公司 Data processing method, device and computer storage medium
CN113763097A (en) * 2020-12-14 2021-12-07 北京沃东天骏信息技术有限公司 Method and device for updating article information

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101147146A (en) * 2005-03-31 2008-03-19 瑞士银行股份有限公司 Computer network system for constructing, synchronizing and/or managing a second database from/with a first database, and methods therefore
CN103559301A (en) * 2013-11-14 2014-02-05 华为技术有限公司 Method of data update, database trigger and SE (search engine)
CN103875229A (en) * 2013-12-02 2014-06-18 华为技术有限公司 Asynchronous replication method, device and system
CN104580522A (en) * 2015-01-30 2015-04-29 宁波凯智信息科技有限公司 Client-server data synchronization method and system
CN104598639A (en) * 2015-02-11 2015-05-06 北京京东尚科信息技术有限公司 Real-time display method and real-time display system for supplying commodity prices
CN104917813A (en) * 2015-04-17 2015-09-16 小米科技有限责任公司 Resource request method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101147146A (en) * 2005-03-31 2008-03-19 瑞士银行股份有限公司 Computer network system for constructing, synchronizing and/or managing a second database from/with a first database, and methods therefore
CN103559301A (en) * 2013-11-14 2014-02-05 华为技术有限公司 Method of data update, database trigger and SE (search engine)
CN103875229A (en) * 2013-12-02 2014-06-18 华为技术有限公司 Asynchronous replication method, device and system
CN104580522A (en) * 2015-01-30 2015-04-29 宁波凯智信息科技有限公司 Client-server data synchronization method and system
CN104598639A (en) * 2015-02-11 2015-05-06 北京京东尚科信息技术有限公司 Real-time display method and real-time display system for supplying commodity prices
CN104917813A (en) * 2015-04-17 2015-09-16 小米科技有限责任公司 Resource request method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110427386A (en) * 2019-08-05 2019-11-08 广州华多网络科技有限公司 Data processing method, device and computer storage medium
CN110427386B (en) * 2019-08-05 2023-09-19 广州方硅信息技术有限公司 Data processing method, device and computer storage medium
CN113763097A (en) * 2020-12-14 2021-12-07 北京沃东天骏信息技术有限公司 Method and device for updating article information

Similar Documents

Publication Publication Date Title
US11038975B2 (en) Information pushing method and device
US8977561B2 (en) Caching item information in a cloud-based point of sale system
US20200204349A1 (en) Blockchain compression using summary and padding blocks
CN102882974B (en) Method for saving website access resource by website identification version number
CN110275983A (en) The search method and device of traffic monitoring data
CN109542851A (en) File updating method, apparatus and system
CN102333092A (en) Network user identification method and application server
CN109150929B (en) Data request processing method and device under high concurrency scene
CN100579122C (en) Method for realizing browse service COOKIE of wireless application protocol gateway
CN107291779B (en) Cache data management method and device
CN104021218A (en) Information display method and device
EP3528474A1 (en) Webpage advertisement anti-shielding method, content distribution network and client
CN106789353A (en) The method and system of orientation problem between client and service end
CN105338525B (en) Log in access processing method, apparatus and system
CN107704357B (en) Log generation method and device
CN107368502A (en) Information synchronization method and device
CN108021580A (en) A kind of data synchronization updating method and its system
CN107844488A (en) Data query method and apparatus
CN111008865A (en) Coupon synchronous display method and device, server and storage medium
US20070168286A1 (en) Content use management device
CN107241451B (en) Interference method, apparatus and system are distorted based on content distributing network
CN110188969B (en) Method and device for controlling task issuing
US6535119B1 (en) System and method of managing failure of an electronic shelf label to respond to a message
CN107018166B (en) Service display method and terminal
CN110942300B (en) Transfer certificate submitting method, device and storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20171121