CN104750746A - Service data processing method and device and distributed internal memory database system - Google Patents

Service data processing method and device and distributed internal memory database system Download PDF

Info

Publication number
CN104750746A
CN104750746A CN201310749715.2A CN201310749715A CN104750746A CN 104750746 A CN104750746 A CN 104750746A CN 201310749715 A CN201310749715 A CN 201310749715A CN 104750746 A CN104750746 A CN 104750746A
Authority
CN
China
Prior art keywords
business datum
memory database
user
business
described user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310749715.2A
Other languages
Chinese (zh)
Inventor
沈铖
沈尧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Group Shanghai Co Ltd
Original Assignee
China Mobile Group Shanghai 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 China Mobile Group Shanghai Co Ltd filed Critical China Mobile Group Shanghai Co Ltd
Priority to CN201310749715.2A priority Critical patent/CN104750746A/en
Publication of CN104750746A publication Critical patent/CN104750746A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a service data processing method and device and a distributed internal memory database system. In the distributed internal memory database system, storage of various service internal memory databases can be reduced as the service data of users are stored in distributed internal memory database, and resultantly processing pressure of the system processing the service data is lowered. For the service data of the users in the distributed internal memory database, the distributed internal memory database system determines storage information of the service data of the users in the service internal memory databases of the distributed internal memory database by searching route internal memory databases after processing requests for updating the service data of the users, and according to the corresponding service internal memory databases of the storage information, the service data of the users is updated by an incremental method, so that accurate affair processing of the service data stored in the various service internal memory databases in the distributed internal memory database is realized.

Description

The disposal route of business datum, device and distributed memory database system
Technical field
The present invention relates to business support technical field, espespecially a kind of disposal route of business datum, device and distributed memory database system.
Background technology
At present, in order to business support system can carry out inquiring about and judge process fast, billing and accounting system often needs to build a set of memory database (Memory Data Base, MDB) system, to utilize the high efficiency increase system efficiency of internal storage access.In the construction of memory database, be generally split as several memory database according to type of service, such as: memory database A deposits the product that user orders, and memory database B deposits the bill information etc. of user.
Along with the increase of user and the development of business, data volume is more and more huger, and the requirement for memory size is also more and more higher.And existing technology by same class deposit data in a memory database, this requires that the internal memory of individual server is increasing, and industry also may not have the server of scale internal memory like this, though exist, its buy and maintenance cost also very high.
On the other hand, so huge internal memory, its backup and release time can be very very long.And for telecom operators, once meet with system crash, need timely recovery system.Very long release time, service disconnection can be caused comparatively of a specified duration, affect the satisfaction of user, and owing to cannot overdraw user be shut down in time, also can affect the economic interests of self.
Summary of the invention
Embodiments providing a kind of disposal route of business datum, device and distributed memory database system, processing with the business datum realized storing in distributed memory database.
The disposal route of a kind of business datum that the embodiment of the present invention provides, comprising:
What receive application program transmission carries the process request upgraded the business datum of at least one user;
The storage information of the business datum of described user in each business memory database of distributed memory database is determined in route memory database;
In the business memory database of business datum storing described user, the mode of increment is adopted to carry out update process to the business datum of described user;
After the described business datum processing users all in request has all upgraded, the service data updating state according to described user has returned corresponding data processed result to described application program.
The disposal route of the above-mentioned business datum that the embodiment of the present invention provides, after the process request of service data updating receiving user, by searching the mode of route memory database, determine the storage information of the business datum of user in each business memory database of distributed memory database; According to storage information in the business memory database of correspondence, the mode of increment is adopted to carry out update process, to realize carrying out issued transaction accurately to the business datum of business internal storage data library storage each in distributed memory database to the business datum of user respectively.
Preferably, in the above-mentioned disposal route that the embodiment of the present invention provides, the service data updating state according to described user returns corresponding data processed result to described application program, specifically comprises:
When the business datum of whole described user is all updated successfully, to the successful result of described application program return data process;
When the service data updating failure of part or all of described user, to the result of described application program return data process failure.
Preferably, in the above-mentioned disposal route that the embodiment of the present invention provides, when the service data updating failure of the described user of part, also comprise:
Adopt the mode of increment reverse process, reverse update process is carried out to the business datum of the user be updated successfully.
Preferably, in the above-mentioned disposal route that the embodiment of the present invention provides, when determining the storage information of the business datum of described user in each business memory database of distributed memory database in route memory database, also comprise: obtain the version number that described user stores in described route memory database;
In the business memory database of business datum storing described user, when adopting the mode of increment to carry out update process to the business datum of described user, also comprise: obtain the version number that described user stores in described business memory database;
Described disposal route also comprises: when determining that the version number that described user stores in described route memory database and the version number stored in described business memory database are inconsistent, store information according to the business datum of user corresponding to version number up-to-date in both, information or the business datum of described user that stores in described business memory database are stored to the business datum of the described user stored in described route memory database and stores information and carry out renewal rewards theory.
Preferably, in the above-mentioned disposal route that the embodiment of the present invention provides, also comprise:
Receive the change user information request that application program sends, in described route memory database, adopt the mode of adding users information to change user profile;
According to point storehouse rule of the distributed memory database preset, judge that the user after upgrading user profile is the need of carrying out stock relocation process, if, in distributed memory database, stock relocation process is carried out to the business datum of user, and the version number of user after described stock relocation process of upgrading in route memory database and business memory database.
Preferably, in the above-mentioned disposal route that the embodiment of the present invention provides, in the business memory database of business datum storing described user, before update process is carried out to the mode of the business datum employing increment of described user, also comprise:
In described business memory database, determine whether the business datum of the described user stored exists a point account business datum;
When determining that the business datum of described user exists point account business datum, judge whether the business datum of the business datum paying out user that described point account business datum is corresponding and described user is stored in same business memory database, if not, the original service data in the business datum of described user are locked process.
Preferably, in the above-mentioned disposal route that the embodiment of the present invention provides, the business datum of the business datum paying out user that described point of account business datum is corresponding and described user is stored in different business memory database, carries out update process, specifically comprise the business datum of described user:
Respectively update process is carried out to the original service data in the business datum of described user and a point account business datum;
The business datum paying out user described in corresponding to described point of account business datum carries out update process.
Preferably, in the above-mentioned disposal route that the embodiment of the present invention provides, the business datum of the business datum paying out user that described point of account business datum is corresponding and described user is stored in different business memory database, after carrying out update process, also comprises the business datum of described user:
Unblock process is carried out to the original service data in the business datum of described user.
The treating apparatus of a kind of business datum that the embodiment of the present invention provides, comprising:
Receiving element, for receive application program send carry the process request that the business datum of at least one user is upgraded;
User profile query unit, determines the storage information of the business datum of described user in each business memory database of distributed memory database in route memory database;
Service data updating unit, in the business memory database of business datum storing described user, adopts the mode of increment to carry out update process to the business datum of described user;
Upgrade feedback unit, for after the described business datum processing users all in request has all upgraded, the service data updating state according to described user has returned corresponding data processed result to described application program.
Preferably, in the above-mentioned treating apparatus that the embodiment of the present invention provides, described renewal feedback unit, specifically for when the business datum of whole described user is all updated successfully, to the successful result of described application program return data process; When the service data updating failure of part or all of described user, to the result of described application program return data process failure.
Preferably, in the above-mentioned treating apparatus that the embodiment of the present invention provides, described service data updating unit, also for when the service data updating of the described user of part is failed, adopt the mode of increment reverse process, reverse update process is carried out to the business datum of the user be updated successfully.
Preferably, in the above-mentioned treating apparatus that the embodiment of the present invention provides, also comprise: version number's updating block;
Described user profile query unit, time also for determining the storage information of the business datum of described user in each business memory database of distributed memory database in route memory database, obtain the version number that described user stores in described route memory database, in the business memory database of business datum storing described user, when adopting the mode of increment to carry out update process to the business datum of described user, obtain the version number that described user stores in described business memory database;
Described version number updating block, for when determining that the version number that described user stores in described route memory database and the version number stored in described business memory database are inconsistent, store information according to the business datum of user corresponding to version number up-to-date in both, information or the business datum of described user that stores in described business memory database are stored to the business datum of the described user stored in described route memory database and stores information and carry out renewal rewards theory.
Preferably, in the above-mentioned treating apparatus that the embodiment of the present invention provides, described receiving element, also for receiving the change user information request that application program sends;
Described version number updating block, also for adopting the mode of adding users information to change user profile in described route memory database; According to point storehouse rule of the distributed memory database preset, judge that the user after upgrading user profile is the need of carrying out stock relocation process, if, in distributed memory database, stock relocation process is carried out to the business datum of user, and the version number of user after described stock relocation process of upgrading in route memory database and business memory database.
Preferably, in the above-mentioned treating apparatus that the embodiment of the present invention provides, described service data updating unit, also for adopting before the mode of increment carries out update process to the business datum of described user, in described business memory database, determine whether the business datum of the described user stored exists a point account business datum; When determining that the business datum of described user exists point account business datum, judge whether the business datum of the business datum paying out user that described point account business datum is corresponding and described user is stored in same business memory database, if not, the original service data in the business datum of described user are locked process.
Preferably, in the above-mentioned treating apparatus that the embodiment of the present invention provides, described service data updating unit, specifically for when the business datum of the business datum paying out user corresponding to described point of account business datum and described user is stored in different business memory database, respectively update process is carried out to the original service data in the business datum of described user and a point account business datum; The business datum paying out user described in corresponding to described point of account business datum carries out update process.
Preferably, in the above-mentioned treating apparatus that the embodiment of the present invention provides, described service data updating unit, also for when the business datum of the business datum paying out user corresponding to described point of account business datum and described user is stored in different business memory database, after update process is carried out to the business datum of described user, unblock process is carried out to the original service data in the business datum of described user.
A kind of distributed memory database system that the embodiment of the present invention provides, comprising:
Route memory database, for storing the storage information of business datum in distributed memory database of user;
Distributed memory database, comprises multiple business memory database, and each described business memory database carries out the business datum of the user behind point storehouse according to point storehouse rule preset for storing;
Service data processing apparatus, for receive application program send carry the process request that the business datum of at least one user is upgraded; The storage information of the business datum of described user in each business memory database of distributed memory database is determined in route memory database; In the business memory database of business datum storing described user, the mode of increment is adopted to carry out update process to the business datum of described user; After the described business datum processing users all in request has all upgraded, the service data updating state according to described user has returned corresponding data processed result to described application program.
The above-mentioned distributed memory database system that the embodiment of the present invention provides, business datum due to user is stored in distributed memory database, namely the data of all users are stored in multiple distributed memory database, therefore can reduce the memory space of each distributed memory database, thus processing pressure when this distributed memory database system processes business datum can be reduced.This distributed memory database system, to being stored in the business datum of user in distributed memory database by adopting after the process request of service data updating receiving user, determines the storage information of the business datum of user in each business memory database of distributed memory database by searching route memory database; According to storage information in the business memory database of correspondence, respectively business data processing is carried out to the method that the business datum of user adopts the mode of increment to carry out update process, achieve and issued transaction is accurately carried out to the business datum of business internal storage data library storage each in distributed memory database.
Preferably, in the above-mentioned distributed memory database system that the embodiment of the present invention provides, described route memory database, also for storing the version number of described user in described route memory database;
Each described business memory database, also for storing the version number of described user in described business memory database.
Accompanying drawing explanation
One of process flow diagram of the disposal route of the business datum that Fig. 1 provides for the embodiment of the present invention;
The process flow diagram of the disposal route of the business datum that Fig. 2 provides for example one;
The process flow diagram two of the disposal route of the business datum that Fig. 3 provides for the embodiment of the present invention;
The process flow diagram of the disposal route of the business datum that Fig. 4 provides for example two;
The structural representation of the treating apparatus of the business datum that Fig. 5 provides for the embodiment of the present invention;
The structural representation of the distributed memory database system that Fig. 6 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing, the embodiment of the disposal route of the business datum that the embodiment of the present invention provides, treating apparatus and distributed memory database system is described in detail.
At present, existing memory database system is generally centralized memory database system, by same class deposit data in a memory database, this requires that the internal memory of individual server is increasing, and industry also may not have the server of scale internal memory like this, even if exist, its buy and maintenance cost also very high.And so huge internal memory, its backup and release time can be very very long.And for telecom operators, once meet with system crash, need timely recovery system.Very long release time, service disconnection can be caused comparatively of a specified duration, affect the satisfaction of user, and owing to cannot overdraw user be shut down in time, also can affect the economic interests of self.
The embodiment of the present invention is applied to distributed memory database system, and equipment relevant to the embodiment of the present invention in this system mainly comprises: route memory database, comprises the distributed memory database of multiple business memory database, and service data processing apparatus.Based on said system framework, the disposal route of a kind of business datum that the embodiment of the present invention provides, as shown in Figure 1, specifically comprises the following steps:
What S101, reception application program sent carries the process request upgraded the business datum of at least one user;
S102, in route memory database, determine the storage information of the business datum of this user in each business memory database of distributed memory database;
S103, in the business memory database of business datum storing user, the mode of increment is adopted to carry out update process to the business datum of this user;
After the business datum of S104, users all in this process request has all upgraded, the service data updating state according to this user has returned corresponding data processed result to application program.
It should be noted that, above-mentioned business datum generally comprises the billing data, ordering information, fund information etc. of user, does not limit at this.
The disposal route of the above-mentioned business datum that the embodiment of the present invention provides, after the process request of service data updating receiving user, by searching the mode of route memory database, determine the storage information of the business datum of user in each business memory database of distributed memory database; According to storage information in the business memory database of correspondence, the mode of increment is adopted to carry out update process, to realize carrying out issued transaction accurately to the business datum of business internal storage data library storage each in distributed memory database to the business datum of user respectively.
Particularly, in the above-mentioned disposal route that the embodiment of the present invention provides, the mode of increment is adopted to carry out update process to the business datum of user, and do not adopt the mode covering former business datum to carry out update process, can carry out an increment reverse operating to the business datum upgraded in order to follow-up, when carrying out increment reverse operating, directly the business datum increased before can be deleted, if adopt the mode covering former business datum to carry out update process, just need to record original business datum when so carrying out reverse operating, and when business datum is concurrent, there will be and cannot determine how to carry out reverse operating.
Below the specific implementation of above steps is described in detail.
Particularly, in the above-mentioned disposal route that the embodiment of the present invention provides, step S104 returns corresponding data processed result according to the service data updating state of this user to application program, specifically comprises:
When the business datum of whole user is all updated successfully, to the successful result of application program return data process;
When the service data updating failure of part or all of user, to the result of application program return data process failure.
Further, in order to ensure when carrying out update process to the business datum of multiple user, the consistance of business data processing in each business memory database, in the above-mentioned disposal route that the embodiment of the present invention provides, when the service data updating of step S104 partial user is failed, following operation can also be performed:
Adopt the mode of increment reverse process, reverse update process is carried out to the business datum of the user be updated successfully.
Particularly, in the specific implementation, when the service data updating failure of certain customers, reverse process script can be generated to the business datum of the user be updated successfully, negative sense operation is carried out to the business datum increased, namely deletes the business datum increased in the business datum of the user be updated successfully.
Illustrate below by a concrete example, how the above-mentioned disposal route that the embodiment of the present invention provides, when carrying out update process to the business datum of multiple user, guarantees the consistance of business data processing between multiple business memory database.
Example one:
Suppose there is a business, such as divide account business, need to carry out update process to the business datum of user S1 and user S2 simultaneously, and the business datum of user S1 is stored in business memory database M1, the business datum of user S2 is stored in business memory database M2, update process is carried out to the business datum of user S1 and user S2, as shown in Figure 2, specifically comprises the following steps:
S201, application program (APP) are initiated to call;
In the specific implementation, now application program is also ignorant, and it is just encapsulated into the business datum carried the business datum of user S1 and user S2 carries out update process in same update process request, initiates to call.
S202, application call system abstraction layer (SAL);
Particularly, in the specific implementation, in order to the interface features of isolated concrete memory database product, make application program can use the memory database product of interface, application call system abstraction layer (SAL), is performed the process request carried the business datum of user S1 and user S2 upgrades by the mode of an interface interchange.
What S203, reception application program sent carries the process request upgraded the business datum of user S1 and user S2;
S204, access route memory database;
Particularly, in the specific implementation, access route memory database, the storage information of business datum in each business memory database of user S1 and user S2 is obtained in route memory database, find that the business datum of user S1 in update process request is stored in business memory database M1, the business datum of user S2 is stored in business memory database M2.
S205, storage information according to above-mentioned acquisition, carry out data to update process request and unpack;
Particularly, in the specific implementation, update process request is split into 2 business data processing bags, one is comprise the business data processing bag upgraded the business datum of user S1, and another comprises the business data processing bag upgraded the business datum of user S2.
S206, use comprise the business data processing bag upgraded the business datum of user S1, adopt the mode of increment to carry out update process to the business datum of the user S1 in business memory database M1;
The service data updating success of S207, business memory database M1, returns successfully;
S208, use comprise the business data processing bag upgraded the business datum of user S2, adopt the mode of increment to carry out update process to the business datum of the user S1 in business memory database M2;
The service data updating failure of S209, business memory database M2, returns failure;
Particularly, in the specific implementation, when supposing that the business datum of business memory database M1 and business memory database M2 is all updated successfully, to the successful result of application program return data process; When supposing that the business datum of business memory database M1 and business memory database M2 all upgrades failed, to the result of application program return data process failure.
The failure that S210, the success returned according to business memory database M1 and business memory database M2 return, carries out transaction validation;
Particularly, in the specific implementation, note abnormalities, therefore need to initiate exception handling.
S211, business memory database M2 return failure, generate the reverse process script for the business datum of user S1 in business memory database M1, carry out increment reverse process to the business datum of user S1;
S212, reverse update process success for the business datum of user S1 in business memory database M1, return the success of reverse update process;
S213, system abstraction layer arrange error code, to application program return data process failure;
S214, application program carry out corresponding error handle according to the error code returned.
Particularly, in the specific implementation, when expense gathers, need to carry out the single process of mistake.
By above-mentioned steps S201 to step S214, achieving when carrying out update process to the business datum of user S1 and user S2, ensure that the consistance of business data processing between business memory database M1 and business memory database M2.
Particularly, reverse update process failure (probability of generation is less) of the business datum of user S1 in step S212 is for business memory database M1, carry out the record of error message, the mode of the data of mistake being carried out to file record carries out recorded information, so that subsequent treatment.
Particularly, in the specific implementation, because the probability itself business datum of user in single business memory database being carried out to update process failure is very little, if carry out update process success to the business datum of user in business memory database M1, this time the probability that the business datum of user in business memory database M1 carries out reverse update process failure is equal to and the probability of update process failure is carried out to the business datum of user in single business memory database simultaneously.
To sum up, the appearance of the inconsistent situation of business data processing between multiple business memory database is reduced by high degree after negative sense operation, illustrate that negative sense operates the probability that between latter two business memory database, business data processing is inconsistent especially by table 1, in table 1, M operation failure rate refers to carry out the probability of update process failure to the business datum of user in single business memory database simultaneously, suppose that M operation failure rate is 1/10000, M1 upgrades mortality and refers to carry out the probability of reverse update process failure to the business datum of user in business memory database M1, M2 upgrades mortality and refers to carry out the probability of reverse update process failure to the business datum of user in business memory database M2, after negative sense compensates, inconsistent probability refers to the probability that after negative sense operation, between business memory database M1 and business memory database M2, business data processing is inconsistent, suppose.
Table 1
Preferably, in order to ensure the consistance of user profile between route memory database and distributed memory database, in the above-mentioned disposal route that the embodiment of the present invention provides, when step S102 determines the storage information of the business datum of this user in each business memory database of distributed memory database in route memory database, also comprise: obtain the version number that this user stores in route memory database.
Store in step S103 in the business memory database of the business datum of this user, when adopting the mode of increment to carry out update process to the business datum of this user, can also comprise: obtain the version number that user stores in business memory database.
In order to ensure the consistance of user profile between route memory database and multiple distributed memory database, the disposal route of above-mentioned business datum can also comprise: when determining that the version number that user stores in route memory database and the version number stored in business memory database are inconsistent, store information according to the business datum of user corresponding to version number up-to-date in both, information or the business datum of user that stores in business memory database are stored to the business datum of the user stored in route memory database and stores information and carry out renewal rewards theory.
Particularly, information is stored according to the business datum of user corresponding to version number up-to-date in both, store information or the business datum of user that stores in business memory database to the business datum of the user stored in route memory database to store information and carry out renewal rewards theory, illustrated by an example, such as, the version number that user S1 stores in route memory database is V1.0, the version number that user S1 stores in business memory database is V2.0, now, illustrate that the business datum of user S1 in business memory database is the business datum after latest update, and the business datum storage information that user S1 stores in route memory database is not latest update, therefore the version number to user S1 stores in route memory database is needed to upgrade.
Preferably, in the above-mentioned disposal route that the embodiment of the present invention provides, as shown in Figure 3, can also comprise the steps:
The change user information request that S301, reception application program send; Such as, the change user information request received is the account of user S1 changed;
S302, in route memory database, the mode of adding users information is adopted to change user profile;
S303, point storehouse rule according to the distributed memory database preset, judge that the user after upgrading user profile is the need of carrying out stock relocation process, if so, performs step S304; If not, end process; Such as distributed data base carries out a point storehouse in advance according to account, and S1 needed to be stored in business memory database M1 before account changes, and needed to be stored in business memory database M2 after change;
S304, in distributed memory database, stock relocation process is carried out to the business datum of user, and the version number of user after stock relocation process of upgrading in route memory database and business memory database.Such as, the data of adding users S1 in business memory database M2, and the version number of S1 in route memory database is upgraded to V2.0 from V1.0, in business memory database M2, also the version number of user S1 is upgraded to V2.0 from V1.0 simultaneously.
Particularly, in the specific implementation, a point storehouse rule for the distributed memory database preset can be carry out a point storehouse according to the account of user, also can be carry out a point storehouse according to phone number or other information, cut both ways, do not limit at this.Preferably, in the specific implementation, for the ease of Service Data Management, generally a point storehouse is carried out with the account of user.
Preferably, in order to carry out inter-library process to business datum exactly, in the above-mentioned disposal route that the embodiment of the present invention provides, in the business memory database of business datum storing this user, the mode of step S103 to the business datum employing increment of this user also comprises before carrying out update process:
In business memory database, determine whether the business datum of the user stored exists a point account business datum, and such as determine whether the business datum of user S1 exists a point account business datum, the business datum of user S1 is stored in business memory database M1;
When determining that the business datum of this user exists point account business datum, judge whether the business datum of the business datum paying out user corresponding to point account business datum and user is stored in same distributed memory database, such as, judge whether the business datum paying out user S2 corresponding to point account business datum of user S1 is also stored in business memory database M1; If not, to lock process to the original service data in the business datum of this user, the business datum such as paying out user S2 is stored in business memory database M2, to lock process to the original service data in point account business datum of user S1.
In the specific implementation, point account business datum is generally as the redundant data of original service data, and with the billing data of giving out money according to a certain proportion that the form recording user of the table CRasDetachBill that gives out money according to a certain proportion is corresponding, table of giving out money according to a certain proportion can be as shown in table 2 below.
Table 2
Field name Type Chinese describes Constraint
mint8 bill_id Bill is numbered
mint8 resource_id Device id HASH
mint8 default_acct_id Acquiescence disbursement account HASH
mint8 pay_acct_id Actual delivery account
mint4 begin_date Start time account phase
mint4 end_date End time account phase
mint4 current_date Current date
mint2 waif_flag Dereliction identifies
mint2 region_code Districts and cities' code
Preferably, in order to realize the feasibility of the inter-library operation caused by distributed memory database, in the above-mentioned disposal route that the embodiment of the present invention provides, the business datum of point business datum and this user of paying out user that account business datum is corresponding is stored in different business memory database, update process is carried out to the business datum of this user, specifically comprises:
Respectively update process is carried out to the original service data in the business datum of this user and a point account business datum, such as, respectively update process is carried out to original service data in the business datum of user S1 and a point account business datum;
The business datum of paying out user corresponding to point account business datum carries out update process, such as, carry out update process to user S2 business datum.
Preferably, in order to carry out inter-library process to business datum exactly, in the above-mentioned disposal route that the embodiment of the present invention provides, the business datum of point business datum and this user of paying out user that account business datum is corresponding is stored in different distributions formula memory database, after update process is carried out to the business datum of this user, also comprise:
Unblock process is carried out to the original service data in the business datum of this user.
Illustrate below by a concrete example, the above-mentioned disposal route that the embodiment of the present invention provides is the accuracy of guaranteeing to carry out business datum inter-library process.
Example two:
If in distributed memory database, user occurs dividing account, user S1 is former payment user, and its business datum is stored in business memory database M1; The business datum paying out user S2 of user S1 is stored in business memory database M2, carries out the process of renewal bill, as shown in Figure 4, specifically comprise the following steps the business datum of user S1:
S401, application program initiate the process request of the real-time bill of inquiring user S1;
S402, in route memory database M0, initiate the request of the storage information of the business datum of inquiring user S1;
S403, route memory database M0 determine that the business datum of user S1 is stored in business memory database M1, return the storage information of the business datum of user S1;
S404, initiate the service data request of inquiring user S1 to business memory database M1;
S405, lock to the original service data in the business datum of user S1 process, and the original service data of inquiring user S1 and a point account business datum;
Original service data in the business datum of S406, business memory database M1 feedback user S1 and point account business datum;
S407, return Query Result to application program;
S408, application program complete after, point account preferential to user S1 current ticket expense cumulative sum etc. calculate according to the Query Result returned, and generate request user S1 and the business datum of paying out user S2 being carried out to update process;
S409, application program send request user S1 and the business datum of paying out user S2 being carried out to update process;
S410, from route memory database M0 the storage information of the business datum of inquiring user S1 and user S2;
S411, return the storage information of the business datum of user S1 and user S2;
The request of S412, fractionation bill incremental expense Data Update;
S413, the original service data of user S1 and a point account business datum to be upgraded respectively, unblock process is carried out to user S1 original service data;
S414, business memory database M1 return update process and complete;
S415, the business datum of user S2 to be upgraded;
Preferably, in the specific implementation, when the business datum of user S2 being upgraded, also can lock to the business datum of user S2 and process and unlock, not limit at this.
S416, business memory database M2 return update process and complete;
S417, return bill update process to application program and complete.
By above-mentioned steps S401 to step S417, achieve user S1 to pay out with it user S2 be stored in different business memory database time, the process of renewal bill is carried out to the business datum of user S1.
Based on same inventive concept, the embodiment of the present invention additionally provides a kind for the treatment of apparatus of business datum, as shown in Figure 5: comprising:
Receiving element 001, for receive application program send carry the process request that the business datum of at least one user is upgraded;
User profile query unit 002, determines the storage information of the business datum of user in each business memory database of distributed memory database in route memory database;
Service data updating unit 003, in the business memory database of business datum storing this user, adopts the mode of increment to carry out update process to the business datum of user;
Upgrade feedback unit 004, after all having upgraded in the business datum processing users all in request, the service data updating state according to this user has returned corresponding data processed result to application program.
Preferably, in the above-mentioned treating apparatus that the embodiment of the present invention provides, upgrade feedback unit 004, specifically for when the business datum of whole user is all updated successfully, to the successful result of application program return data process; When the service data updating failure of part or all of user, to the result of described application program return data process failure.
Preferably, in the above-mentioned treating apparatus that the embodiment of the present invention provides, service data updating unit 003, also for when the service data updating of certain customers is failed, adopt the mode of increment reverse process, reverse update process is carried out to the business datum of the user be updated successfully.
Preferably, in the above-mentioned treating apparatus that the embodiment of the present invention provides, also comprise: version number's updating block;
User profile query unit, time also for determining the storage information of the business datum of user in each business memory database of distributed memory database in route memory database, obtain the version number that this user stores in route memory database, in the distributed memory database of business datum storing this user, when adopting the mode of increment to carry out update process to the business datum of this user, obtain the version number that this user stores in business memory database;
Version number's updating block, for when determining that the version number that this user stores in route memory database and the version number stored in business memory database are inconsistent, store information according to the business datum of user corresponding to version number up-to-date in both, information or the business datum of this user that stores in business memory database are stored to the business datum of this user stored in route memory database and stores information and carry out renewal rewards theory.
Preferably, in the above-mentioned treating apparatus that the embodiment of the present invention provides, receiving element 001, also for receiving the change user information request that application program sends;
Version number's updating block, also for adopting the mode of adding users information to change user profile in route memory database; According to point storehouse rule of the distributed memory database preset, judge that the user after upgrading user profile is the need of carrying out stock relocation process, if, in distributed memory database, stock relocation process is carried out to the business datum of user, and the version number of user after this stock relocation process of upgrading in route memory database and business memory database.
Preferably, in the above-mentioned treating apparatus that the embodiment of the present invention provides, service data updating unit 003, also for adopting before the mode of increment carries out update process to the business datum of this user, in business memory database, determine whether the business datum of this user stored exists a point account business datum; When determining that the business datum of this user exists point account business datum, judge whether the business datum of the business datum paying out user that this point of account business datum is corresponding and this user is stored in same business memory database, if not, the original service data in the business datum of this user are locked process.
Preferably, in the above-mentioned treating apparatus that the embodiment of the present invention provides, service data updating unit 003, specifically for when the business datum of the corresponding business datum and this user of paying out user of this point of account business datum is stored in different business memory database, respectively update process is carried out to the original service data in the business datum of this user and a point account business datum; This business datum of paying out user corresponding to point account business datum carries out update process.
Preferably, in the above-mentioned treating apparatus that the embodiment of the present invention provides, service data updating unit 003, also for when the business datum of the corresponding business datum and this user of paying out user of this point of account business datum is stored in different business memory database, after update process is carried out to the business datum of this user, unblock process is carried out to the original service data in the business datum of this user.
Based on unified inventive concept, a kind of distributed memory database system that the embodiment of the present invention provides, as shown in Figure 6, comprising:
Route memory database 01, for storing the storage information of business datum in distributed memory database of user;
Distributed memory database 02, comprises multiple business memory database 020, and each business memory database 020 carries out the business datum of the user behind point storehouse according to point storehouse rule preset for storing;
Service data processing apparatus 03, for receive application program send carry the process request that the business datum of at least one user is upgraded; The storage information of the business datum of user in each business memory database 020 of distributed memory database 02 is determined in route memory database 01; In the business memory database 020 of business datum storing user, the mode of increment is adopted to carry out update process to the business datum of user; After the business datum processing users all in request has all upgraded, the service data updating state according to user has returned corresponding data processed result to described application program.
The above-mentioned distributed memory database system that the embodiment of the present invention provides, business datum due to user is stored in distributed memory database, namely the data of all users are stored in multiple distributed memory database, therefore can reduce the memory space of each distributed memory database, thus processing pressure when this distributed memory database system processes business datum can be reduced.This distributed memory database system, to being stored in the business datum of user in distributed memory database by adopting after the process request of service data updating receiving user, determines the storage information of the business datum of user in each business memory database of distributed memory database by searching route memory database; According to storage information in the business memory database of correspondence, respectively data processing is carried out to the method that the business datum of user adopts the mode of increment to carry out update process, achieve and issued transaction is accurately carried out to the business datum of business internal storage data library storage each in distributed memory database.
Preferably, in the above-mentioned distributed memory database system provided in the embodiment of the present invention:
Route memory database, also for storing the version number of user in this route memory database;
Each business memory database, also for storing the version number of user in this business memory database.
The disposal route of a kind of business datum that the embodiment of the present invention provides, device and distributed memory database system, the above-mentioned distributed memory database system that the embodiment of the present invention provides, business datum due to user is stored in distributed memory database, namely the data of all users are stored in multiple distributed memory database, therefore can reduce the memory space of each distributed memory database, thus processing pressure when this distributed memory database system processes business datum can be reduced.This distributed memory database system, to being stored in the business datum of user in distributed memory database by adopting after the process request of service data updating receiving user, determines the storage information of the business datum of user in each business memory database of distributed memory database by searching route memory database; According to storage information in the business memory database of correspondence, respectively data processing is carried out to the method that the business datum of user adopts the mode of increment to carry out update process, achieve and issued transaction is accurately carried out to the business datum of business internal storage data library storage each in distributed memory database.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (18)

1. a disposal route for business datum, is characterized in that, comprising:
What receive application program transmission carries the process request upgraded the business datum of at least one user;
The storage information of the business datum of described user in each business memory database of distributed memory database is determined in route memory database;
In the business memory database of business datum storing described user, the mode of increment is adopted to carry out update process to the business datum of described user;
After the described business datum processing users all in request has all upgraded, the service data updating state according to described user has returned corresponding data processed result to described application program.
2. disposal route as claimed in claim 1, it is characterized in that, the service data updating state according to described user returns corresponding data processed result to described application program, specifically comprises:
When the business datum of whole described user is all updated successfully, to the successful result of described application program return data process;
When the service data updating failure of part or all of described user, to the result of described application program return data process failure.
3. disposal route as claimed in claim 2, is characterized in that, when the service data updating failure of the described user of part, also comprises:
Adopt the mode of increment reverse process, reverse update process is carried out to the business datum of the user be updated successfully.
4. disposal route as claimed in claim 1, it is characterized in that, when determining the storage information of the business datum of described user in each business memory database of distributed memory database in route memory database, also comprise: obtain the version number that described user stores in described route memory database;
In the business memory database of business datum storing described user, when adopting the mode of increment to carry out update process to the business datum of described user, also comprise: obtain the version number that described user stores in described business memory database;
Described disposal route also comprises: when determining that the version number that described user stores in described route memory database and the version number stored in described business memory database are inconsistent, store information according to the business datum of user corresponding to version number up-to-date in both, information or the business datum of described user that stores in described business memory database are stored to the business datum of the described user stored in described route memory database and stores information and carry out renewal rewards theory.
5. disposal route as claimed in claim 4, is characterized in that, also comprise:
Receive the change user information request that application program sends, in described route memory database, adopt the mode of adding users information to change user profile;
According to point storehouse rule of the distributed memory database preset, judge that the user after upgrading user profile is the need of carrying out stock relocation process, if, in distributed memory database, stock relocation process is carried out to the business datum of user, and the version number of user after described stock relocation process of upgrading in route memory database and business memory database.
6. disposal route as claimed in claim 1, is characterized in that, in the business memory database of business datum storing described user, before carrying out update process, also comprises the mode of the business datum employing increment of described user:
In described business memory database, determine whether the business datum of the described user stored exists a point account business datum;
When determining that the business datum of described user exists point account business datum, judge whether the business datum of the business datum paying out user that described point account business datum is corresponding and described user is stored in same business memory database, if not, the original service data in the business datum of described user are locked process.
7. disposal route as claimed in claim 6, it is characterized in that, the business datum of the business datum paying out user that described point of account business datum is corresponding and described user is stored in different business memory database, carries out update process, specifically comprise the business datum of described user:
Respectively update process is carried out to the original service data in the business datum of described user and a point account business datum;
The business datum paying out user described in corresponding to described point of account business datum carries out update process.
8. disposal route as claimed in claim 7, it is characterized in that, the business datum of the business datum paying out user that described point of account business datum is corresponding and described user is stored in different business memory database, after carrying out update process, also comprises the business datum of described user:
Unblock process is carried out to the original service data in the business datum of described user.
9. a treating apparatus for business datum, is characterized in that, comprising:
Receiving element, for receive application program send carry the process request that the business datum of at least one user is upgraded;
User profile query unit, determines the storage information of the business datum of described user in each business memory database of distributed memory database in route memory database;
Service data updating unit, in the business memory database of business datum storing described user, adopts the mode of increment to carry out update process to the business datum of described user;
Upgrade feedback unit, for after the described business datum processing users all in request has all upgraded, the service data updating state according to described user has returned corresponding data processed result to described application program.
10. treating apparatus as claimed in claim 9, is characterized in that, described renewal feedback unit, specifically for when the business datum of whole described user is all updated successfully, to the successful result of described application program return data process; When the service data updating failure of part or all of described user, to the result of described application program return data process failure.
11. treating apparatus as claimed in claim 10, it is characterized in that, described service data updating unit, also for when the service data updating of the described user of part is failed, adopt the mode of increment reverse process, reverse update process is carried out to the business datum of the user be updated successfully.
12. treating apparatus as claimed in claim 9, is characterized in that, also comprise: version number's updating block;
Described user profile query unit, time also for determining the storage information of the business datum of described user in each business memory database of distributed memory database in route memory database, obtain the version number that described user stores in described route memory database, in the business memory database of business datum storing described user, when adopting the mode of increment to carry out update process to the business datum of described user, obtain the version number that described user stores in described business memory database;
Described version number updating block, for when determining that the version number that described user stores in described route memory database and the version number stored in described business memory database are inconsistent, store information according to the business datum of user corresponding to version number up-to-date in both, information or the business datum of described user that stores in described business memory database are stored to the business datum of the described user stored in described route memory database and stores information and carry out renewal rewards theory.
13. treating apparatus as claimed in claim 12, is characterized in that,
Described receiving element, also for receiving the change user information request that application program sends;
Described version number updating block, also for adopting the mode of adding users information to change user profile in described route memory database; According to point storehouse rule of the distributed memory database preset, judge that the user after upgrading user profile is the need of carrying out stock relocation process, if, in distributed memory database, stock relocation process is carried out to the business datum of user, and the version number of user after described stock relocation process of upgrading in route memory database and business memory database.
14. treating apparatus as claimed in claim 13, it is characterized in that, described service data updating unit, also for adopting before the mode of increment carries out update process to the business datum of described user, in described business memory database, determine whether the business datum of the described user stored exists a point account business datum; When determining that the business datum of described user exists point account business datum, judge whether the business datum of the business datum paying out user that described point account business datum is corresponding and described user is stored in same business memory database, if not, the original service data in the business datum of described user are locked process.
15. treating apparatus as claimed in claim 14, it is characterized in that, described service data updating unit, specifically for when the business datum of the business datum paying out user corresponding to described point of account business datum and described user is stored in different business memory database, respectively update process is carried out to the original service data in the business datum of described user and a point account business datum; The business datum paying out user described in corresponding to described point of account business datum carries out update process.
16. treating apparatus as claimed in claim 15, it is characterized in that, described service data updating unit, also for when the business datum of the business datum paying out user corresponding to described point of account business datum and described user is stored in different business memory database, after update process is carried out to the business datum of described user, unblock process is carried out to the original service data in the business datum of described user.
17. 1 kinds of distributed memory database systems, is characterized in that, comprising:
Route memory database, for storing the storage information of business datum in distributed memory database of user;
Distributed memory database, comprises multiple business memory database, and each described business memory database carries out the business datum of the user behind point storehouse according to point storehouse rule preset for storing;
Service data processing apparatus, for receive application program send carry the process request that the business datum of at least one user is upgraded; The storage information of the business datum of described user in each business memory database of distributed memory database is determined in route memory database; In the business memory database of business datum storing described user, the mode of increment is adopted to carry out update process to the business datum of described user; After the described business datum processing users all in request has all upgraded, the service data updating state according to described user has returned corresponding data processed result to described application program.
18. distributed memory database systems as claimed in claim 17, is characterized in that:
Described route memory database, also for storing the version number of described user in described route memory database;
Each described business memory database, also for storing the version number of described user in described business memory database.
CN201310749715.2A 2013-12-30 2013-12-30 Service data processing method and device and distributed internal memory database system Pending CN104750746A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310749715.2A CN104750746A (en) 2013-12-30 2013-12-30 Service data processing method and device and distributed internal memory database system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310749715.2A CN104750746A (en) 2013-12-30 2013-12-30 Service data processing method and device and distributed internal memory database system

Publications (1)

Publication Number Publication Date
CN104750746A true CN104750746A (en) 2015-07-01

Family

ID=53590442

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310749715.2A Pending CN104750746A (en) 2013-12-30 2013-12-30 Service data processing method and device and distributed internal memory database system

Country Status (1)

Country Link
CN (1) CN104750746A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105516344A (en) * 2015-12-31 2016-04-20 深圳前海微众银行股份有限公司 Data management system and service-processing method
CN106708917A (en) * 2016-06-30 2017-05-24 腾讯科技(深圳)有限公司 Data processing method and device and OLAP system
CN107517262A (en) * 2017-08-31 2017-12-26 江西博瑞彤芸科技有限公司 Business datum storage method
CN108802282A (en) * 2018-06-05 2018-11-13 中国联合网络通信集团有限公司 Method, apparatus, equipment and the readable storage medium storing program for executing of harmful gas concentration prediction
CN108874947A (en) * 2018-06-05 2018-11-23 亚信科技(中国)有限公司 A kind of data processing system and data processing method
CN109583980A (en) * 2017-09-28 2019-04-05 中国移动通信集团浙江有限公司 Method, system, electronic equipment and the storage medium of order processing
CN110502523A (en) * 2019-08-01 2019-11-26 广东浪潮大数据研究有限公司 Business datum storage method, device, server and computer readable storage medium
CN110990415A (en) * 2019-11-14 2020-04-10 锐捷网络股份有限公司 Data processing method and device, electronic equipment and storage medium
CN111625369A (en) * 2020-05-29 2020-09-04 北京思特奇信息技术股份有限公司 Method, system and electronic equipment for limiting user to transact business through single channel
CN111881149A (en) * 2020-07-20 2020-11-03 武汉中海庭数据技术有限公司 Large-scale concurrency solution method and system based on Java

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101650741A (en) * 2009-08-27 2010-02-17 中国电信股份有限公司 Method and system for updating index of distributed full-text search in real time
CN102473083A (en) * 2009-07-08 2012-05-23 伊姆西公司 Apparatus and method for reading optimized bulk data storage
CN103294675A (en) * 2012-02-23 2013-09-11 上海盛霄云计算技术有限公司 Method and device for updating data in distributed storage system
CN103379159A (en) * 2012-04-24 2013-10-30 阿里巴巴集团控股有限公司 Distributed web site data synchronization method
US8589329B2 (en) * 2009-07-10 2013-11-19 Alcatel Lucent Method and apparatus for incremental tracking of multiple quantiles

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102473083A (en) * 2009-07-08 2012-05-23 伊姆西公司 Apparatus and method for reading optimized bulk data storage
US8589329B2 (en) * 2009-07-10 2013-11-19 Alcatel Lucent Method and apparatus for incremental tracking of multiple quantiles
CN101650741A (en) * 2009-08-27 2010-02-17 中国电信股份有限公司 Method and system for updating index of distributed full-text search in real time
CN103294675A (en) * 2012-02-23 2013-09-11 上海盛霄云计算技术有限公司 Method and device for updating data in distributed storage system
CN103379159A (en) * 2012-04-24 2013-10-30 阿里巴巴集团控股有限公司 Distributed web site data synchronization method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈永杰: "《SAP商务智能完全解决方案》", 1 January 2008, 机械工业出版社 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105516344A (en) * 2015-12-31 2016-04-20 深圳前海微众银行股份有限公司 Data management system and service-processing method
CN106708917A (en) * 2016-06-30 2017-05-24 腾讯科技(深圳)有限公司 Data processing method and device and OLAP system
CN107517262A (en) * 2017-08-31 2017-12-26 江西博瑞彤芸科技有限公司 Business datum storage method
CN109583980A (en) * 2017-09-28 2019-04-05 中国移动通信集团浙江有限公司 Method, system, electronic equipment and the storage medium of order processing
CN108802282A (en) * 2018-06-05 2018-11-13 中国联合网络通信集团有限公司 Method, apparatus, equipment and the readable storage medium storing program for executing of harmful gas concentration prediction
CN108874947A (en) * 2018-06-05 2018-11-23 亚信科技(中国)有限公司 A kind of data processing system and data processing method
CN108874947B (en) * 2018-06-05 2020-12-01 亚信科技(中国)有限公司 Data processing system and data processing method
CN110502523A (en) * 2019-08-01 2019-11-26 广东浪潮大数据研究有限公司 Business datum storage method, device, server and computer readable storage medium
CN110990415A (en) * 2019-11-14 2020-04-10 锐捷网络股份有限公司 Data processing method and device, electronic equipment and storage medium
CN111625369A (en) * 2020-05-29 2020-09-04 北京思特奇信息技术股份有限公司 Method, system and electronic equipment for limiting user to transact business through single channel
CN111881149A (en) * 2020-07-20 2020-11-03 武汉中海庭数据技术有限公司 Large-scale concurrency solution method and system based on Java

Similar Documents

Publication Publication Date Title
CN104750746A (en) Service data processing method and device and distributed internal memory database system
US8117358B2 (en) Revenue management system and method utilizing database backup
CN102163210B (en) The quick renewal of index metadata
CN103544153B (en) A kind of data-updating method based on data base and system
CN109766362B (en) Data processing method and device
CN101650741A (en) Method and system for updating index of distributed full-text search in real time
CN104252452A (en) Data management method and device
CN101738190A (en) Data difference update method and system
CN106648716A (en) Increment updating method, server and intelligent card
CN101901275A (en) Distributed storage system and method thereof
CN104243515A (en) Method and device for processing configuration information
CN101765096A (en) Method, device and system for querying order relations
CN104881454A (en) Updating method and system of parameter
CN114064073A (en) Software version upgrading method and device, computer equipment and storage medium
CN114185991A (en) Method and related device for realizing data synchronization based on distributed database
CN105677427A (en) Module upgrading method and device
CN111176705B (en) Feature library upgrading method and device
CN103985053A (en) Time zone conversion method and device in bank transaction system
CN114547108A (en) Data processing method, device, equipment and medium
CN101431429B (en) Information management method for physical entity in equipment, equipment and equipment management terminal
CN110933184B (en) Resource publishing platform and resource publishing method
CN114584576A (en) Data storage method, device, equipment, storage medium and computer program product
CN106250485A (en) Database upgrade method, Apparatus and system
CN101364224A (en) Information management system and method
CN110955686A (en) Data multidimensional cross processing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150701

RJ01 Rejection of invention patent application after publication