CN110457379A - A kind of method and its architecture system of business processing - Google Patents
A kind of method and its architecture system of business processing Download PDFInfo
- Publication number
- CN110457379A CN110457379A CN201910703377.6A CN201910703377A CN110457379A CN 110457379 A CN110457379 A CN 110457379A CN 201910703377 A CN201910703377 A CN 201910703377A CN 110457379 A CN110457379 A CN 110457379A
- Authority
- CN
- China
- Prior art keywords
- business
- processing
- queue
- service
- array
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2455—Query execution
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
- G06F16/252—Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/546—Message passing systems or structures, e.g. queues
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/54—Indexing scheme relating to G06F9/54
- G06F2209/548—Queue
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Software Systems (AREA)
- Computational Linguistics (AREA)
- Computer And Data Communications (AREA)
Abstract
This application discloses a kind of method of business processing and its architecture systems, and wherein method for processing business is specifically includes the following steps: the business of acquisition, business is put into communication queue;The business in communication queue is obtained, and business is put into corresponding processing queue;Business in processing processing queue.The problem of the application can have the system architecture and method of chemical conversion read-write operation according to different business attributive classification, solve because database data is big, and service logic is complicated, and the business that time-consuming will not block other business, improves the processing speed and efficiency of business.
Description
Technical field
This application involves computer fields, and in particular, to a kind of method and its architecture system of business processing.
Background technique
It in the prior art, is usually that database progress inquiry operation is divided into reading type for the processing of different business,
He is to write type (such as: newly-increased, modification is deleted) to database operations control, for convenience of description, is now referred to as inquiry class business
For " read class business ", non-inquiry class business is referred to as " write class business ".It is usually all that time-consuming for reading class business in practical application,
Business is complicated, and multithreading solution is unsatisfactory when a large amount of requests reach, therefore the mode of big more options queue caching
Processing, and because the time-out for reading class business will lead to follow-up business in team and can not handle in time, eventually lead to connection time-out, business
It executes failure or makes to handle logical miss because obstruction leads to problems such as to update not in time.Therefore a kind of more rapidly processing business is needed
Method, go to solve the problems, such as to cause other follow-up business not handle in time because of the obstruction for reading class business, improve business processing
Speed.
Summary of the invention
A kind of method and its architecture system for being designed to provide business processing of the application, can be according to different business category
Property classification tool chemical conversion read-write operation system architecture and method, solve because database data is big, service logic is complicated, what time-consuming
Business will not block the problem of other business.
In order to achieve the above objectives, this application provides a kind of method for processing business, specifically includes the following steps: obtaining industry
Business, business is put into communication queue;The business in communication queue is obtained, and business is put into corresponding processing queue;Processing
Handle the business in queue.
As above, wherein before acquisition business, further include, business is initialized, specifically includes the following steps: just
Beginningization array;The subscript value of array after modification initialization;Modified array is saved.
As above, wherein the array of initialization is the array that system issues, and includes several subscripts in array, under each
Mark is indicated by service number.
As above, wherein the corresponding subscript value of each subscript in initialize array is disposed as 0.
As above, wherein it further include being established simultaneously in database before the subscript value of the array after modification initialization
A corresponding table is stored, the corresponding relationship and the subscript value in service number for including service number and type of service in corresponding table.
As above, wherein the subscript value in corresponding with service number is arranged according to type of service, corresponding table is traversed and completes initialization
The subscript value of array is modified.
As above, wherein the business obtained from communication queue is parsed, according to the corresponding service of parsing acquisition business
Number, and the subscript value for corresponding to service number in table is searched according to service number, obtain type of service.
As above, wherein if the type of service obtained is reading business, reading business is put into reading processing queue, if obtaining
The type of service obtained is to write service, then reading business is put into write queue.
A kind of business processing architecture system, specifically includes: initialization unit, modification storage unit, Dispatching Unit, processing are single
Member;Initialization unit, for carrying out the initialization of business;Modify storage unit, for modify initialize after array subscript value,
And modified array is stored in the memory of system;Dispatching Unit, if completing for business initializtion, acquisition business simultaneously will
The distribution of services handles queue to corresponding;Processing unit, for handling the business in respective handling queue.
As above, wherein Dispatching Unit includes following submodule: obtaining module, initial parsing module, the first distribution mould
Block, again parsing module, the second distribution module;Module is wherein obtained for obtaining business;Initial parsing module, for business
Carry out Preliminary Analysis;First distribution module, for the business after Preliminary Analysis to be put into communication queue;Parsing module again,
For obtaining the business in communication queue and being parsed again;Second distribution module, for putting the business after parsing again
Enter corresponding processing queue.
The application has the advantages that
(1) method of business processing provided by the present application and its architecture system can will quickly read class business and write class industry
Business distinguishes, and what is handled between realization business is independent of each other.
(2) method of business processing provided by the present application and its architecture system can be by advance to the thin of type of service
Change, just can obtain the action type of business by tabling look-up when getting a certain business, is convenient for subsequent traffic differentiation, is fast
Fast processing business provides the foundation.
(3) method of business processing provided by the present application and its architecture system can multithreading obtain business, and according to industry
The difference of business is distributed to different processing queues, more convenient in exploitation also to solve the resistance because of reading class business simultaneously with efficient
The problem of plug causes other follow-up business not handle in time.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The some embodiments recorded in application can also be obtained according to these attached drawings other for those of ordinary skill in the art
Attached drawing.
Fig. 1 is the method flow diagram according to business initializtion provided by the embodiments of the present application;
Fig. 2 is the method flow diagram according to business processing provided by the embodiments of the present application;
Fig. 3 is the internal structure chart according to business processing architecture system provided by the embodiments of the present application;
Fig. 4 is the inside sub-modular structure figure according to business processing architecture system provided by the embodiments of the present application.
Specific embodiment
Below with reference to the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Ground description, it is clear that described embodiment is some embodiments of the present application, instead of all the embodiments.Based on the application
In embodiment, those skilled in the art's every other embodiment obtained without making creative work, all
Belong to the range of the application protection.
This application involves a kind of method of business processing and its architecture systems.It, can be according to different business according to the application
The system architecture and method of attributive classification tool chemical conversion read-write operation, solve because database data is big, service logic is complicated, and time-consuming
Business the problem of will not blocking other business, improve the processing speed and efficiency of business.
It is as shown in Figure 1 business initializtion flow chart provided by the present application.
Step S110: initialize array.
The array of 8 sizes is designated as under one wherein can be initialized when system starts, wherein array has several subscripts,
Each subscript is indicated by service number, such as service number 10000000, service number 10000001 ... etc., and the service number is according to business need
It asks and is incremented by by 10000000.
Specifically, the corresponding contents value of each subscript (subscript value) of array is disposed as 0 in initialization.
Step S120: the subscript value of array after modification initialization.
It specifically, further include establishing and storing a corresponding table in database in advance before modifying subscript.Wherein correspond to
Table reflects the corresponding relationship between service number and type of service.By reading the type of service in corresponding table and corresponding service
Number, modify the subscript value of array.
Further, specified services number correspond to specified type of service, such as service number 10000001 corresponds to reading clothes
Business, service number 10000002 correspond to service write etc..Wherein if it is the service of reading then by the contents value mark of service number 10000001
It is denoted as 1, if service of writing then by the contents value of service number 10000002 labeled as 2.By the corresponding numerical value presence service of service number
In number.Business is subdivided into contents value in this manner and corresponds to reading business for 1, contents value corresponds to the business of writing, content for 2
Value corresponds to other business for 3.
Preferably, the corresponding type of service of the value of service number can also be adjusted according to the actual situation, and above situation is only made
For citing, it can also will be set as other numerical value with type of service respective value, such as value can be corresponded to the business of writing etc. for 2, herein
Without enumerating.
Still further, traversing corresponding table, the corresponding value of the corresponding subscript of array is 0 when due to initialization,
It, can be by service number by corresponding table if read the business that service number is 10000001 during reading corresponding table
10000001 corresponding values are revised as 1 from 0, similarly, if read the business that service number is 10000002, by service number
10000002 corresponding values are revised as 2 from 0.And so on until the corresponding subscript value modification of all service numbers is completed.
Step S130: modified array is saved.
It is completed due to modifying subscript value, the array after having modified is stored in the memory of system, is so far owned
Business needs the service called to be loaded into memory and refined according to type.
It is illustrated in figure 2 the method flow diagram of distribution of services processing provided by the present application.
Step S210: business is obtained, business is put into communication queue.
Specifically, when business by peripheral system after the operations such as logical process are successfully forwarded to architecture system, by more
Thread obtains business, and starts the Preliminary Analysis of carry out business according to agreement, and the business after Preliminary Analysis is put into communication queue
In.
Wherein since multithreading obtains business, the efficiency of business processing is improved, while in multithreading acquisition process, into
One step, Preliminary Analysis business can get the data informations such as unique ID of business, request time.
Preferably, unique ID of business be recorded in communication queue or other regions that can be read of system in, if locating
It manages and occurs exception in business procedure, be then able to carry out the specific lookup of business according to unique ID.
It preferably, after getting business, further include judging the load of communication queue.If load is more than in communication queue
Specified threshold, the then business for refusing will acquire are put into the communication queue.
It is worth noting that, specified threshold is by staff is artificial or manual setting, and can be modified, therefore specific number
Value is herein without limiting.
Preferably, the setting of specific logical can be also carried out in business, if such as getting service number is 10000000
Business, there are the logics of special designing in the business, then can carry out specially treated to the business, such as be put into other communication queues
Deng operation.
Wherein the design of the logic is equally arranged by staff, and if desired the business of specially treated then carries out specific logical
Processing, if all be general business, the design without specific logical.
Step S220: the business in communication queue is obtained, and business is put into corresponding processing queue.
Specifically, business information includes the data such as the corresponding service number of business and message body content, according to business again
Service number can be obtained in secondary parsing, and corresponding subscript value can be found according to the service number by corresponding table, so that it is determined that service class
Type.If such as find the corresponding subscript value of the service number be 1, the business be reading business, if the corresponding subscript of the service number
Value is that 2 business are to write business, is then other business if other values.
Further, if finding type of service, business is put into according to type difference by different processing queues.
Illustratively, if the business of reading, which will be put into reading processing queue, and will then be put into if business of writing and writes processing
In queue, then it is put into other processing queues if other business.
Preferably, business is put into corresponding processing queue by the mode that shared drive can be used, by between the process
Communication mode improves communication speed.
Step S230: the business in the processing processing queue.
Specifically, business can be taken out from corresponding processing queue to carry out subsequent processing and respond.
Present invention also provides business processing architecture systems, as shown in figure 3, which includes first for business processing architecture system
Beginningization unit 301, modification storage unit 302, Dispatching Unit 303, processing unit 304.
Wherein initialization unit 301 is for initializing system and business, specially the array that issues of initialization system with
And the subscript value of array.
Modification storage unit 302 connect with initialization unit 301, for modify initialize after array subscript value, and general
Modified array is stored in the memory of system.
Dispatching Unit 303 connect with modification storage unit 302, if being completed for business initializtion, acquisition business and by institute
Distribution of services is stated to corresponding processing queue.
Specifically, as shown in figure 4, Dispatching Unit 303 includes following submodule: obtaining module 401, initial parsing module
402, the first distribution module 403, again parsing module 404, the second distribution module 405.
Module 401 is wherein obtained for obtaining business.
Initial parsing module 402 is connect with module is obtained, for carrying out Preliminary Analysis to business.
First distribution module 403 is connect with initial parsing module 402, for the business after Preliminary Analysis to be put into communication team
In column.
Parsing module 404 is connect with the first distribution module 403 again, for obtaining the business in communication queue and carrying out again
Secondary parsing.
Second distribution module 405 is connect with parsing module 404 again, for the business after parsing again to be put into accordingly
Handle queue.
Processing unit 304 is connect with Dispatching Unit 303, for handling the business in respective handling queue.
The application has the advantages that
(1) method of business processing provided by the present application and its architecture system can will quickly read class business and write class industry
Business distinguishes, and what is handled between realization business is independent of each other.
(2) method of business processing provided by the present application and its architecture system can be by advance to the thin of type of service
Change, just can obtain the action type of business by tabling look-up when getting a certain business, is convenient for subsequent traffic differentiation, is fast
Fast processing business provides the foundation.
(3) method of business processing provided by the present application and its architecture system can multithreading obtain business, and according to industry
The difference of business is distributed to different processing queues, more convenient in exploitation also to solve the resistance because of reading class business simultaneously with efficient
The problem of plug causes other follow-up business not handle in time.
Although the example of present application reference is described, it is intended merely to the purpose explained rather than the limit to the application
System, the change to embodiment, increase and/or deletion can be made without departing from scope of the present application.
The above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, it is any
Those familiar with the art within the technical scope of the present application, can easily think of the change or the replacement, and should all contain
Lid is within the scope of protection of this application.Therefore, the protection scope of the application should be based on the protection scope of the described claims.
Claims (10)
1. a kind of method of business processing, which is characterized in that specifically includes the following steps:
Acquisition business, business is put into communication queue;
The business in communication queue is obtained, and business is put into corresponding processing queue;
Handle the business in the processing queue.
2. the method for business processing as described in claim 1, which is characterized in that before acquisition business, further include, to business into
Row initialization, specifically includes the following steps:
Initialize array;
The subscript value of array after modification initialization;
Modified array is saved.
3. the method for business processing as claimed in claim 2, which is characterized in that the array of initialization is the number that system issues
Group, includes several subscripts in the array, and each subscript is indicated by service number.
4. the method for business processing as claimed in claim 3, which is characterized in that each subscript in initialize array is corresponding
Subscript value be disposed as 0.
5. the method for business processing as claimed in claim 2, which is characterized in that the subscript value of the array after modification initialization
Before, further include that a corresponding table is established and stored in database, include that service number is corresponding with type of service in corresponding table
Subscript value in relationship and service number.
6. the method for business processing as claimed in claim 5, which is characterized in that be arranged in corresponding with service number according to type of service
Subscript value, traverse the subscript value modification that corresponding table completes initialize array.
7. the method for business processing as described in claim 1, which is characterized in that solved to the business obtained from communication queue
Analysis according to the corresponding service number of parsing acquisition business, and searches the subscript for corresponding to service number described in table according to the service number
Value obtains type of service.
8. the method for business processing as claimed in claim 7, which is characterized in that if the type of service obtained is reading business,
The reading business is put into reading processing queue, if the type of service obtained is to write service, the reading business is put into and writes team
In column.
9. a kind of business processing architecture system, which is characterized in that specifically include: initialization unit, modification storage unit, distribution are single
Member, processing unit;
Initialization unit, for carrying out the initialization of business;
Modify storage unit, for modify initialize after array subscript value, and modified array is stored in system
In depositing;
Dispatching Unit obtains business and the distribution of services is handled queue to corresponding if completing for business initializtion;
Processing unit, for handling the business in respective handling queue.
10. business processing architecture system as claimed in claim 9, which is characterized in that Dispatching Unit includes following submodule: being obtained
Modulus block, initial parsing module, the first distribution module, again parsing module, the second distribution module;
Module is wherein obtained for obtaining business;
Initial parsing module, for carrying out Preliminary Analysis to business;
First distribution module, for the business after Preliminary Analysis to be put into communication queue;
Parsing module again, for obtaining the business in communication queue and being parsed again;
Second distribution module, for the business after parsing again to be put into corresponding processing queue.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910703377.6A CN110457379A (en) | 2019-07-31 | 2019-07-31 | A kind of method and its architecture system of business processing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910703377.6A CN110457379A (en) | 2019-07-31 | 2019-07-31 | A kind of method and its architecture system of business processing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110457379A true CN110457379A (en) | 2019-11-15 |
Family
ID=68484338
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910703377.6A Pending CN110457379A (en) | 2019-07-31 | 2019-07-31 | A kind of method and its architecture system of business processing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110457379A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110996134A (en) * | 2019-12-23 | 2020-04-10 | 腾讯科技(深圳)有限公司 | Video playing method, device and storage medium |
CN112002083A (en) * | 2020-10-27 | 2020-11-27 | 恒银金融科技股份有限公司 | Business blockage early warning system applied to bank self-service equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103312808A (en) * | 2013-06-24 | 2013-09-18 | 浪潮电子信息产业股份有限公司 | Cloud operating system bus and communication method thereof |
CN105763595A (en) * | 2015-12-23 | 2016-07-13 | 杭州赫智电子科技有限公司 | Method of improving data processing efficiency and server |
CN105827604A (en) * | 2016-03-15 | 2016-08-03 | 深圳市游科互动科技有限公司 | Server and service processing method thereof |
CN106453136A (en) * | 2016-09-05 | 2017-02-22 | 深圳前海微众银行股份有限公司 | Method and device for establishing message queue |
-
2019
- 2019-07-31 CN CN201910703377.6A patent/CN110457379A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103312808A (en) * | 2013-06-24 | 2013-09-18 | 浪潮电子信息产业股份有限公司 | Cloud operating system bus and communication method thereof |
CN105763595A (en) * | 2015-12-23 | 2016-07-13 | 杭州赫智电子科技有限公司 | Method of improving data processing efficiency and server |
CN105827604A (en) * | 2016-03-15 | 2016-08-03 | 深圳市游科互动科技有限公司 | Server and service processing method thereof |
CN106453136A (en) * | 2016-09-05 | 2017-02-22 | 深圳前海微众银行股份有限公司 | Method and device for establishing message queue |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110996134A (en) * | 2019-12-23 | 2020-04-10 | 腾讯科技(深圳)有限公司 | Video playing method, device and storage medium |
CN112002083A (en) * | 2020-10-27 | 2020-11-27 | 恒银金融科技股份有限公司 | Business blockage early warning system applied to bank self-service equipment |
CN112002083B (en) * | 2020-10-27 | 2021-02-19 | 恒银金融科技股份有限公司 | Business blockage early warning system applied to bank self-service equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102713826B (en) | Methods and apparatuses to allocate file storage via tree representations of a bitmap | |
US5093912A (en) | Dynamic resource pool expansion and contraction in multiprocessing environments | |
US5418949A (en) | Page map, metamap, and relation group file management supervised by operation means for allocating, storing, and searching friendly and exclusive data items | |
US20040236743A1 (en) | Database reorganization technique | |
CN103226598B (en) | Access method and apparatus and the data base management system of data base | |
CN102236580B (en) | Method for distributing node to ETL (Extraction-Transformation-Loading) task and dispatching system | |
CN102314506B (en) | Based on the distributed buffering district management method of dynamic index | |
CN105630865A (en) | N-BIT compressed versioned column data array for in-memory columnar stores | |
CN110457379A (en) | A kind of method and its architecture system of business processing | |
US20180039628A1 (en) | System and method for providing dynamic relocation of tenants in a multi-tenant database environment | |
CN104573112B (en) | Page interrogation method and data processing node in OLTP Cluster Databases | |
CN109359063A (en) | Caching replacement method, storage equipment and storage medium towards storage system software | |
CN105512188A (en) | Data connection method and data connection system | |
US7676604B2 (en) | Task context direct indexing in a protocol engine | |
CN103258047B (en) | A kind of data organization method towards medicine enterprise Activity-Based Cost Control data warehouse | |
US20230325242A1 (en) | Fast shutdown of large scale-up processes | |
US6202134B1 (en) | Paging processing system in virtual storage device and paging processing method thereof | |
US20180011897A1 (en) | Data processing method having structure of cache index specified to transaction in mobile environment dbms | |
US20060143211A1 (en) | Method and system for managing data storage for dynamically changing data area attribute | |
CN106897224A (en) | A kind of software test method of determining range and device | |
CN102981964B (en) | The management method of data space and system | |
CN1961296A (en) | Buffer apparatus and method | |
CN112199401B (en) | Data request processing method, device, server, system and storage medium | |
US11474938B2 (en) | Data storage system with multiple-size object allocator for disk cache | |
CN103927134A (en) | Harddisk load balancing method, operating system and storage control device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191115 |