CN100571316C - Quick constant expense computing system based on memory file and real-time synchronization technique - Google Patents
Quick constant expense computing system based on memory file and real-time synchronization technique Download PDFInfo
- Publication number
- CN100571316C CN100571316C CNB2007101448602A CN200710144860A CN100571316C CN 100571316 C CN100571316 C CN 100571316C CN B2007101448602 A CNB2007101448602 A CN B2007101448602A CN 200710144860 A CN200710144860 A CN 200710144860A CN 100571316 C CN100571316 C CN 100571316C
- Authority
- CN
- China
- Prior art keywords
- file
- constant expense
- real
- subscriber
- memory mapping
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
Based on the quick constant expense computing system of memory file and real-time synchronization technique, relate to the computing system of the constant expense in the telecommunication path business.It has solved consuming time big, the problem that influences the foreground business of the existing BOSS of operator system-computed constant expense.It has set up the subscriber data Memory Mapping File and its system that is used to store subscriber information message in server memory, and utilize the OLTP characteristic in accounting data storehouse that the user profile that changes is synchronized to subscriber data Memory Mapping File and its system in real time, adopt the data read subsystem of multithreading directly from the subscriber data Memory Mapping File and its system of server system internal memory, to read subscriber information message then, and the constant expense object information formation memory file that the constant expense computing subsystem obtains is deposited in the memory file of server.The present invention has shortened the computing time of constant expense, has also avoided the influence of constant expense calculating to the foreground business, can arrive in the constant expense calculating of existing telecommunication path business.
Description
Technical field
The present invention relates to the computing system of the constant expense in the telecommunication path business.
Background technology
Constant expense is the important charging means of telecommunications operator, and for example Monthly Fee, special clothes take, and optional rate (optional bag) month function usage charges etc., telecom operators carry out marketing by collecting certain moon function usage charges usually.So calculating the every constant expense of user timely and accurately is an important indicator weighing telecom operators' charging accuracy.
Along with the expansion of each provider customer's scale and the lifting of rate complexity, the time that constant expense is calculated is more and more longer, performance consumption to the BOSS system, especially very big to the performance consumption in accounting data storehouse, cause the foreground service handling to be affected in constant expense computing interval decreased performance because of the accounting data storehouse, the processing speed in accounting data storehouse also descends greatly.In addition, along with the development of business, the expansion of userbase, constant expense is calculated the linear trend that increases that also is consuming time, and coverage enlarges, and progressively has influence on user's satisfaction.
At present, all adopt the data of database processing mode during each BOSS of operator system-computed constant expense, the performance bottleneck of database when handling data in enormous quantities determined its treatment effeciency extremely low.
Summary of the invention
In order to solve consuming time big, the problem that influences the foreground business of the existing BOSS of operator system-computed constant expense, the present invention proposes a kind of quick constant expense computing system based on memory file and real-time synchronization technique.
Quick constant expense computing system based on memory file and real-time synchronization technique of the present invention comprises:
Constant expense computing subsystem 5, the user profile and the outside cost information that are used for obtaining according to data read subsystem 4 calculate, and then obtain customer charge increment information and constant expense cumulative information;
Described quick constant expense computing system based on memory file and real-time synchronization technique also comprises:
Subscriber data Memory Mapping File and its system 2, form by a plurality of subscriber data Memory Mapping File and its mmap, each subscriber data Memory Mapping File and its mmap is made up of a plurality of subscriber information messages, described subscriber data Memory Mapping File and its system 2 is used to store subscriber data, and can be connected with accounting data storehouse 1 by real-time interface, data variation part real-time update in the accounting data storehouse 1 is arrived corresponding subscriber data Memory Mapping File and its mmap;
Constant expense is statistics sub system 6 as a result, is used for the customer charge increment information that constant expense computing subsystem 5 obtains is updated to corresponding incremental expense Memory Mapping File and its and real-time account system respectively; Also be used for the customer charge cumulative information that constant expense computing subsystem 5 obtains is updated to corresponding aggregate expense Memory Mapping File and its; Also be used for customer charge information being write database subsequent collection table at the end of month.
Described real-time account system is an existing account system in the BOSS system, is used to store the system of customer charge information.
Quick constant expense computing system based on memory file and real-time synchronization technique of the present invention, with of the prior art when constant expense is calculated, need gather the pattern of user data information in the accounting data storehouse improves, the present invention is mapped to the accounting data library information in the original system and forms subscriber data Memory Mapping File and its system in the internal memory of server system, and employing real-time synchronization technique, the data in real time that changes in the accounting data storehouse is updated to subscriber data Memory Mapping File and its mmap of the present invention, guarantee that the user data information of subscriber data Memory Mapping File and its of the present invention system is consistent with information in the accounting data storehouse, when calculating customer charge, directly from the subscriber data Memory Mapping File and its system of server system internal memory, read subscriber information message, and will calculate the constant expense object information formation memory file that obtains and deposit in the memory file of server.It is fireballing more than what search for from the accounting data storehouse, read and write data directly to read and write data from internal memory, also avoided every day owing to calculate a large amount of read-write operations of constant expense to the accounting data storehouse, reduced operating pressure to the accounting data storehouse, discharged BOSS system resource, not only improved the computational speed of constant expense, also avoided owing to calculate the influence of constant expense to the foreground business.
Through using the quick constant expense computing system based on memory file and real-time synchronization technique of the present invention, make average consuming time being reduced in 5 minutes of constant expense calculating from original 500 minutes in China Mobile Communication Group Heilongjiang Co., Ltd..
Description of drawings
Fig. 1 is a system construction drawing of the present invention; Fig. 2 is the constant expense average consuming time statistical chart of China Mobile Communication Group Heilongjiang Co., Ltd. between year January in June, 2006 to 2007; Fig. 3 is that in May, 2007 China Mobile Communication Group Heilongjiang Co., Ltd.'s use quick constant expense computing system based on memory file and real-time synchronization technique of the present invention carries out the average statistical chart consuming time of constant expense that constant expense is calculated.
Embodiment
The quick constant expense computing system based on memory file and real-time synchronization technique of present embodiment comprises:
Constant expense computing subsystem 5, the user profile and the outside cost information that are used for obtaining according to data read subsystem 4 calculate, and then obtain customer charge increment information and constant expense cumulative information;
Described quick constant expense computing system based on memory file and real-time synchronization technique also comprises:
Subscriber data Memory Mapping File and its system 2, form by a plurality of subscriber data Memory Mapping File and its mmap, each subscriber data Memory Mapping File and its mmap is made up of a plurality of subscriber information messages, affiliated subscriber data Memory Mapping File and its system 2 is used to store subscriber data, and can be connected with accounting data storehouse 1 by real-time interface, data variation part real-time update in the accounting data storehouse 1 is arrived corresponding subscriber data Memory Mapping File and its mmap;
Constant expense is statistics sub system 6 as a result, is used for the customer charge increment information that constant expense computing subsystem 5 obtains is updated to corresponding incremental expense Memory Mapping File and its and real-time account system respectively; Also be used for the customer charge cumulative information that constant expense computing subsystem 5 obtains is updated to corresponding aggregate expense Memory Mapping File and its; Also be used for customer charge information being write database subsequent collection table at the end of month.
Described real-time account system is an existing account system in the BOSS system, is used to store the system of customer charge information.
In the described subscriber data Memory Mapping File and its of the present embodiment system 2, each No. ten thousand section (i.e. 10,000 users) form a subscriber data Memory Mapping File and its mmap, and described subscriber data Memory Mapping File and its mmap adopts the binary code record.The mapped file of this structure, on the one hand by adopting the binary code recorded information to save memory headroom, adopt each No. ten thousand section to form a file on the other hand, be convenient to addressing and search user profile, corresponding memory file is selected in the first seven position according to the user mobile phone telephone number, according to subscriber phone number back four seek user profile position hereof then, adopt that the method for this relative addressing can be once, find the relative users data information accurately, convenient, fast.
Each subscriber information message among the described subscriber data Memory Mapping File and its of the present embodiment mmap adopts list structure, the memory space of each subscriber information message is divided into static zones and dynamic area, the space equal and opposite in direction of the static zones of each subscriber information message, how many dynamic areas changes according to subscriber data, has only just to start corresponding dynamic area when the static zones space of subscriber information message is not enough.
The form of described each subscriber information message is: the user ID identifier | the Customer ID identifier | and telephone number | user brand | user property | user ascription area | the ownership place identifier | User Status | the Status Change time | the time started | the concluding time | arrearage information | VPMN information | way of paying | area flag | regional address | next data address.When subscriber information message used static zones can store to finish, described " next data address " usefulness " 1 " was represented; When subscriber information message was not stored with static zones, remaining storage was in dynamic area, and described " next data address " points to the first address of corresponding dynamic area.
The described real-time interface technology of present embodiment, prior art in the existing BOSS system is meant when the user carries out business handling, and the data in real time that changes is write the specified interface table, data are read in by the interface table again in subscriber data Memory Mapping File and its system 2, and then realize the real-time update of data.
Subscriber data Memory Mapping File and its system 2 in the present embodiment also adopts the mode of trigger that the spy in the subscriber data is obeyed data in real time and is updated in the consumer products information material memory file.
The data refresh mode of described real-time interface of present embodiment and trigger has made full use of OLTP (the OnLine Transaction Processing) characteristic in accounting data storehouse 1, has kept real-time and high efficiency to the single business well.
The described scheduler subsystem 3 of present embodiment is set up process according to the calculating needs of constant expense, and adopts message queue mode allocating task to give data read subsystem 4.
The described data read subsystem 4 of present embodiment adopts the mode image data of multithreading according to the order of scheduler subsystem 3, promptly adopts a plurality of threads to gather different information respectively to same subscriber data.For example: can adopt two threads to read subscriber information message and consumer products information respectively.The data acquisition modes of multithreading has improved acquisition speed.
The constant expense incremental expense Memory Mapping File and its described in the statistics sub system 6 as a result adopts and the identical structure of subscriber data Memory Mapping File and its mmap with the aggregate expense Memory Mapping File and its; described incremental expense information and accumulation cost information all adopt structure chained list mode, and concrete structure is: the user ID identifier | telephone number | and calculation date | User Status | newspaper stops sign | the bill sign | the monthly rent code | one-level accounts item | secondary accounts item | fee to be charged | shut down guarantor's expense | next data address.
China Mobile Communication Group Heilongjiang Co., Ltd. is when using original constant expense computing system, referring to Fig. 2 to the average statistical chart consuming time of constant expense between year January in June, 2006 to 2007, constant expense is calculated average increasing along with the user consuming time, promote gradually, reached 500 minutes in January, 2007.In April, 2007, China Heilungkiang Co., Ltd of mobile communication group used the quick constant expense computing system based on memory file and real-time synchronization technique of present embodiment, the average statistics consuming time of the constant expense in May, 2007, referring to Fig. 3, be stabilized in 5 minutes.
Claims (9)
1, based on the quick constant expense computing system of memory file and real-time synchronization technique, it comprises:
Accounting data storehouse (1), the BOSS system legacy data storehouse that is used to store subscriber information message;
Constant expense computing subsystem (5), the user profile and the outside cost information that are used for obtaining according to data read subsystem (4) calculate, and then obtain customer charge increment information and constant expense cumulative information;
It is characterized in that described quick constant expense computing system based on memory file and real-time synchronization technique also comprises:
Subscriber data Memory Mapping File and its system (2), form by a plurality of subscriber data Memory Mapping File and its mmap, each subscriber data Memory Mapping File and its mmap is made up of a plurality of subscriber information messages, described subscriber data Memory Mapping File and its system (2) is used to store subscriber data, and can be connected with accounting data storehouse (1) by real-time interface, data variation part real-time update in accounting data storehouse (1) is arrived corresponding subscriber data Memory Mapping File and its mmap;
Scheduler subsystem (3) is used for calculating needs according to constant expense, produces and send the order of calculating customer charge;
Data read subsystem (4), be used for order according to the calculating customer charge of scheduler subsystem (3) transmission, from subscriber data Memory Mapping File and its system (2), read the relative users data, and the subscriber information message that reads is passed to constant expense computing subsystem (5);
Constant expense is statistics sub system (6) as a result, is used for the customer charge increment information that constant expense computing subsystem (5) obtains is updated to corresponding incremental expense Memory Mapping File and its and real-time account system respectively; Also be used for the customer charge cumulative information that constant expense computing subsystem (5) obtains is updated to corresponding aggregate expense Memory Mapping File and its; Also be used for customer charge information being write database subsequent collection table at the end of month.
2, the quick constant expense computing system based on memory file and real-time synchronization technique according to claim 1, it is characterized in that in the described subscriber data Memory Mapping File and its system (2), each No. ten thousand section forms a subscriber data Memory Mapping File and its mmap, and described subscriber data Memory Mapping File and its mmap adopts the binary code record.
3, the quick constant expense computing system based on memory file and real-time synchronization technique according to claim 1, it is characterized in that each subscriber information message among the described subscriber data Memory Mapping File and its mmap adopts list structure, the memory space of each subscriber information message is divided into static zones and dynamic area, the space equal and opposite in direction of the static zones of each subscriber information message, how many dynamic areas changes according to subscriber data, has only just to start corresponding dynamic area when the static zones space of subscriber information message is not enough.
4, quick constant expense computing system based on memory file and real-time synchronization technique according to claim 3, the structure that it is characterized in that each subscriber information message among the described subscriber data Memory Mapping File and its mmap is: the user ID identifier | the Customer ID identifier | and telephone number | user brand | user property | user ascription area | the ownership place identifier | User Status | the Status Change time | the time started | the concluding time | arrearage information | VPMN information | way of paying | area flag | regional address | next data address, when subscriber information message used static zones can store to finish, described " next data address " usefulness " 1 " was represented; When subscriber information message was not stored with static zones, remaining storage was in dynamic area, and described " next data address " points to the first address of corresponding dynamic area.
5, the quick constant expense computing system based on memory file and real-time synchronization technique according to claim 1, it is characterized in that subscriber data Memory Mapping File and its system (2), also adopt the mode of trigger that the spy in the subscriber data is obeyed data in real time and be updated in the consumer products information material memory file.
6, the quick constant expense computing system based on memory file and real-time synchronization technique according to claim 1, it is characterized in that described scheduler subsystem (3), calculating needs according to constant expense are set up process, and adopt message queue mode allocating task to give data read subsystem (4).
7, the quick constant expense computing system based on memory file and real-time synchronization technique according to claim 1, it is characterized in that the order of described data read subsystem (4) according to scheduler subsystem (3), adopt the mode image data of multithreading, promptly adopt a plurality of threads to gather different information respectively same subscriber data.
8, the quick constant expense computing system based on memory file and real-time synchronization technique according to claim 1 is characterized in that constant expense the incremental expense Memory Mapping File and its described in the statistics sub system (6) and employing of aggregate expense Memory Mapping File and its and the identical structure of subscriber data Memory Mapping File and its mmap as a result.
9, the quick constant expense computing system based on memory file and real-time synchronization technique according to claim 8; it is characterized in that incremental expense information and accumulation cost information in described incremental expense Memory Mapping File and its and the aggregate expense Memory Mapping File and its all adopt structure chained list mode, concrete structure is: the user ID identifier | telephone number | and calculation date | User Status | newspaper stops sign | the bill sign | the monthly rent code | one-level accounts item | secondary accounts item | fee to be charged | shut down guarantor's expense | next data address.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2007101448602A CN100571316C (en) | 2007-12-19 | 2007-12-19 | Quick constant expense computing system based on memory file and real-time synchronization technique |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2007101448602A CN100571316C (en) | 2007-12-19 | 2007-12-19 | Quick constant expense computing system based on memory file and real-time synchronization technique |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101184132A CN101184132A (en) | 2008-05-21 |
CN100571316C true CN100571316C (en) | 2009-12-16 |
Family
ID=39449207
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2007101448602A Active CN100571316C (en) | 2007-12-19 | 2007-12-19 | Quick constant expense computing system based on memory file and real-time synchronization technique |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100571316C (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101730028B (en) * | 2008-10-29 | 2012-07-04 | 中国移动通信集团吉林有限公司 | Disaster tolerant method, system and device for virtual private mobile network service |
CN101795211B (en) * | 2010-01-13 | 2012-02-22 | 北京中创信测科技股份有限公司 | Data storage method and system |
CN102024010A (en) * | 2010-06-04 | 2011-04-20 | 西本新干线股份有限公司 | Data processing system and data processing method |
CN102487426B (en) * | 2010-12-06 | 2014-06-04 | 中国移动通信集团重庆有限公司 | Method for improving charging accuracy, system thereof and apparatus thereof |
CN102547644B (en) * | 2010-12-31 | 2015-05-20 | 中国移动通信集团河北有限公司 | Checking method and device of bills |
CN102831017B (en) * | 2012-08-31 | 2014-09-10 | 河海大学 | High-efficiency distributed parallel authentication system |
CN107678856B (en) * | 2017-09-20 | 2022-04-05 | 苏宁易购集团股份有限公司 | Method and device for processing incremental information in business entity |
CN111125070A (en) * | 2019-11-19 | 2020-05-08 | 华迪计算机集团有限公司 | Data exchange method and platform |
-
2007
- 2007-12-19 CN CNB2007101448602A patent/CN100571316C/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN101184132A (en) | 2008-05-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100571316C (en) | Quick constant expense computing system based on memory file and real-time synchronization technique | |
CN110418022B (en) | Method and device for adjusting flow package for multiple user identifications | |
CN108090225B (en) | Database instance running method, device and system and computer readable storage medium | |
CN103729778A (en) | Omni-channel advertisement accurate delivery system and method | |
CN108805632B (en) | Charging method and device | |
CN110493016B (en) | Flow service charging method and device | |
CN100530142C (en) | Method and system for automatically distributing real memory between virtual memory page sizes | |
CN104574051A (en) | Charging method and device | |
CN102571370B (en) | Many charge units the implementation method of charging when depositing and device | |
CN101620702A (en) | Expenditure presentation processing method, device and system | |
CN103067185A (en) | Accounting method in cloud computing system | |
CN107730375A (en) | A kind of method, system and the terminal device of tax management map | |
CN102387486A (en) | Method and device for charging general packet radio service (GPRS) partition bill | |
US8341044B1 (en) | System, method, and computer program product for rating and re-rating events | |
CN103337109A (en) | Fuel gas billing system and method | |
CN109903030A (en) | It is a kind of for the charging method of cloud host, cloud host and storage medium | |
CN1553693B (en) | Universal charging method | |
CN113037510A (en) | Charging method, charging device and computer readable storage medium | |
CN108833123A (en) | Based on according to quantity cloud host charging method and device | |
EP2662783A1 (en) | Data archiving approach leveraging database layer functionality | |
CN113191546A (en) | Resource allocation prediction method, resource management device and storage medium | |
CN111724098B (en) | Information display method and system, electronic equipment and storage medium | |
CN103095469A (en) | Communication cost copayment method and device | |
CN108205559A (en) | A kind of data managing method and its equipment | |
CN101217385B (en) | A method and system for the temporary storage and treatment of charging bill |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |