CN103577422A - Bidirectional-mapping-relation data processing method and system - Google Patents

Bidirectional-mapping-relation data processing method and system Download PDF

Info

Publication number
CN103577422A
CN103577422A CN201210256915.XA CN201210256915A CN103577422A CN 103577422 A CN103577422 A CN 103577422A CN 201210256915 A CN201210256915 A CN 201210256915A CN 103577422 A CN103577422 A CN 103577422A
Authority
CN
China
Prior art keywords
mapping relations
update request
data update
read
write server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201210256915.XA
Other languages
Chinese (zh)
Other versions
CN103577422B (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.)
Tencent Cloud Computing Beijing Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201210256915.XA priority Critical patent/CN103577422B/en
Publication of CN103577422A publication Critical patent/CN103577422A/en
Application granted granted Critical
Publication of CN103577422B publication Critical patent/CN103577422B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/23Updating

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a bidirectional-mapping-relation data processing method. The method comprises that a positive-relation interface receives a data update request made by a user terminal and routes the data update request to a corresponding positive-relation read-write server; the positive-relation read-write server receives the data update request and sends a data update request for updating a negative mapping relation to a negative-relation interface; the negative-relation interface receives the data update request for updating the negative mapping relation, updates a local negative mapping relation and feeds a response of successful updating of the negative mapping relation back to the positive-relation read-writer server; the positive-relation read-write server receives the response of successful updating of the negative mapping relation and updates a local positive mapping relation. Correspondingly, the invention also discloses a bidirectional-relation data processing system. The bidirectional-mapping-relation data processing method and system can be expanded horizontally as required, improve the system stability and facilitate system maintaining and repairing cost reduction and data processing efficiency improvement.

Description

A kind of disposal route of two-way mapping relations data and system
Technical field
The present invention relates to the amount data processing technique of internet, relate in particular to a kind of disposal route and system of two-way mapping relations data.
Background technology
For two-way mapping relations data, in a complete data cell, at least comprise between the information of two kinds of different dimensions and this two different dimensions and keeping two-way mapping relations.
Data processing for two-way mapping relations, the implementation method of correlation technique as shown in Figure 1, can comprise two processes of Data Update and data query, wherein, data query comprises positive relationship inquiry (A-> B) and inverse relationship inquiry (B-> A).While carrying out Data Update, for ensureing the consistance of two-way mapping relations, traditional way is that data storages and Data Update are drawn on a station server is on the writing server shown in Fig. 1, and unique service access entrance of writing is externally provided.Particularly, writing server is responsible for processing the write request of all user's full dose data, externally provides unique write request to process entrance, to guarantee all users' Data Update, is all to process in the mode of serial.Writing server, successfully upgrading after local data, returns to successful respond to user.Writing server upgrades after local data, if the two-way mapping of user changes, by Synchronization Component mode, by forward mapping relations changing push to positive relationship querying server (positive relationship inquiry Server[1] ..., positive relationship inquiry Server[n]), simultaneously also by reverse mapping relations changing push to inverse relationship querying server (inverse relationship inquiry Server[1] ..., inverse relationship inquiry Server[n]).
The local full dose data of writing server can only be stored on other server of self or, and forward mapping relations and the oppositely data of mapping relations, can be deployed to multiple servers (by through part, positive relationship inquiry Server[1] ..., positive relationship inquiry Server[n], or inverse relationship inquiry Server[1] ..., inverse relationship inquiry Server[n]) on.
As shown in Figure 1, for positive relationship, inquire about, by user terminal, initiate forward inquiry request, by positive relationship query interface machine, be routed to corresponding positive relationship querying server (positive relationship inquiry Server[1] ..., positive relationship inquiry Server[n]) upper inquiry; For inverse relationship, inquire about, by user terminal, initiate Query request, by inverse relationship query interface machine, be routed to corresponding inverse relationship querying server (inverse relationship inquiry Server[1] ..., inverse relationship inquiry Server[n]) on.Between positive relationship inquiry and inverse relationship inquiry, do not interfere with each other.
Data processing technique for two-way mapping relations, by a writing server, process all two-way mapping relations Data Update, owing to there being the problem of "bottleneck", thereby cause following problem: 1) writing server only provides unique write request to process entrance, at user data update frequently in situation, the load-bearing capacity that writing server is processed request will be subject to serious challenge, and cannot solve by the mode of system extension; 2) renewal of positive relationship and inverse relationship, is all that the mode pushing by writing server realizes, and has increased the weight of the load of writing server, further affects the ability of its processes user data update request; 3) writing server will carry out bidirectional relationship renewal propelling movement, need clearly know positive relationship and the inverse relationship deployment specifics of data storage separately, cause having too many coupling between writing server, positive relationship querying server, inverse relationship querying server, make data exchange process loaded down with trivial details, treatment effeciency is low.
In summary, in the treatment technology of internet mass data, the continuous growth of the rapid expanding of data, Data Update request, will bring very large challenge.How ensureing under the prerequisite of data consistency, realizing the flexible expansion of data handling system under two-way mapping relations, is the problem that internet mass data processing technique must solve.
Summary of the invention
In view of this, fundamental purpose of the present invention is to provide a kind of disposal route and system of two-way mapping relations data, has the problem of "bottleneck" to solve the treatment technology of two-way mapping relations data.
For achieving the above object, technical scheme of the present invention is achieved in that
The invention provides a kind of disposal route of two-way mapping relations data, described method comprises:
Positive relationship interface message processor (IMP) receives the Data Update request that user terminal is initiated, and gives corresponding positive relationship read-write server by described Data Update request route;
Positive relationship read-write server receives described Data Update request, initiates to upgrade the Data Update request of reverse mapping relations to inverse relationship interface message processor (IMP);
Inverse relationship interface message processor (IMP) receives the Data Update request of the reverse mapping relations of described renewal, and route is given corresponding inverse relationship read-write server;
Inverse relationship read-write server receives the Data Update request of the reverse mapping relations of described renewal, upgrades local reverse mapping relations, and returns to described positive relationship read-write server replying that reverse mapping relations are updated successfully;
What the described reverse mapping relations of positive relationship read-write server reception were updated successfully replys, and upgrades local forward mapping relations.
The present invention also provides a kind of system for the treatment of two-way mapping relations data, and described system comprises: positive relationship interface message processor (IMP), the read-write of a plurality of positive relationship server, inverse relationship interface message processor (IMP) and a plurality of inverse relationship interface message processor (IMP); Wherein,
Described positive relationship interface message processor (IMP), the Data Update request of initiating for receiving user terminal, and give corresponding positive relationship read-write server by described Data Update request route;
Positive relationship read-write server, the Data Update request sending for receiving described positive relationship interface message processor (IMP), initiates to upgrade the Data Update request of reverse mapping relations to described inverse relationship interface message processor (IMP); And receive replying that reverse mapping relations that described inverse relationship read-write server returns are updated successfully, upgrade local forward mapping relations;
Inverse relationship interface message processor (IMP), for receiving the Data Update request of the reverse mapping relations of renewal of described positive relationship read-write server initiation, and route is given corresponding inverse relationship read-write server;
Inverse relationship read-write server, for receiving the Data Update request of the reverse mapping relations of described renewal, upgrades local reverse mapping relations, and returns to described positive relationship read-write server replying that reverse mapping relations are updated successfully.
Two-way mapping relations data processing method of the present invention and system, by positive relationship interface message processor (IMP), by Data Update request route, give corresponding positive relationship read-write server, again by the request of positive relationship read-write server process Data Update, to inverse relationship interface message processor (IMP), initiate the Data Update request of reverse mapping relations, inverse relationship interface message processor (IMP) processes the Data Update request route of reverse mapping relations to corresponding inverse relationship read-write processor, finally, after having upgraded, reverse mapping relations carry out again the renewal of forward mapping relations.So, not needing to arrange the unified of writing server processes and data storage completely, forward mapping relations data are stored in respectively a plurality of positive relationship read-write servers, oppositely mapping relations data are stored in a plurality of inverse relationship read-write servers, only need positive relationship interface message processor (IMP), positive relationship read-write server, inverse relationship interface message processor (IMP) and inverse relationship read-write server can complete the processing of two-way mapping relations data, can carry out as required parallel expansion, solved single-point performance bottleneck problem, demand for services that can satisfying magnanimity data.
Accompanying drawing explanation
Fig. 1 is the schematic diagram of two-way mapping relations data handling procedure in prior art;
Fig. 2 is that the present invention is for the treatment of the composition structural representation of the system of two-way mapping relations data;
Fig. 3 is the schematic diagram of the two-way mapping relations data handling procedure of the present invention.
Embodiment
A kind of system for the treatment of two-way mapping relations data provided by the invention, it forms structure as shown in Figure 2, mainly can comprise: positive relationship interface message processor (IMP), a plurality of positive relationship read-write server (positive relationship read-write servers [1], ..., positive relationship read-write server [m], m is not less than 1 integer), inverse relationship interface message processor (IMP) and a plurality of inverse relationship read-write server (inverse relationship read-write server [1], ..., inverse relationship read-write server [n], n is not less than 1 integer), wherein, forward mapping relations inquiry request and/or Data Update request that positive relationship interface message processor (IMP) can be initiated for receiving user terminal, and give corresponding positive relationship read-write server by described forward mapping relations inquiry request and/or Data Update request route, positive relationship read-write server, for storing forward dimensional information and the corresponding forward mapping relations of the described forward dimensional information data of specifying in section, forward mapping relations inquiry request and/or Data Update request that pack processing contains forward dimensional information in described appointment section, and according to described Data Update request, to inverse relationship interface message processor (IMP), initiate to increase/delete the Data Update request of reverse mapping relations,
Inverse relationship interface message processor (IMP), the reverse mapping relations inquiry request of initiating for receiving user terminal, receive the Data Update request that described positive relationship read-write server sends, and give corresponding inverse relationship read-write server by described reverse mapping relations inquiry request and/or Data Update request route;
Inverse relationship read-write server, for storing reverse dimensional information and the corresponding reverse mapping relations data of described reverse dimensional information of specifying in section, pack processing contains oppositely reverse mapping relations inquiry request and/or the Data Update request of dimensional information in described appointment section.
So, positive relationship read-write server and inverse relationship read-write server be the deployment specifics of maintenance data storage separately, positive relationship is read and write to server and inverse relationship read-write server full decoupled, can be used as two independently systems, simplified system, improved system stability, and be conducive to reduce system O&M cost and improve data-handling efficiency.
Particularly, described positive relationship interface message processor (IMP), the Data Update request of initiating for receiving user terminal, and give corresponding positive relationship read-write server by described Data Update request route; Positive relationship read-write server, the Data Update request sending for receiving described positive relationship interface message processor (IMP), initiates to upgrade the Data Update request of reverse mapping relations to described inverse relationship interface message processor (IMP); And receive replying that reverse mapping relations that described inverse relationship read-write server returns are updated successfully, upgrade local forward mapping relations; Inverse relationship interface message processor (IMP), for receiving the Data Update request of the reverse mapping relations of renewal of described positive relationship read-write server initiation, and route is given corresponding inverse relationship read-write server; Inverse relationship read-write server, for receiving the Data Update request of the reverse mapping relations of described renewal, upgrades local reverse mapping relations, and returns to described positive relationship read-write server replying that reverse mapping relations are updated successfully.
Here, described positive relationship read-write server, also, for after upgrading local forward mapping relations, initiates to delete the Data Update request of original reverse mapping relations to described inverse relationship interface message processor (IMP); Inverse relationship interface message processor (IMP), also for receiving the Data Update request of the original reverse mapping relations of deletion of described positive relationship read-write server transmission, and route is given corresponding inverse relationship read-write server; Inverse relationship read-write server, also, for according to the Data Update request of the original reverse mapping relations of described deletion, deletes local described original reverse mapping relations.
Described positive relationship interface message processor (IMP) is for giving described Data Update request route corresponding positive relationship read-write server, comprise: according to the correspondence relationship information between the forward dimensional information of preset configuration and each positive relationship read-write server, inquire about positive relationship read-write server corresponding to forward dimensional information in described Data Update request, and give the positive relationship read-write inquiring server by described Data Update request route;
Described inverse relationship interface message processor (IMP) is for giving described Data Update request route corresponding inverse relationship read-write server, comprise: according to the correspondence relationship information between the reverse dimensional information of preset configuration and each inverse relationship read-write server, inquire about inverse relationship read-write server corresponding to reverse dimensional information in described Data Update request, and give the inverse relationship read-write inquiring server by described Data Update request route.
Here, described inverse relationship read-write server, also, for after receiving the Data Update request of the reverse mapping relations of described renewal, upgrade the failure of local oppositely mapping relations, to described positive relationship read-write server, return to reverse mapping relations and upgrade replying unsuccessfully; Described positive relationship read-write server, also upgrades replying unsuccessfully for receiving described reverse mapping relations, to user terminal return data, upgrades failed response.
Here, described positive relationship read-write server, also, for receiving after described reverse mapping relations upgrade replying unsuccessfully, to inverse relationship interface message processor (IMP) initiation deletion user terminal, initiate the Data Update request of specified reverse mapping relations in Data Update request; Inverse relationship interface message processor (IMP), also initiates the Data Update request of the specified reverse mapping relations of Data Update request for receiving described deletion user terminal, and route is given corresponding inverse relationship read-write server; Inverse relationship read-write server, also for initiate the Data Update request of the specified reverse mapping relations of Data Update request according to described deletion user terminal, delete reverse mapping relations local, that described user terminal is initiated appointment in Data Update request.
Particularly, as shown in Figure 3, the query script of forward mapping relations is as follows: positive relationship interface message processor (IMP) receives the forward mapping relations inquiry request of user terminal initiation (as read forward request, can comprise and need the forward dimensional information of inquiry forward mapping relations, the address of user terminal etc.), according to the forward dimensional information comprising in described forward mapping relations inquiry request, by described forward mapping relations inquiry request route, give corresponding positive relationship read-write server; Positive relationship read-write server receives described forward mapping relations inquiry request (as read forward request, can comprise and need the forward dimensional information of inquiry forward mapping relations, the address of user terminal etc.), the forward mapping relations data that include corresponding forward dimensional information at local search, and the forward mapping relations data that inquire are returned to described positive relationship interface message processor (IMP); The forward mapping relations data that positive relationship interface message processor (IMP) returns to described positive relationship read-write server again return to user terminal.
Particularly, as shown in Figure 3, oppositely the query script of mapping relations is as follows: inverse relationship interface message processor (IMP) receives the reverse mapping relations inquiry request of user terminal initiation (as back read request, can comprise and need the reverse dimensional information of the reverse mapping relations of inquiry, the address of user terminal etc.), according to the reverse dimensional information comprising in described reverse mapping relations inquiry request, by described reverse mapping relations inquiry request route, give corresponding inverse relationship read-write server; Inverse relationship read-write server receives described reverse mapping relations inquiry request (as back read request, can comprise and need the reverse dimensional information of the reverse mapping relations of inquiry, the address of user terminal etc.), the reverse mapping relations data that include respective opposed dimensional information at local search, and the reverse mapping relations data that inquire are returned to described inverse relationship interface message processor (IMP); The reverse mapping relations data that inverse relationship interface message processor (IMP) returns to described inverse relationship read-write server again return to user terminal.
Particularly, as shown in Figure 3, the process of Data Update is as follows: positive relationship interface message processor (IMP) receives the Data Update request of user terminal initiation (as write request, can comprise user terminal indication and need the information such as the original two-way mapping relations of renewal and the address of the new two-way mapping relations that are updated to and user terminal or ID), according to the forward dimensional information comprising in described Data Update request, by described Data Update request route, give corresponding positive relationship read-write server;
Positive relationship read-write server receives described Data Update request (write request), initiates to increase the Data Update request (can comprise the information such as the address of reverse mapping relations after renewal and described positive relationship read-write server or ID) of reverse mapping relations to described inverse relationship interface message processor (IMP);
Contradirectional interface machine receives the Data Update request of the reverse mapping relations of described increase, according to reverse dimensional information wherein by described Data Update request route give corresponding inverse relationship read-write server (as, to corresponding inverse relationship read-write server, initiate write request, this write request can comprise information such as needing the address of the reverse mapping relations of increase and positive relationship read-write server or ID);
Inverse relationship read-write server receives described Data Update request (as write request), in this locality, add corresponding oppositely mapping relations and preserve corresponding oppositely mapping relations data, to described positive relationship read-write server, return to replying that reverse mapping relations are updated successfully;
What the described reverse mapping relations of positive relationship read-write server reception were updated successfully replys, the original forward mapping relations of this locality are updated to corresponding forward mapping relations, and to inverse relationship interface message processor (IMP), initiate to delete the Data Update request of original forward mapping relations;
Inverse relationship interface message processor (IMP) receives the oppositely Data Update request of mapping relations in the original two-way mapping relations of described deletion, by described Data Update request route, gives corresponding inverse relationship read-write server;
Inverse relationship read-write server receives the Data Update request of the original reverse mapping relations of described deletion, and local respective opposed mapping relations data are deleted.
The two-way mapping relations a<->b of take is updated to the renewal processing procedure of two-way mapping relations a<->c two-way mapping relations data as example describes in detail, wherein a belongs to A dimensional information, b/c belongs to B dimensional information, specifically can comprise the steps:
Step 1: user terminal initiates a<->b to be updated to the Data Update request of a<->c, sends to positive relationship interface message processor (IMP);
Particularly, described Data Update request can be write request, includes the mapping relations after original mappings relation and renewal in this write request.In the present embodiment, in described write request, include the mapping relations a<->c after original mapping relations a<->b and renewal.
Step 2: positive relationship interface message processor (IMP) receives described Data Update request, according to the A dimensional information a that needs to upgrade mapping relations in described Data Update request, is routed to described Data Update request on corresponding bottom positive relationship read-write server.
In practical application, in each positive relationship read-write server of positive relationship interface message processor (IMP) and bottom, be provided with the address of each positive relationship read-write server or the correspondence relationship information between ID and the appointment section of forward dimensional information (A dimensional information) in advance, positive relationship interface message processor (IMP) is according to this correspondence relationship information, can inquire and be responsible for the described positive relationship read-write server address that needs the A dimensional information a of renewal mapping relations, then the read-write of the positive relationship based on inquiring server address is given described positive relationship read-write server by described Data Update request route.
Step 3: positive relationship read-write server receives described Data Update request, discovery need to be changed two-way mapping relations, before upgrading local data, to send to inverse relationship interface message processor (IMP) for adding the Data Update request of reverse mapping relations c-> a, and etc. the result of reverse mapping relations c-> a to be added;
Here, positive relationship read-write server is after receiving described Data Update request, can also be according to the address of described pre-configured each positive relationship read-write server or the correspondence relationship information between ID and the appointment section of forward dimensional information (A dimensional information), judge whether described Data Update request is responsible for by oneself, if, perform step 3, otherwise, do not perform step 3, according to the user terminal information comprising in described Data Update request, to user terminal, return and upgrade failed response, and finish current flow process.
Particularly, positive relationship read-write server judges needs to upgrade the A dimensional information a of mapping relations whether in self being responsible for the scope of appointment section A dimensional information in described Data Update request, if, judge that described Data Update request is responsible by oneself, otherwise, judge that described Data Update request should be responsible by oneself.
Step 4: inverse relationship interface message processor (IMP) receives described for adding the Data Update request of reverse mapping relations c-> a, according to the information c of the B dimension in this Data Update request, by described Data Update request route, give corresponding inverse relationship read-write server;
In practical application, in each inverse relationship read-write server of inverse relationship interface message processor (IMP) and bottom, be provided with the address of each inverse relationship read-write server or the correspondence relationship information between ID and the appointment section of its reverse dimensional information (B dimensional information) in advance, positive relationship interface message processor (IMP) is according to this correspondence relationship information, can inquire the inverse relationship read-write server address of being responsible for B dimensional information c in the reverse mapping relations c-> of described interpolation a, inverse relationship based on inquiring read-write server address is given described inverse relationship read-write server by described Data Update request route again.
Step 5: for adding after the Data Update request of reverse mapping relations c-> a, judge whether to exist data collision situation described in inverse relationship read-write server receives, if so, continue step 6; Otherwise, continue step 7:
Here, inverse relationship read-write server is after receiving described Data Update request, can also be according to the address of described pre-configured each inverse relationship read-write server or the correspondence relationship information between ID and the appointment section of its reverse dimensional information (B dimensional information), judge whether described Data Update request is responsible for by oneself, if so, perform step 5, otherwise, do not perform step 5, directly enter step 7.
Particularly, inverse relationship read-write server judges needs to upgrade the B dimensional information c of mapping relations whether in self is responsible for the section of B dimensional information in described Data Update request, if, judge that described Data Update request is responsible by oneself, otherwise, judge that described Data Update request should be responsible by oneself.
Particularly, inverse relationship read-write server judges whether to exist the implementation procedure of data collision situation as follows: judge whether whether B dimensional information c exists, if B dimensional information c exists, further judge whether to exist the reverse mapping relations between B dimensional information c and other A dimensional information except a, if there are the reverse mapping relations between B dimensional information c and other A dimensional information except a, there is data collision in judgement; If current B dimensional information c does not exist or only exist the reverse mapping relations c-> a between B dimensional information c and A dimensional information a, there is not data collision in judgement.
Step 6: inverse relationship read-write server adds the mapping relations of c-> a in this locality, and return to successful respond to positive relationship read-write server, continue step 8;
Here, inverse relationship read-write server can be from the described address that gets the positive relationship read-write server that sends this Data Update request for adding the Data Update request of reverse mapping relations c-> a, address based on this positive relationship read-write server, inverse relationship read-write server can directly return and reply to positive relationship read-write server.
Step 7: inverse relationship read-write server returns to failure to positive relationship read-write server and replys.
Step 8: positive relationship read-write server receives replying that described inverse relationship read-write server returns, if unsuccessfully reply, directly to user terminal, return to failure and reply, to inverse relationship interface message processor (IMP), initiate to delete the Data Update request of c-> a mapping relations simultaneously; If successful respond, by the mapping relations of a-> b, be updated to a-> c, and return to successful respond to user terminal, to inverse relationship interface message processor (IMP), initiate to delete the Data Update request of b-> a mapping relations simultaneously.
Step 9: inverse relationship interface message processor (IMP) receives the Data Update request that described positive relationship read-write server is initiated, according to information c or the b of the B dimension in this Data Update request, gives corresponding inverse relationship read-write server by described Data Update request route;
Here, concrete routing procedure is similar to step 304, repeats no more.
Step 10: inverse relationship read-write server receives described Data Update request, and the mapping relations of b-> a or c-> a are deleted from this locality, finishes current flow process.
Here, inverse relationship read-write server is after receiving described Data Update request, can also be according to the address of described pre-configured each inverse relationship read-write server or the correspondence relationship information between ID and the appointment section of its reverse dimensional information (B dimensional information), judge whether described removal request is responsible for by oneself, if so, perform step 10, otherwise, do not perform step 10, directly enter step 7.
For example, for microblogging account number system, user both can pass through instant messaging account (A dimensional information) login, also can pass through microblogging account number (B dimensional information) login, user's instant messaging account and microblogging account number are all parts for microblogging account number system, and there are two-way mapping relations, also just say, by instant messaging account, can inquire user's microblogging account number, by microblogging account number, also can instead find user's instant messaging account, by above-mentioned flow process, can also need to upgrade the two-way mapping relations between microblogging account and instant messaging account according to user.
In summary, two-way mapping relations data processing method of the present invention and system, in positive relationship read-write server and inverse relationship read-write server, Data Update operation serialization separately, removed writing server of the prior art, the various bottleneck problems of the existing method existence of two-way mapping relations data processing have been solved, positive relationship is read and write to server and inverse relationship read-write server full decoupled simultaneously, positive relationship interface message processor (IMP) and inverse relationship interface message processor (IMP) can parallel expansions, have good flexible expansion.
In addition, the present invention has removed writing server of the prior art, also help and avoid problem in prior art, the problem includes: following problem: 1) the local full dose data due to writing server can only be stored on a station server, the in the situation that of user data rapid expanding, storage space unavoidably can become system bottleneck; 2) when positive relationship querying server and inverse relationship querying server need to increase Hot Spare newly, can cause the synchronized push amount of writing server with the doubly speed increment of level, by having a strong impact on writing server, process the ability of user's request, thereby cause data-handling efficiency low.
The above, be only preferred embodiment of the present invention, is not intended to limit protection scope of the present invention.

Claims (10)

1. a disposal route for two-way mapping relations data, is characterized in that, described method comprises:
Positive relationship interface message processor (IMP) receives the Data Update request that user terminal is initiated, and gives corresponding positive relationship read-write server by described Data Update request route;
Positive relationship read-write server receives described Data Update request, initiates to upgrade the Data Update request of reverse mapping relations to inverse relationship interface message processor (IMP);
Inverse relationship interface message processor (IMP) receives the Data Update request of the reverse mapping relations of described renewal, and route is given corresponding inverse relationship read-write server;
Inverse relationship read-write server receives the Data Update request of the reverse mapping relations of described renewal, upgrades local reverse mapping relations, and returns to described positive relationship read-write server replying that reverse mapping relations are updated successfully;
What the described reverse mapping relations of positive relationship read-write server reception were updated successfully replys, and upgrades local forward mapping relations.
2. the disposal route of two-way mapping relations data according to claim 1, it is characterized in that, the Data Update request of the reverse mapping relations of appointment in Data Update request is initiated in the Data Update request of the reverse mapping relations of described renewal for increasing user terminal;
After the forward mapping relations of described positive relationship read-write server update this locality, described method also comprises:
Positive relationship read-write server initiates to delete the Data Update request of original reverse mapping relations to inverse relationship interface message processor (IMP);
Inverse relationship interface message processor (IMP) receives the Data Update request of the original reverse mapping relations of described deletion, and route is given corresponding inverse relationship read-write server;
Inverse relationship read-write server, according to the Data Update request of the original reverse mapping relations of described deletion, is deleted local described original reverse mapping relations.
3. the disposal route of two-way mapping relations data according to claim 1 and 2, is characterized in that,
Described positive relationship interface message processor (IMP) is given corresponding positive relationship read-write server by described Data Update request route, comprise: positive relationship interface message processor (IMP) is according to the correspondence relationship information between the forward dimensional information of preset configuration and each positive relationship read-write server, inquire about positive relationship read-write server corresponding to forward dimensional information in described Data Update request, and give the positive relationship read-write inquiring server by described Data Update request route;
Described inverse relationship interface message processor (IMP) is given corresponding inverse relationship read-write server by described Data Update request route, comprise: inverse relationship interface message processor (IMP) is according to the correspondence relationship information between the reverse dimensional information of preset configuration and each inverse relationship read-write server, inquire about inverse relationship read-write server corresponding to reverse dimensional information in described Data Update request, and give the inverse relationship read-write inquiring server by described Data Update request route.
4. the disposal route of two-way mapping relations data according to claim 1 and 2, is characterized in that, after described inverse relationship read-write server receives the Data Update request of the reverse mapping relations of described renewal, described method also comprises:
Judge the current data collision situation that exists, upgrade the failure of local oppositely mapping relations, to described positive relationship read-write server, return to reverse mapping relations and upgrade replying unsuccessfully;
Positive relationship read-write server receives described reverse mapping relations and upgrades replying unsuccessfully, to user terminal return data, upgrades failed response.
5. the disposal route of two-way mapping relations data according to claim 4, is characterized in that, described positive relationship read-write server receives after described reverse mapping relations upgrade replying unsuccessfully, and described method also comprises:
Positive relationship read-write server initiates to delete to inverse relationship interface message processor (IMP) the Data Update request that user terminal is initiated specified reverse mapping relations in Data Update request;
Inverse relationship interface message processor (IMP) receives the Data Update request that described deletion user terminal is initiated specified reverse mapping relations in Data Update request, and route is given corresponding inverse relationship read-write server;
Inverse relationship read-write server is according to described Data Update request, deletes reverse mapping relations local, that described user terminal is initiated appointment in Data Update request.
6. for the treatment of a system for two-way mapping relations data, it is characterized in that, described system comprises: positive relationship interface message processor (IMP), the read-write of a plurality of positive relationship server, inverse relationship interface message processor (IMP) and a plurality of inverse relationship interface message processor (IMP); Wherein,
Described positive relationship interface message processor (IMP), the Data Update request of initiating for receiving user terminal, and give corresponding positive relationship read-write server by described Data Update request route;
Positive relationship read-write server, the Data Update request sending for receiving described positive relationship interface message processor (IMP), initiates to upgrade the Data Update request of reverse mapping relations to described inverse relationship interface message processor (IMP); And receive replying that reverse mapping relations that described inverse relationship read-write server returns are updated successfully, upgrade local forward mapping relations;
Inverse relationship interface message processor (IMP), for receiving the Data Update request of the reverse mapping relations of renewal of described positive relationship read-write server initiation, and route is given corresponding inverse relationship read-write server;
Inverse relationship read-write server, for receiving the Data Update request of the reverse mapping relations of described renewal, upgrades local reverse mapping relations, and returns to described positive relationship read-write server replying that reverse mapping relations are updated successfully.
7. according to claim 6 for the treatment of the system of two-way mapping relations data, it is characterized in that,
The Data Update request of the reverse mapping relations of appointment in Data Update request is initiated in the Data Update request of the reverse mapping relations of described renewal for increasing user terminal;
Described positive relationship read-write server, also, for after upgrading local forward mapping relations, initiates to delete the Data Update request of original reverse mapping relations to described inverse relationship interface message processor (IMP);
Inverse relationship interface message processor (IMP), also for receiving the Data Update request of the original reverse mapping relations of deletion of described positive relationship read-write server transmission, and route is given corresponding inverse relationship read-write server;
Inverse relationship read-write server, also, for according to the Data Update request of the original reverse mapping relations of described deletion, deletes local described original reverse mapping relations.
According to described in claim 6 or 7 for the treatment of the system of two-way mapping relations data, it is characterized in that,
Described positive relationship interface message processor (IMP) is for giving described Data Update request route corresponding positive relationship read-write server, comprise: according to the correspondence relationship information between the forward dimensional information of preset configuration and each positive relationship read-write server, inquire about positive relationship read-write server corresponding to forward dimensional information in described Data Update request, and give the positive relationship read-write inquiring server by described Data Update request route;
Described inverse relationship interface message processor (IMP) is for giving described Data Update request route corresponding inverse relationship read-write server, comprise: according to the correspondence relationship information between the reverse dimensional information of preset configuration and each inverse relationship read-write server, inquire about inverse relationship read-write server corresponding to reverse dimensional information in described Data Update request, and give the inverse relationship read-write inquiring server by described Data Update request route.
According to described in claim 6 or 7 for the treatment of the system of two-way mapping relations data, it is characterized in that, described inverse relationship read-write server, also for after receiving the Data Update request of the reverse mapping relations of described renewal, upgrade the failure of local oppositely mapping relations, to described positive relationship read-write server, return to reverse mapping relations and upgrade replying unsuccessfully;
Described positive relationship read-write server, also upgrades replying unsuccessfully for receiving described reverse mapping relations, to user terminal return data, upgrades failed response.
10. according to claim 9 for the treatment of the system of two-way mapping relations data, it is characterized in that,
Described positive relationship read-write server, also, for receiving after described reverse mapping relations upgrade replying unsuccessfully, initiates the Data Update request of specified reverse mapping relations in Data Update request to inverse relationship interface message processor (IMP) initiation deletion user terminal;
Inverse relationship interface message processor (IMP), also initiates the Data Update request of the specified reverse mapping relations of Data Update request for receiving described deletion user terminal, and route is given corresponding inverse relationship read-write server;
Inverse relationship read-write server, also for initiate the Data Update request of the specified reverse mapping relations of Data Update request according to described deletion user terminal, delete reverse mapping relations local, that described user terminal is initiated appointment in Data Update request.
CN201210256915.XA 2012-07-24 2012-07-24 The processing method and system of a kind of Bidirectional-mappindatalation datalation Active CN103577422B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210256915.XA CN103577422B (en) 2012-07-24 2012-07-24 The processing method and system of a kind of Bidirectional-mappindatalation datalation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210256915.XA CN103577422B (en) 2012-07-24 2012-07-24 The processing method and system of a kind of Bidirectional-mappindatalation datalation

Publications (2)

Publication Number Publication Date
CN103577422A true CN103577422A (en) 2014-02-12
CN103577422B CN103577422B (en) 2017-11-14

Family

ID=50049227

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210256915.XA Active CN103577422B (en) 2012-07-24 2012-07-24 The processing method and system of a kind of Bidirectional-mappindatalation datalation

Country Status (1)

Country Link
CN (1) CN103577422B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112765247A (en) * 2021-01-04 2021-05-07 光大兴陇信托有限责任公司 Interface metadata management method, device and equipment based on hybrid mapping

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101145991A (en) * 2007-07-31 2008-03-19 中兴通讯股份有限公司 A multi-manufacturer alarm management system and alarm method in telecommunication management network
US20090077121A1 (en) * 2006-11-10 2009-03-19 The Mathworks, Inc. System and method for interoperating with foreign objects from a host computing environment
CN102202073A (en) * 2010-03-24 2011-09-28 杭州华三通信技术有限公司 Distributed system and data synchronization method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090077121A1 (en) * 2006-11-10 2009-03-19 The Mathworks, Inc. System and method for interoperating with foreign objects from a host computing environment
CN101145991A (en) * 2007-07-31 2008-03-19 中兴通讯股份有限公司 A multi-manufacturer alarm management system and alarm method in telecommunication management network
CN102202073A (en) * 2010-03-24 2011-09-28 杭州华三通信技术有限公司 Distributed system and data synchronization method thereof

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
KARVOUNARAKIS G等: "Bidirectional Mappings for Data and Update Exchange", 《WEBDB》 *
白昱凡: "基于eMTM的XML与关系数据库双向映射策略", 《微计算机信息》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112765247A (en) * 2021-01-04 2021-05-07 光大兴陇信托有限责任公司 Interface metadata management method, device and equipment based on hybrid mapping
CN112765247B (en) * 2021-01-04 2023-02-21 光大兴陇信托有限责任公司 Interface metadata management method, device and equipment based on hybrid mapping

Also Published As

Publication number Publication date
CN103577422B (en) 2017-11-14

Similar Documents

Publication Publication Date Title
CN102571991B (en) Multistage-mapping-based large-scale multi-copy distributed storage system and application method thereof
CN107231395A (en) Date storage method, device and system
CN103138912B (en) Method of data synchronization and system
CN102739720A (en) Distributed cache server system and application method thereof, cache clients and cache server terminals
CN101127714B (en) A route management method and device for wireless mesh network
CN102170365A (en) Method and system for realizing hot deployment of software system
CN102333130A (en) Method and system for accessing cache server and intelligent cache scheduler
CN110138606A (en) Capacitor network configuration method and system
CN105554121A (en) Method and system for realizing load equalization of distributed cache system
CN104253836B (en) Image display method, mobile terminal based on wireless network and system
CN103095758A (en) Distributed file system and file data processing method thereof
CN101883111A (en) Accounting server for processing online business log and method thereof
CN103378919A (en) Frame information (FI) message transmission method and apparatus
CN103326925B (en) A kind of information push method and device
CN104202420A (en) Method and device for supporting expansion of internet-of-things middleware cluster
CN109508254A (en) A kind of data reconstruction method and device
CN102624932A (en) Index-based remote cloud data synchronizing method
CN102123161A (en) Distributed mobility management method and distributed mobility management system
CN103577422A (en) Bidirectional-mapping-relation data processing method and system
CN103259824A (en) Method and device for synchronizing data route in distributed data storage system
CN102647364B (en) Method, device and system for Mesh network routing
CN102982033A (en) Small documents storage method and system thereof
CN111737052A (en) Distributed object storage system and method
CN107291579A (en) A kind of metadata cluster File Snapshot method based on static subtree subregion
CN101150545B (en) A data distribution method multi-module data configuration of media gateway

Legal Events

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

Effective date of registration: 20180921

Address after: 100190 Beijing Haidian District Zhichun Road 49 No. 3 West 309

Patentee after: Tencent cloud computing (Beijing) limited liability company

Address before: 518044 East 403 room, Sai Ge science and Technology Park, Futian District Zhenxing Road, Shenzhen, Guangdong, China, 2

Patentee before: Tencent Technology (Shenzhen) Co., Ltd.

TR01 Transfer of patent right