CN106936862B - Method of data synchronization, apparatus and system - Google Patents

Method of data synchronization, apparatus and system Download PDF

Info

Publication number
CN106936862B
CN106936862B CN201511009134.0A CN201511009134A CN106936862B CN 106936862 B CN106936862 B CN 106936862B CN 201511009134 A CN201511009134 A CN 201511009134A CN 106936862 B CN106936862 B CN 106936862B
Authority
CN
China
Prior art keywords
data
database
identification information
server
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201511009134.0A
Other languages
Chinese (zh)
Other versions
CN106936862A (en
Inventor
王晶晶
李攀科
胡成飞
张嘉
姜黎黎
徐晓
陈霞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing May 8th clapping Information Technology Co., Ltd
Original Assignee
Best Faith Racket (beijing) Mdt Infotech 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 Best Faith Racket (beijing) Mdt Infotech Ltd filed Critical Best Faith Racket (beijing) Mdt Infotech Ltd
Priority to CN201511009134.0A priority Critical patent/CN106936862B/en
Publication of CN106936862A publication Critical patent/CN106936862A/en
Application granted granted Critical
Publication of CN106936862B publication Critical patent/CN106936862B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Abstract

Method of data synchronization disclosed by the invention, comprising: after director server receives the data of user's input, by data storage to database;The notification information for obtaining the data is sent to terminal server;After receiving the data acquisition request that the terminal server is sent, the data are searched from the database and send said data to the terminal server, are shown so that the terminal server sends said data to terminal.The invention also discloses a kind of data synchronization unit and systems.Compared with prior art, in the present solution, after director server receives new data, will notification information actively be sent to terminal server, so as to notifying terminal server in time, it is further ensured that terminal real-time reception and can show the data informations of goods to auction, improves user experience.

Description

Method of data synchronization, apparatus and system
Technical field
The present invention relates to Internet technical fields, more specifically, are related to a kind of method of data synchronization, apparatus and system.
Background technique
With the development of internet area, online auction as auction mode conveniently, safely and without geographical restrictions, It is widely used.When auction users carry out online auction, is announced on Auction Site using Internet technology be by auction or The article or information on services of bid, auction user carry out price markup operation by Auction Site, until auction users go out goods to auction Sell to bid highest or minimum auction user, End of Auction.
Specifically, bid server stores goods to auction information when auction users announce goods to auction information on Auction Site, and When auction user raises the price or trades for the goods to auction, the price data and status data of goods to auction are received, by the valence of goods to auction Lattice data or status data storage corresponding with goods to auction information.And the terminal of auction is participated in, usually according to certain period from competing Valence server reads the price data and status data of goods to auction, and updates the goods to auction related data information itself shown.
Since the related data information of goods to auction in the related technology is stored by bid server, and terminal is needed according to certain Period updates shown data information, so that terminal compartment certain time could update a goods to auction data information, and is spaced Time in goods to auction price may have updated for several times or the state of goods to auction has changed.It can be seen that the relevant technologies In, terminal can not real-time update goods to auction data information, it is bad so as to cause user experience.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of method of data synchronization, apparatus and system, be able to solve terminal without The problem of method real-time update goods to auction data information.
In a first aspect, the embodiment of the invention provides a kind of method of data synchronization, comprising: it is defeated that director server receives user After the data entered, by data storage to database;The notification information for obtaining the data is sent to terminal server;In After receiving the data acquisition request that the terminal server is sent, the data are searched from the database and will be described Data are sent to the terminal server, are shown so that the terminal server sends said data to terminal.
Preferably, described by data storage to database, comprising: to read the identification information of the data;Judge Whether the identification information is stored in one database;If being stored with the identification information in the first database, by institute It states data and position corresponding with the identification information in the first database is written;If not stored in the first database The data and the identification information are added to the first database by the identification information;According to the first database The second database of content synchronization so that the content of second database is identical as the content of the first database.
Preferably, second database of content synchronization according to the first database, comprising: read first number According to the operation log in library;Detect the content of the operation log recording;When the operation log recording has new content, institute is parsed State the action statement of new content;Operation is executed to second database according to the action statement of the new content.
Preferably, described that position corresponding with the identification information in the first database, packet is written into the data It includes: replacing the former data in the first database using the data;Alternatively, the first data according to the data change The corresponding status information of data described in library.
Preferably, described to search the data from the database and send said data to the terminal service Device, comprising: the identification information of the data is read from the data acquisition request;Described in being searched in second database Identification information;After finding the identification information, the terminal is sent by the corresponding data of the identification information and is taken Business device.
Preferably, after by data storage to database, further includes: obtained to the transmission of Memcache cache server Take the notification information of the data;After receiving the data acquisition request that the Memcache cache server is sent, from The data are searched in the database and send said data to the Memcache cache server.
Second aspect, the embodiment of the invention also provides a kind of data synchronization units, comprising: memory module, for connecing After the data for receiving user's input, by data storage to database;Sending module, for being obtained to terminal server transmission Take the notification information of the data;Searching module, for receive data acquisition request that the terminal server is sent it Afterwards, the data are searched from the database and send said data to the terminal server, so that the terminal takes Business device sends said data to terminal and is shown.
Preferably, the memory module includes reading unit, judging unit, writing unit, adding unit and synchronization unit, Wherein, the reading unit, for reading the identification information of the data;The judging unit, for judging first database In whether be stored with the identification information;Said write unit, for being stored with the mark letter in the first database When breath, position corresponding with the identification information in the first database is written into the data;The adding unit, is used for In the first database when the not stored identification information, the data and the identification information are added to described first Database;The synchronization unit, for the second database of content synchronization according to the first database, so that second number It is identical as the content of the first database according to the content in library.
Preferably, the synchronization unit includes that the first reading subunit, detection sub-unit, parsing subunit and operation execute Subelement, wherein first reading subunit, for reading the operation log of the first database;Detection is single Member, for detecting the content of the operation log recording;The parsing subunit, for having in new when the operation log recording Rong Shi parses the action statement of the new content;The operation executes subelement, for the action statement according to the new content Operation is executed to second database.
Preferably, said write unit includes replacement subelement and replacement subelement, wherein the replacement subelement is used In replacing the former data in the first database using the data;The replacement subelement is used for according to the data more Change the corresponding status information of data described in the first database.
Preferably, the searching module includes the second reading subunit, searches subelement and transmission sub-unit, wherein institute The second reading subunit is stated, for reading the identification information of the data from the data acquisition request;Lookup is single Member, for searching the identification information in second database;The transmission sub-unit finds the mark for working as After information, the terminal server is sent by the corresponding data of the identification information.
Preferably, the sending module is also used to send the notice for obtaining the data to Memcache cache server Information;The searching module is also used to after receiving the data acquisition request that the Memcache cache server is sent, The data are searched from the database and send said data to the Memcache cache server.
The third aspect, the embodiment of the invention also provides a kind of data synchronous systems, comprising: director server and terminal service Device, wherein after the director server receives the data of user's input, by data storage to database;To the end Server is held to send the notification information for obtaining the data;Receive data acquisition request that the terminal server is sent it Afterwards, the data are searched from the database and send said data to the terminal server;The terminal server, For receiving the notification information for the acquisition data that the director server is sent;The data are sent to the director server to obtain Take request;The data that the director server is sent are received, and sends said data to terminal and is shown.
From the above technical scheme, in order to solve the relevant technologies the technical issues of, number provided by the embodiment of the present invention According to synchronous method, apparatus and system, after director server receives the data of user's input, store data into database, Then, director server sends the notification information for obtaining data to terminal server, in order to notify terminal server to have data more Newly.After receiving the data acquisition request of terminal server transmission, data are searched from database and are transmitted data to Terminal server is shown with transmitting data to each terminal by terminal server.Compared with prior art, this programme In, after director server receives new data, notification information actively will be sent to terminal server, so as to notify end in time Server is held, is further ensured that terminal real-time reception and can show the data informations of goods to auction, improves user experience.
Detailed description of the invention
It in order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, below will be to institute in embodiment Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention Example, for those of ordinary skill in the art, without creative efforts, can also obtain according to these attached drawings Obtain other attached drawings.By the way that shown in attached drawing, above and other purpose of the invention, feature and advantage will be more clear.In whole Identical appended drawing reference indicates identical part in attached drawing.Attached drawing, emphasis deliberately are not drawn by actual size equal proportion scaling It is to show the gist of the present invention.
Fig. 1 is the method flow diagram of method of data synchronization provided in an embodiment of the present invention;
Fig. 2 is data interaction schematic diagram provided in an embodiment of the present invention;
Fig. 3 is the structural schematic diagram of data synchronization unit provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of data synchronous system provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Whole description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
The specific implementation method of the embodiment of the present invention is described below, referring to Figure 1, Fig. 1 is the embodiment of the present invention The method flow diagram of the method for data synchronization of offer, the described method comprises the following steps:
Step S101: after director server receives the data of user's input, by data storage to database.
Wherein, it is based on description of related art, user knows the data information of goods to auction by terminal, wherein the data Information can be the bidding data of goods to auction, and can input oneself bid data to goods to auction by terminal, when user's input is competing After auction price lattice, director server receives goods to auction price, and by the storage of goods to auction price into database, in order to safeguard the data of goods to auction Information is supported to provide data to other users displaying in real time.
Fig. 2 is referred to, Fig. 2 is data interaction schematic diagram provided in an embodiment of the present invention, it can be seen that the embodiment of the present invention Technical solution in, director server 01 includes bid server 011, and in order to reduce the load of bid server 011, while energy Enough corresponding data informations of full maintenance goods to auction, director server 01 further includes data server 012, is tieed up in data server 012 Protect goods to auction information and the corresponding data information of goods to auction.Therefore, when user input data, bid server 011 receives number According to, and data server 012 is sent by received data, data are corresponded to storage in the database by data server 012.
Since the corresponding data information of each goods to auction can be modified at any time in database, and may at any time can be by end Server 02 is held to read, if the data information of same goods to auction needs to modify and read simultaneously, the process flow of database will Disorder is generated, not only bad for the maintenance of database, and is unfavorable for the management to data.
Therefore, further, data server 012 described in this programme includes the first data server 0121 and the second number According to server 0122, wherein maintenance has first database in the first data server 0121, ties up in the second data server 0122 Shield has the second database.After bid server 011 receives data, the first data server 0121 is sent data to, First data server 0121 reads the identification information of data, and judges identification information whether is stored in first database, such as It is stored with identification information in fruit first database, illustrates that received data is the more new data of goods to auction, then writes data into the Former data are replaced in position corresponding with identification information in one database;If not stored identification information, explanation in first database Received data is new goods to auction data, then data and the corresponding identification information of data is added in first database, then, First data server 0121 sends synchronic command, synchronous second database and the first data to the second data server 0122 Library.
The present embodiment by setting two data servers, and make two data servers safeguard respectively two it is identical Database can write data into first database when writing data, and when reading data, it can be read from the second database Take, so as to separate data reading and writing, and independently carry out, thus easily facilitate the management to database and data and Maintenance.
It should be noted that the first data server 0121 writes data into first database, can be using being received Data replace the former data that are stored, for example, received data is goods to auction when newly bidding, will newly bid the first number of write-in According to library;It is also possible to change the state of correspondence goods to auction according to received data, for example, can incite somebody to action after the transaction success of goods to auction The state of goods to auction is revised as the mark that transaction terminates from the mark traded.For example, being clapped in a preferable example of the invention Status indicator when product are in during auction is " 1 ", and after goods to auction are traded successfully, the state of goods to auction can be revised as " 0 ".
In addition, when synchronous first database and the second database the first data server 0121 can be regard as main service Device, by the second data server 0122 as from server, when synchronous, the second data server 0122 is from the first data service Device 0121 reads the operation log of first database, and detects the content of operation log recording, when operation log recording has in new Rong Shi parses the action statement of new content, and executes identical action statement to the second database, to realize two databases Synchronization.
Step S102: the notification information for obtaining the data is sent to terminal server.
Wherein, after the completion of database synchronization, the first data server 0122 is synchronously completed to the transmission of bid server 011 Notification information, then, bid server 011 to terminal server 02 send obtain data notice, wherein obtain data It include the identification information of data in notice.
It should be noted that terminal used by a user includes APP (Application, application program) terminal, web end Terminal is clapped at end and scene, and different terminals are provided with corresponding server, therefore, terminal service described in the embodiment of the present invention Device 02 may include: that server 023 is clapped at APP server 021, web server 022 and scene, and bid server 011, which is sent, to be obtained When the notice of data, while the transmission acquisition data of server 023 are clapped to APP server 021, web server 022 and scene and are led to Know.
It should be noted that be required to read from the second database when reading data due to any terminal, therefore, in order to Mitigate the load of the second database, improve the efficiency that terminal reads data, Memcache caching clothes are additionally provided in the present embodiment Business device 03, when first terminal reads data, corresponding server reads corresponding data from the second database, at this point, The read data of terminal server are stored into Memcache cache server 03 simultaneously, when second terminal reads again phase It when with data, can directly be read from Memcache cache server 03, so as to greatly reduce the second database of access Number, so as to reduce the load of the second database.
Further, since Memcache cache server 03 provides data source for terminal, and therefore, Memcache cache server The data cached in 03 should also be as timely updating, so, data notification is obtained when bid server 011 is sent to terminal server While, it can be sent to Memcache cache server 03 and obtain data notification, in order to Memcache cache server 03 Timely update stored data.
Technical solution described in this step, bid server 011 will more new data storage after, actively to terminal service Device 02, which is sent, obtains data update notification, to provide technique preparation for terminal real-time display more new data.In addition, setting Memcache cache server 03 can effectively reduce the access load of the second database, and can be improved terminal and read number According to speed.
Step S103: after receiving the data acquisition request that the terminal server is sent, from the database It searches the data and sends said data to the terminal server.
It wherein, can be to second after terminal server 02 receives the acquisition data notification that bid server 011 is sent Data server 0122 send data acquisition request, wherein in data acquisition request include the corresponding identification information of data, second Data server 0122 reads identification information after receiving data acquisition request, and searches and read in the second database The identification information taken takes the APP that the corresponding data of identification information are sent to terminal server 02 after finding identification information Server 023 is clapped at business device 021, web server 022 and scene.Server is clapped at APP server 021, web server 022 and scene After 023 receives data, the terminal for being separately sent to respectively connect is shown, to realize the real-time exhibition of data.
Likewise, after Memcache cache server 03 receives the acquisition data notification that bid server 011 is sent, Also data acquisition request is sent to the second data server 0122, wherein include the corresponding mark of data in data acquisition request Information, the second data server 0122 read identification information after receiving data acquisition request, and in the second database Read identification information is searched, after finding identification information, Memcache is sent by the corresponding data of identification information and delays Server 03 is deposited, when the new access terminal of terminal server, the terminal of the new access can be from Memcache cache server 03 Middle reading simultaneously shows newest data.
In summary, method of data synchronization provided by the embodiment of the present invention, compared with prior art, when director server connects After receiving new data, notification information actively will be sent to terminal server, so as to notify terminal server in time, further Guarantee that terminal real-time reception and can show the data informations of goods to auction, improves user experience.
Corresponding with above-mentioned implementation method, the embodiment of the invention also provides a kind of data synchronization units, refer to figure 3, Fig. 3 be the structural schematic diagram of data synchronization unit provided in an embodiment of the present invention.
Described device includes: memory module 11, sending module 12 and searching module 13, wherein memory module 11 is used for After the data for receiving user's input, by data storage to database;Sending module 12, for being sent out to terminal server Send the notification information for obtaining the data;Searching module 13, in the data acquisition for receiving the terminal server transmission After request, the data are searched from the database and send said data to the terminal server, so that described Terminal server sends said data to terminal and is shown.
Specifically, the memory module 11 includes reading unit, judging unit, writing unit, adding unit and synchronous list Member, wherein the reading unit, for reading the identification information of the data;The judging unit, for judging the first data Whether the identification information is stored in library;Said write unit, for being stored with the mark in the first database When information, position corresponding with the identification information in the first database is written into the data;The adding unit is used When the not stored identification information in the first database, the data and the identification information are added to described the One database;The synchronization unit, for the second database of content synchronization according to the first database, so that described second The content of database is identical as the content of the first database.
On the basis of the above embodiments, the synchronization unit includes the first reading subunit, detection sub-unit, parsing Unit and operation execute subelement, wherein first reading subunit, for reading the operation day of the first database Will;The detection sub-unit, for detecting the content of the operation log recording;The parsing subunit, for working as the behaviour When having new content as log recording, the action statement of the new content is parsed;The operation executes subelement, for according to described The action statement of new content executes operation to second database.
Said write unit includes replacement subelement and replacement subelement, wherein the replacement subelement, for using institute It states data and replaces former data in the first database;The replacement subelement, for according to the data change the The corresponding status information of data described in one database.
Description based on the above embodiment, in another embodiment, the searching module 13 include that the second reading is single Member searches subelement and transmission sub-unit, wherein second reading subunit, for being read from the data acquisition request Take the identification information of the data;The lookup subelement, for searching the identification information in second database;Institute Transmission sub-unit is stated, for sending institute for the corresponding data of the identification information after finding the identification information State terminal server.
In another embodiment, the sending module 12 is also used to send acquisition institute to Memcache cache server State the notification information of data;The searching module 13 is also used in the number for receiving the Memcache cache server transmission After acquisition request, the data are searched from the database and send said data to the Memcache caching clothes Business device.
The function and effect of modules and unit are detailed in the description of above-mentioned implementation method in described device, and the present invention is implemented Details are not described herein again for example.
It can be seen that data synchronization unit provided by the embodiment of the present invention, compared with prior art, when director server connects After receiving new data, notification information actively will be sent to terminal server, so as to notify terminal server in time, further Guarantee that terminal real-time reception and can show the data informations of goods to auction, improves user experience.
In addition, corresponding with the above method and device, the embodiment of the invention also provides a kind of data synchronous systems, ask Referring to fig. 4, Fig. 4 is the structural schematic diagram of data synchronous system provided in an embodiment of the present invention, the system comprises: director server 01 and terminal server 02, specifically, the data are stored after the director server 01 receives the data of user's input To database;The notification information for obtaining the data is sent to the terminal server 02;Receiving the terminal server After 02 data acquisition request sent, the data are searched from the database and send said data to the terminal Server 02;
The terminal server 02, for receiving the notification information for the acquisition data that the director server 01 is sent; The data acquisition request is sent to the director server 01;Receive the data that the director server 01 is sent, and by institute It states data and is sent to terminal and shown.
Specific implementation process is detailed in foregoing description, and details are not described herein again for the embodiment of the present invention.
In summary, in order to solve the relevant technologies the technical issues of, method of data synchronization provided by the embodiment of the present invention, Apparatus and system stores data into database after director server receives the data of user's input, then, total to service Device sends the notification information for obtaining data to terminal server, in order to notify terminal server to have data update.When receiving After the data acquisition request that terminal server is sent, data are searched from database and transmit data to terminal server, It is shown with transmitting data to each terminal by terminal server.Compared with prior art, in the present solution, ought always service After device receives new data, notification information actively will be sent to terminal server, so as to notify terminal server in time, into One step guarantees that terminal real-time reception and can show the data informations of goods to auction, improves user experience.
The above is only a specific embodiment of the invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (11)

1. a kind of method of data synchronization characterized by comprising
After director server receives the data of user's input, by data storage to database;And actively to terminal service Device sends the notification information for obtaining the data;
After receiving the data acquisition request that the terminal server is sent, the data are searched from the database simultaneously The terminal server is sent said data to, is shown so that the terminal server sends said data to terminal Show;
It is described to store the data to database, comprising:
Read the identification information of the data;
Judge the identification information whether is stored in first database;
If being stored with the identification information in the first database, by the data be written in the first database with institute State the corresponding position of identification information;
If the not stored identification information in the first database, the data and the identification information are added to described First database;
According to the second database of content synchronization of the first database, so that the content of second database and described first The content of database is identical;
When writing data, first database is write data into, and when reading data, it is read from the second database.
2. method of data synchronization as described in claim 1, which is characterized in that the content according to the first database is same Walk the second database, comprising:
Read the operation log of the first database;
Detect the content of the operation log recording;
When the operation log recording has new content, the action statement of the new content is parsed;
Operation is executed to second database according to the action statement of the new content.
3. method of data synchronization as described in claim 1, which is characterized in that described that first data are written in the data Position corresponding with the identification information in library, comprising:
The former data in the first database are replaced using the data;Alternatively,
According to the corresponding status information of data described in first database described in the data change.
4. the method for data synchronization as described in claim any in claims 1 to 3, which is characterized in that described from the database It is middle to search the data and send said data to the terminal server, comprising:
The identification information of the data is read from the data acquisition request;
The identification information is searched in second database;
After finding the identification information, the terminal server is sent by the corresponding data of the identification information.
5. method of data synchronization as described in claim 1, which is characterized in that after by data storage to database, Further include:
The notification information for obtaining the data is sent to Memcache cache server;
After receiving the data acquisition request that the Memcache cache server is sent, institute is searched from the database It states data and sends said data to the Memcache cache server.
6. a kind of data synchronization unit characterized by comprising
Memory module, for after the data for receiving user's input, the data to be stored to database;
Sending module sends the notification information for obtaining the data for active to terminal server;
Searching module, for after receiving the data acquisition request that the terminal server is sent, from the database It searches the data and sends said data to the terminal server, so that the terminal server sends the data It is shown to terminal;
The memory module includes reading unit, judging unit, writing unit, adding unit and synchronization unit, wherein
The reading unit, for reading the identification information of the data;
The judging unit, for judging whether be stored with the identification information in first database;
When for being stored with the identification information in the first database, institute is written in the data by said write unit State position corresponding with the identification information in first database;
The adding unit, in the first database when the not stored identification information, by the data with it is described Identification information is added to the first database;
The synchronization unit, for the second database of content synchronization according to the first database, so that second data The content in library is identical as the content of the first database;
When writing data, first database is write data into, and when reading data, it is read from the second database.
7. data synchronization unit as claimed in claim 6, which is characterized in that the synchronization unit includes that the first reading is single Member, detection sub-unit, parsing subunit and operation execute subelement, wherein
First reading subunit, for reading the operation log of the first database;
The detection sub-unit, for detecting the content of the operation log recording;
The parsing subunit, for parsing the action statement of the new content when the operation log recording has new content;
The operation executes subelement, executes operation to second database for the action statement according to the new content.
8. data synchronization unit as claimed in claim 6, which is characterized in that said write unit is including replacement subelement and more Change subelement, wherein
The replacement subelement, for replacing the former data in the first database using the data;
The replacement subelement, for the corresponding state letter of data described in the first database according to the data change Breath.
9. data synchronization unit as claimed in claim 6, which is characterized in that the searching module includes that the second reading is single Member searches subelement and transmission sub-unit, wherein
Second reading subunit, for reading the identification information of the data from the data acquisition request;
The lookup subelement, for searching the identification information in second database;
The transmission sub-unit, for after finding the identification information, the corresponding data of the identification information to be sent out It is sent to the terminal server.
10. data synchronization unit as claimed in claim 6, which is characterized in that
The sending module is also used to send the notification information for obtaining the data to Memcache cache server;
The searching module is also used to after receiving the data acquisition request that the Memcache cache server is sent, The data are searched from the database and send said data to the Memcache cache server.
11. a kind of data synchronous system characterized by comprising director server and terminal server, wherein
After the director server receives the data of user's input, by data storage to database;Actively to the end Server is held to send the notification information for obtaining the data;Receive data acquisition request that the terminal server is sent it Afterwards, the data are searched from the database and send said data to the terminal server;
The terminal server, for receiving the notification information for the acquisition data that the director server is sent;To described total Server sends the data acquisition request;The data that the director server is sent are received, and are sent said data to Terminal is shown;It is described to store the data to database, comprising:
Read the identification information of the data;
Judge the identification information whether is stored in first database;
If being stored with the identification information in the first database, by the data be written in the first database with institute State the corresponding position of identification information;
If the not stored identification information in the first database, the data and the identification information are added to described First database;
According to the second database of content synchronization of the first database, so that the content of second database and described first The content of database is identical;
When writing data, first database is write data into, and when reading data, it is read from the second database.
CN201511009134.0A 2015-12-29 2015-12-29 Method of data synchronization, apparatus and system Active CN106936862B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511009134.0A CN106936862B (en) 2015-12-29 2015-12-29 Method of data synchronization, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511009134.0A CN106936862B (en) 2015-12-29 2015-12-29 Method of data synchronization, apparatus and system

Publications (2)

Publication Number Publication Date
CN106936862A CN106936862A (en) 2017-07-07
CN106936862B true CN106936862B (en) 2019-11-01

Family

ID=59458500

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511009134.0A Active CN106936862B (en) 2015-12-29 2015-12-29 Method of data synchronization, apparatus and system

Country Status (1)

Country Link
CN (1) CN106936862B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110543512B (en) * 2018-05-29 2022-10-04 优信拍(北京)信息科技有限公司 Information synchronization method, device and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101873314A (en) * 2010-05-31 2010-10-27 程乐华 System for exchanging secrets in social network community
CN101364217B (en) * 2007-08-08 2011-06-22 华为技术有限公司 Data maintenance method, equipment and system thereof in data-base
CN104331829A (en) * 2014-10-28 2015-02-04 杭州联通计算机系统有限公司 Auction bidding management system
CN104700302A (en) * 2015-04-01 2015-06-10 携程计算机技术(上海)有限公司 Hotel online auction method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364217B (en) * 2007-08-08 2011-06-22 华为技术有限公司 Data maintenance method, equipment and system thereof in data-base
CN101873314A (en) * 2010-05-31 2010-10-27 程乐华 System for exchanging secrets in social network community
CN104331829A (en) * 2014-10-28 2015-02-04 杭州联通计算机系统有限公司 Auction bidding management system
CN104700302A (en) * 2015-04-01 2015-06-10 携程计算机技术(上海)有限公司 Hotel online auction method and system

Also Published As

Publication number Publication date
CN106936862A (en) 2017-07-07

Similar Documents

Publication Publication Date Title
CN104919482B (en) Dynamic content establishment of item
CN108989429A (en) The method, apparatus of real-time update page data, electronic equipment
CN102004756A (en) Traffic visualization across web maps
CN103839171A (en) Network advertisement directional condition display method and device
CN105338078A (en) Data storage method and device used for storing system
CN101656617A (en) Method for promoting advertisement, device and system thereof
US20160042397A1 (en) Information processing device, information processing method, and information processing program
RU2013140415A (en) IMPROVED INVENTORY MANAGEMENT SYSTEM AND METHOD FOR ITS IMPLEMENTATION
CN107454430B (en) Method for managing distributed digital signage content and digital signage player
US9727201B2 (en) Contextual help
CN103985048A (en) Real-time pushing system and method for delivering advertisement
CN102722830A (en) Advertisement publishing method
JP2012514802A (en) Interactive information system
CN108513145A (en) A kind of control method and device of even wheat live streaming
US10176492B2 (en) Information processing apparatus and information processing system to display information based on status of application
US20200074509A1 (en) Business data promotion method, device, terminal and computer-readable storage medium
CN106528578A (en) An information display method and device
CN108132967A (en) Methods of exhibiting, device, terminal and the storage medium of the App pages
CN106936862B (en) Method of data synchronization, apparatus and system
US20130232208A1 (en) Method and device for updating messages
KR20120134598A (en) System and method for providing the contents continuously service
US20130139043A1 (en) System, apparatus and method for updating links
CN106101218A (en) The report method of terminal data and device
CN106294630B (en) Multimedia messages recommended method, device and multimedia system
JP5891331B1 (en) Information processing apparatus, information processing method, and program

Legal Events

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

Effective date of registration: 20200410

Address after: Room 406, 4th floor, College Park, Dongsheng Science Park, Zhongguancun, No.18, Xueqing Road, Haidian District, Beijing 100083

Patentee after: Beijing May 8th clapping Information Technology Co., Ltd

Address before: 100020 building 21, building 93, building 10, Jianguo Road, Beijing, Chaoyang District, 2507

Patentee before: YOUXINPAI (BEIJING) INFORMATION TECHNOLOGY Co.,Ltd.