CN106341280A - Service processing method and device - Google Patents
Service processing method and device Download PDFInfo
- Publication number
- CN106341280A CN106341280A CN201610979215.1A CN201610979215A CN106341280A CN 106341280 A CN106341280 A CN 106341280A CN 201610979215 A CN201610979215 A CN 201610979215A CN 106341280 A CN106341280 A CN 106341280A
- Authority
- CN
- China
- Prior art keywords
- processor
- subservice
- request
- asynchronous
- business
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/51—Discovery or management thereof, e.g. service location protocol [SLP] or web services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention relates to a service processing method and device. The method comprises that a service request which comprises sub service requests is obtained; service chain configuration information corresponding to the service request is searched; a service processor is configured according to the service chain configuration information; and each sub service request in the service request is sent to the corresponding service processor according to a preset type of the sub service request, so that processing results of different service processors are obtained. According to the service processing method, the service request is divided into the sub service requests, the sub service requests are classified according to the types, each service processor is configured according the service chain configuration information corresponding to the service request, the sub service requests are sent to the corresponding service processors, different service processors are configured for different service requests by configuring the service processors corresponding to the sub service requests, and the service request is divided into the sub service requests so as to improve the service processing efficiency.
Description
Technical field
The present invention relates to field of computer technology, more particularly to a kind of method and device for business processing.
Background technology
With the development of Internet technology, network relate to the various aspects such as life, amusement;The business initiated by network
The quantity of request and complexity are all lifted rapid, but the service request amount of rapid lifting and the service request pair becoming increasingly complex
The method of processing business request proposes requirement.
Traditional method for processing business mostly is operational processor and carrys out processing business request by the way of recursive sequence execution,
The operation of Business Processing can be made by the way of recursive sequence execution succinct, but in the executive mode of recursive sequence execution each
Actuator all needs to comprise a processor, current processor and next processor, leads to the efficiency of processor processing business request
Relatively low.
Content of the invention
Based on this it is necessary to for the less efficient problem of traditional method for processing business, provide a kind of Business Processing side
Method and device.
A kind of method for processing business, comprising:
Obtain service request, described service request includes subservice request;
Search business chain configuration information corresponding with described service request;
According to described business chain configuration information configuration service processor;
According to default subservice request type, the subservice request in described service request is sent to corresponding business
Processor, to obtain the result of each operational processor.
Wherein in an embodiment, described operational processor includes serial processor and parallel processor, described sub- industry
Business request type includes that logic is related and subservice that need synchronous execution please sum logic be unrelated and subservice that need synchronous execution
Request;
Described according to default subservice request type by described service request subservice request be sent to corresponding
Operational processor, is included with the result obtaining each operational processor:
Subservice request that is related for logic and needing synchronous execution is sent to described serial processor;
Subservice request that is unrelated for logic and needing synchronous execution is sent to described parallel processor;
The result of serial processor and parallel processor is returned to front end.
Wherein in an embodiment, described operational processor includes asynchronous processor;Described subservice request type bag
Include and need the subservice of asynchronous process to ask;
Described according to default subservice request type by described service request subservice request be sent to corresponding
Operational processor, is included with the result obtaining each operational processor:
The subservice needing asynchronous process is asked to be sent to asynchronous processor, so that described asynchronous processor is according to described need
The subservice request of asynchronous process accesses database and obtains the described subservice corresponding data of request needing asynchronous process, and according to
Described data asks to respond to the described subservice needing asynchronous process, and response results are stored in database.
Wherein in an embodiment, described by need asynchronous process subservice ask be sent to asynchronous processor so that
Described asynchronous processor asks to access the database described son needing asynchronous process of acquisition according to the described subservice needing asynchronous process
The corresponding data of service request includes:
The subservice needing asynchronous process is asked to be sent to asynchronous processor, so that described asynchronous processor is according to described need
The subservice of asynchronous process is asked regular visit database to obtain the described subservice needing asynchronous process and is asked corresponding data.
Wherein in an embodiment, described included according to described business chain configuration information configuration service processor:
Obtain the class of the assembling number, assembling sequence and each operational processor of operational processor in business chain configuration information
Type;
Obtain the operational processor of corresponding number according to described assembling number;
Described operational processor is divided into by serial processor, parallel processor according to the type of described each operational processor
And asynchronous processor;
According to described assembling sequence, described serial processor, parallel processor and asynchronous processor are assembled.
A kind of business processing device, comprising:
Acquisition module, for obtaining service request, described service request includes subservice request;
Searching modul, for searching business chain configuration information corresponding with described service request;
Configuration module, for according to described business chain configuration information configuration service processor;
Sending module, for sending the subservice request in described service request according to default subservice request type
To corresponding operational processor, to obtain the result of each operational processor.
Wherein in an embodiment, described operational processor includes serial processor and parallel processor, described sub- industry
Business request type includes that logic is related and subservice that need synchronous execution please sum logic be unrelated and subservice that need synchronous execution
Request;Described sending module is additionally operable to for subservice request that is related for logic and needing synchronous execution to be sent to described serial process
Device;Subservice request that is unrelated for logic and needing synchronous execution is sent to described parallel processor;By serial processor with parallel
The result of processor returns to front end.
Wherein in an embodiment, described operational processor includes asynchronous processor;Described subservice request type bag
Include and need the subservice of asynchronous process to ask;Described sending module be additionally operable to by need asynchronous process subservice ask be sent to asynchronous
Processor, so that described asynchronous processor asks the access database described need of acquisition different according to the described subservice needing asynchronous process
The subservice that step is processed asks corresponding data, and according to described data, the described subservice needing asynchronous process is asked to make sound
Should, and response results are stored in database.
Wherein in an embodiment, described sending module be additionally operable to by need asynchronous process subservice ask be sent to different
Step processor, so that described asynchronous processor asks regular visit database to obtain institute according to the described subservice needing asynchronous process
State and need the subservice of asynchronous process to ask corresponding data, and according to described data, the described subservice needing asynchronous process is asked
Respond, and response results are stored in database.
Wherein in an embodiment, described configuration module is additionally operable to obtain operational processor in business chain configuration information
The type of assembling number, assembling sequence and each operational processor;Obtain the Business Processing of corresponding number according to described assembling number
Device;Described operational processor is divided into serial processor, parallel processor and different by the type according to described each operational processor
Step processor;According to described assembling sequence, described serial processor, parallel processor and asynchronous processor are assembled.
Above-mentioned method and device for business processing, service request is split as each subservice request, according to the class of service request
Type antithetical phrase service request carries out dividing, according to service request corresponding business chain configuration information configuration service processor, then by son
Service request is sent to corresponding operational processor, by way of configuring subservice and asking corresponding operational processor, can
Realize the operational processors different to different service request configurations, service request is subdivided into the mode of subservice request, energy
Enough improve the efficiency of Business Processing.
Brief description
Fig. 1 is the applied environment schematic diagram of method for processing business in an embodiment;
Fig. 2 is the flow chart of method for processing business in an embodiment;
Fig. 3 is the flow chart of method for processing business in another embodiment;
Fig. 4 is the flow chart of step s208 in Fig. 2 in an embodiment;
Fig. 5 is the flow chart realizing Business Processing in an embodiment;
Fig. 6 is the flow chart realizing Business Processing in another embodiment;
Fig. 7 is the flow chart of step s206 in Fig. 2 in an embodiment;
Fig. 8 is the structured flowchart of business processing device in an embodiment;
Fig. 9 is the structured flowchart of business processing device in another embodiment.
Specific embodiment
In order that the objects, technical solutions and advantages of the present invention become more apparent, below in conjunction with drawings and Examples, right
The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only in order to explain the present invention, and
It is not used in the restriction present invention.
Fig. 1 is the applied environment schematic diagram of method for processing business in an embodiment.As shown in figure 1, this applied environment bag
Include front-end server 110 and back-end server 120, pass through network connection between front-end server 110 and back-end server 120 and lead to
Letter, service request is sent to back-end server 120 by front-end server 110, and back-end server 120 please according to the business receiving
Ask and search corresponding business chain configuration information in database, and according to business chain configuration information configuration service processor, and will
In the service request receiving, different types of subservice request is sent to corresponding operational processor, so that operational processor pair
Subservice request responds, then the subservice request result that need are returned front-end server 110 returns front-end server
110.Wherein, front-end server 110 refers to the transmitting terminal of service request, and back-end server 120 refers to the receiving terminal of service request.
Front-end server 110 can be one or more computer etc.;Back-end server can be one or more computer etc..
Fig. 2 is the flow chart of method for processing business in an embodiment.As shown in Fig. 2 a kind of method of Business Processing, fortune
Row is on the back-end server of Fig. 1, comprising:
S202, obtains service request, and service request includes subservice request.
Specifically, service request is that front-end server is sent to back-end server, and service request includes each subservice
Request.For example, the front-end server service request that server is initiated to the back-end is " renewal inventory information ", above-mentioned service request bag
The subservice request including has " data loading " " business verification " " status modifier " " renewal just in time inventory " " accounting quantity " " to generate empty
Single ".
S204, searches business chain configuration information corresponding with service request.
Specifically, business chain is to be assembled by operational processor, and operational processor refers to the logic of processing business request
Unit.Business chain configuration information refers to the specifying information of configuration service processor, including the assembling number of operational processor, assembling
Sequentially, executive mode of each operational processor etc..Wherein, each service request corresponding business chain configuration information is that program is preset
, business chain configuration information is stored in database, and back-end server can be looked in database according to the service request receiving
Look for corresponding business chain configuration information.Operational processor can be divided into serial processor, parallel processor and different by executive mode
Step processor.Wherein, in serial processor, business is asked for serial synchronous execution, parallel processor business is asked be
Parallel synchronous execute, and asynchronous processor is asked as asynchronous execution to business.Wherein, synchronous execution refers to the execution side of sub- request
Formula is that order executes, i.e. business request must execute step by step in order;Asynchronous execution refers to that business son request need not be by suitable
Sequence executes.
S206, according to business chain configuration information configuration service processor.
Specifically, back-end server is according to the assembling number of operational processor in business chain configuration information, assembling sequence, each
The executive mode of operational processor carrys out configuration service processor, thus realizing at the business different to different service request configurations
Reason device.
Subservice request in service request is sent to corresponding business according to default subservice request type by s208
Processor, to obtain the result of each operational processor.
Specifically, service request includes different subservice requests, and each subservice request has different types.Its
In, the subservice that result need not be returned front end asks to ask for asynchronous process;Need by result return front end and
The subservice with before and after's dependence asks to ask for serial process;Need for result to return to front end and unmatched rear dependence
The subservice of relation is asked as Parallel processing demands.Asynchronous process request is sent to asynchronous processor by back-end server, will go here and there
Row processes request and is sent to serial processor, and Parallel processing demands are sent to parallel processor.For example, front-end server is backward
The service request that end server is initiated is " renewal inventory information ", and the request of subservice that above-mentioned service request includes has that " data adds
Carry " " business verification " " status modifier " " renewal just in time inventory " " accounting quantity " " generating empty single " etc..Wherein, " data loading "
" business verification " " status modifier " be there is before and after's dependence result need to be returned FEP, as at serial
Reason request, operational processor, after the completion of data loading, just can carry out business verification, just can carry out status maintenance after business verification
Change, and result is returned front-end server." renewal just in time inventory " " accounting quantity " " generating empty single " need not will process knot
Fruit returns FEP, as asynchronous process request.
Above-mentioned method for processing business, service request is split as each subservice request, according to the type antithetical phrase of service request
Service request carries out dividing, according to service request corresponding business chain configuration information configuration service processor, then please by subservice
Ask and be sent to corresponding operational processor, by way of configuring subservice and asking corresponding operational processor, it is right to be capable of
The different operational processor of different service request configurations, service request is subdivided into the mode of subservice request, it is possible to increase
The efficiency of Business Processing.
Fig. 3 is the flow chart of method for processing business in another embodiment.As shown in figure 3, front-end server takes to the back-end
Business device initiating business request, back-end server searches corresponding business chain configuration according to the service request receiving in database
Information, carries out business chain assembling according to above-mentioned business chain configuration information, may include business chain serial block, business chain simultaneously in business chain
Row block and asynchronous piece of business chain, wherein, business chain serial block includes serial processor, and business chain parallel block includes parallel place
Reason device, asynchronous piece of business chain includes asynchronous processor.Sub- request is sent out by back-end server according to the executive mode of each sub- request
Give corresponding operational processor, and the result of the result of business chain serial block and business chain parallel block is returned to
Front-end server, the result that asynchronous piece of business chain is stored in database.
Fig. 4 is the flow chart of step s208 in Fig. 2 in an embodiment.As shown in figure 4, in one embodiment, business
Processor includes serial processor and parallel processor, and subservice request type includes the sub- industry that logic is related and needs synchronization to execute
Business is asked sum logic unrelated and is needed the subservice request of synchronous execution;In Fig. 2, step s208 includes:
S402, subservice request that is related for logic and needing synchronous execution is sent to serial processor.
Specifically, logic is related and needs the synchronous subservice executing request to be serial process request.For example, subservice please
Ask " data loading " " business verification " " status modifier " upon execution, just need to can carry out business verification after data loads, in industry
Status modifier just can be carried out, then above-mentioned subservice asks to ask for serial process after business verification.
S404, subservice request that is unrelated for logic and needing synchronous execution is sent to parallel processor.
Specifically, logic is unrelated and needs the synchronous subservice executing request to be Parallel processing demands.For example, subservice please
Upon execution, dependence can not execute simultaneously in front and back, then above-mentioned to ask " renewal just in time inventory " " accounting " " generating empty single "
Subservice is asked as Parallel processing demands.
S406, the result of serial processor and parallel processor is returned to front end.
In the present embodiment, the subservice request needing synchronous execution is divided at serial dissimilar according to subservice request
Reason request and Parallel processing demands, can make operational processor execute difference according to the type antithetical phrase service request that subservice is asked
Processing mode, improve the efficiency of Business Processing.
Fig. 5 is the flow chart realizing Business Processing in an embodiment.As shown in figure 5, according to business chain configuration information
After having configured business chain, operational processor is divided into the business chain serial block executing successively, business chain parallel block, business by business chain
Chain serial block, business chain presses execution sequence first at " data loading processing device " " business checking processor " when processing business is asked
Serial execution in " status modifier processor " business chain serial block, then at " updating just in time inventory processor " " accounting processor "
Executed in parallel in " generating empty uniprocessor " business chain parallel block, then serial execution business please in follow-up business chain serial block
Ask, result is returned front-end server, the request of business chain processing business terminates.
In one embodiment, operational processor includes asynchronous processor;Subservice request type includes needing asynchronous process
Subservice request;In Fig. 2, step s208 includes:
The subservice needing asynchronous process is asked to be sent to asynchronous processor, so that asynchronous processor is according to needing asynchronous process
Subservice request access database obtain need asynchronous process subservice ask corresponding data, and according to data to need asynchronous
The subservice request processing responds, and response results are stored in database.
In the present embodiment, the business son request that result need not be returned front-end server is divided into asynchronous process please
Ask, back-end server can the result that ask serial process and parallel processing please when asynchronous process request has been not carried out
The result asked returns front-end server, compared to the mode of recurrence execution, saves the process waiting asynchronous process request
The time of result, improve the efficiency of Business Processing.
Fig. 6 is the flow chart realizing Business Processing in another embodiment.As shown in fig. 6, letter is being configured according to business chain
After breath has configured business chain, operational processor is divided into business chain serial block and business chain parallel block, business chain serial by business chain
The serial processor of block process serial traffic request after result is returned front-end server, asynchronous piece of business chain asynchronous
Processor passes through to access the database acquisition asynchronous process corresponding data of request, thus responding to asynchronous process request, and
The result of Asynchronous Request is stored in database.
In one embodiment, asynchronous processor can regular visit database, obtain asynchronous process ask corresponding data,
And ask corresponding data that asynchronous process request is responded according to asynchronous process, and result is stored in database.
Fig. 7 is the flow chart of step s206 in Fig. 2 in an embodiment.As shown in fig. 7, in one embodiment, in Fig. 2
Step s206 includes:
S702, obtains the assembling number of operational processor, assembling sequence and each operational processor in business chain configuration information
Type.
Specifically, the type of operational processor includes serial processor, parallel processor and asynchronous processor.Wherein, go here and there
Row processor can be assembled into business chain serial block, parallel processor can be assembled into business chain parallel block, asynchronous processor can be assembled
Become asynchronous piece of business chain.In business chain configuration information, assembling sequence may include the assembling of each serial processor in business chain serial block
Sequentially, the assembling sequence of each parallel block in business chain parallel block, in asynchronous piece of business chain each asynchronous processor assembling sequence, also
Including the assembling sequence between business chain serial block, business chain parallel block and asynchronous piece of business chain.
S704, obtains the operational processor of corresponding number according to assembling number.
S706, the type according to each operational processor by operational processor be divided into serial processor, parallel processor and
Asynchronous processor.
Specifically, the type according to operational processor can divide to operational processor.For example, front-end server is backward
The service request that end server is initiated is " renewal inventory information ", and the request of subservice that above-mentioned service request includes has that " data adds
Carry " " business verification " " status modifier " " renewal just in time inventory " " accounting quantity " " generating empty single ".Wherein, according to default business
The type subservice of processor asks the executive mode of " data loading " corresponding subservice processor " data loading processing device "
For serial execution, then " data loading processing device " is divided into serial processor.
Serial processor, parallel processor and asynchronous processor are assembled by s708 according to assembling sequence.
Specifically, according to assembling sequence, serial processor is assembled into business chain serial block, is assembled into parallel processor
Business chain parallel block, asynchronous processor is assembled into asynchronous piece of business chain, and by business chain serial block, business chain parallel block, industry
Asynchronous piece of chain of business is assembled in order.
In the present embodiment, according to business chain configuration information configuration service processor, realize to different service request configurations
Different business chain, improves the performance of business chain and the efficiency of Business Processing.
Fig. 8 is the structured flowchart of business processing device in an embodiment.As shown in figure 8, a kind of business processing device, fortune
Go on the back-end server of Fig. 1, for realizing the virtual bench of the method for processing business institute framework of Fig. 2, comprising:
Acquisition module 802 is used for obtaining service request, and service request includes subservice request.
Searching modul 804 is used for searching business chain configuration information corresponding with service request.
Configuration module 806 is used for according to business chain configuration information configuration service processor.
Sending module 808 is used for being sent to the subservice request in service request according to default subservice request type
Corresponding operational processor, to obtain the result of each operational processor.
Above-mentioned business processing device, service request is split as each subservice request, according to the type antithetical phrase of service request
Service request carries out dividing, according to service request corresponding business chain configuration information configuration service processor, then please by subservice
Ask and be sent to corresponding operational processor, by way of configuring subservice and asking corresponding operational processor, it is right to be capable of
The different operational processor of different service request configurations, service request is subdivided into the mode of subservice request, it is possible to increase
The efficiency of Business Processing.
In one embodiment, operational processor includes serial processor and parallel processor, subservice request type bag
The subservice request including logic correlation and needing the subservice of synchronization execution to ask sum logic unrelated and need to synchronous execute;Sending module
808 are additionally operable to for subservice request that is related for logic and needing synchronous execution to be sent to serial processor;By unrelated for logic and need with
The subservice request of step execution is sent to parallel processor;Before the result of serial processor and parallel processor is returned to
End.
In the present embodiment, the subservice request needing synchronous execution is divided at serial dissimilar according to subservice request
Reason request and Parallel processing demands, can make operational processor execute difference according to the type antithetical phrase service request that subservice is asked
Processing mode, improve the efficiency of Business Processing.
In one embodiment, operational processor includes asynchronous processor;Subservice request type includes needing asynchronous process
Subservice request;Sending module 808 is additionally operable to ask to be sent to asynchronous processor by the subservice needing asynchronous process, so that different
It is corresponding that step processor asks access database acquisition to need the subservice of asynchronous process to ask according to the subservice needing asynchronous process
Data, and according to data, the subservice needing asynchronous process is asked to respond, and response results are stored in database.
In the present embodiment, the business son request that result need not be returned front-end server is divided into asynchronous process please
Ask, back-end server can the result that ask serial process and parallel processing please when asynchronous process request has been not carried out
The result asked returns front-end server, compared to the mode of recurrence execution, saves the process waiting asynchronous process request
The time of result, improve the efficiency of Business Processing.
In one embodiment, sending module 808 is additionally operable to ask to be sent to asynchronous place by the subservice needing asynchronous process
Reason device, so that asynchronous processor asks regular visit database to obtain according to the subservice needing asynchronous process needs the son of asynchronous process
The corresponding data of service request, and according to described data, the described subservice needing asynchronous process is asked to respond, and will
Response results are stored in database.
In one embodiment, configuration module 806 is additionally operable to obtain the assembling of operational processor in business chain configuration information
The type of number, assembling sequence and each operational processor;Obtain the operational processor of corresponding number according to assembling number;According to each
Operational processor is divided into serial processor, parallel processor and asynchronous processor by the type of operational processor;According to assembling
Serial processor, parallel processor and asynchronous processor are assembled by order.
In the present embodiment, according to business chain configuration information configuration service processor, realize to different service request configurations
Different business chain, improves the performance of business chain and the efficiency of Business Processing.
Fig. 9 is the structured flowchart of business processing device in another embodiment.As shown in figure 9, in one embodiment, on
State business processing device, including acquisition module 902, searching modul 904, configuration module 906, sending module 908, return module
910, memory module 912.Wherein acquisition module 902, searching modul 904, configuration module 906, sending module 908 is right with Fig. 8
The functions of modules answered is identical.
Acquisition module 902 is used for obtaining service request, and service request includes subservice request.
Searching modul 904 is used for searching business chain configuration information corresponding with service request in database.
Configuration module 906 is used for according to business chain configuration information configuration service processor.Wherein, may include industry in business chain
Business chain serial block, business chain parallel block and asynchronous piece of business chain, business chain serial block includes serial processor, and business chain is parallel
Block includes parallel processor, and asynchronous piece of business chain includes asynchronous processor.
Sending module 908 is used for being sent to the subservice request in service request according to default subservice request type
Corresponding operational processor, to obtain the result of each operational processor.
Return module 910 to be used for returning to the result of the result of business chain serial block and business chain parallel block
Front-end server.
Memory module 912 is used for asynchronous for business chain piece of result is stored in database.
One of ordinary skill in the art will appreciate that realizing all or part of flow process in above-described embodiment method, it is permissible
Instruct related hardware to complete by computer program, described program can be stored in a non-volatile computer and can read
In storage medium, this program is upon execution, it may include as the flow process of the embodiment of above-mentioned each method.Wherein, described storage is situated between
Matter can be magnetic disc, CD, read-only memory (read-only memory, rom) etc..
Embodiment described above only have expressed the several embodiments of the present invention, and its description is more concrete and detailed, but simultaneously
Therefore the restriction to the scope of the claims of the present invention can not be interpreted as.It should be pointed out that for those of ordinary skill in the art
For, without departing from the inventive concept of the premise, some deformation can also be made and improve, these broadly fall into the guarantor of the present invention
Shield scope.Therefore, the protection domain of patent of the present invention should be defined by claims.
Claims (10)
1. a kind of method for processing business is it is characterised in that include:
Obtain service request, described service request includes subservice request;
Search business chain configuration information corresponding with described service request;
According to described business chain configuration information configuration service processor;
According to default subservice request type, the subservice request in described service request is sent to corresponding Business Processing
Device, to obtain the result of each operational processor.
2. method for processing business according to claim 1 it is characterised in that: described operational processor includes serial processor
And parallel processor, described subservice request type include that logic is related and subservice that need synchronous execution please sum logic unrelated
And need the subservice request of synchronous execution;
Described according to default subservice request type by described service request subservice request be sent to corresponding business
Processor, is included with the result obtaining each operational processor:
Subservice request that is related for logic and needing synchronous execution is sent to described serial processor;
Subservice request that is unrelated for logic and needing synchronous execution is sent to described parallel processor;
The result of serial processor and parallel processor is returned to front end.
3. method for processing business according to claim 1 it is characterised in that: described operational processor includes asynchronous process
Device;Described subservice request type includes needing the subservice of asynchronous process to ask;
Described according to default subservice request type by described service request subservice request be sent to corresponding business
Processor, is included with the result obtaining each operational processor:
The subservice needing asynchronous process is asked to be sent to asynchronous processor, so that described asynchronous processor is asynchronous according to described need
The subservice request processing accesses database and obtains the described subservice corresponding data of request needing asynchronous process, and according to described
Data asks to respond to the described subservice needing asynchronous process, and response results are stored in database.
4. method for processing business according to claim 3 is it is characterised in that described ask the subservice needing asynchronous process
It is sent to asynchronous processor, so that described asynchronous processor asks access database to obtain according to the described subservice needing asynchronous process
The described subservice needing asynchronous process is taken to ask corresponding data to include:
The subservice needing asynchronous process is asked to be sent to asynchronous processor, so that described asynchronous processor is asynchronous according to described need
The subservice processing is asked regular visit database to obtain the described subservice needing asynchronous process and is asked corresponding data.
5. method for processing business according to any one of claim 1 to 4 it is characterised in that described according to described business
Chain configuration information configuration service processor includes:
Obtain the type of the assembling number, assembling sequence and each operational processor of operational processor in business chain configuration information;
Obtain the operational processor of corresponding number according to described assembling number;
Described operational processor is divided into serial processor, parallel processor and different by the type according to described each operational processor
Step processor;
According to described assembling sequence, described serial processor, parallel processor and asynchronous processor are assembled.
6. a kind of business processing device is it is characterised in that include:
Acquisition module, for obtaining service request, described service request includes subservice request;
Searching modul, for searching business chain configuration information corresponding with described service request;
Configuration module, for according to described business chain configuration information configuration service processor;
Sending module, right for being sent to the subservice request in described service request according to default subservice request type
The operational processor answered, to obtain the result of each operational processor.
7. business processing device according to claim 6 it is characterised in that: described operational processor includes serial processor
And parallel processor, described subservice request type include that logic is related and subservice that need synchronous execution please sum logic unrelated
And need the subservice request of synchronous execution;Described sending module is additionally operable to subservice request that is related for logic and needing synchronous execution
It is sent to described serial processor;Subservice request that is unrelated for logic and needing synchronous execution is sent to described parallel processor;
The result of serial processor and parallel processor is returned to front end.
8. business processing device according to claim 6 it is characterised in that: described operational processor includes asynchronous process
Device;Described subservice request type includes needing the subservice of asynchronous process to ask;Described sending module is additionally operable to need to asynchronous place
The subservice request of reason is sent to asynchronous processor, so that described asynchronous processor please according to the described subservice needing asynchronous process
Ask and access the described subservice corresponding data of request needing asynchronous process of database acquisition, and different to described need according to described data
The subservice request that step is processed responds, and response results are stored in database.
9. business processing device according to claim 8 it is characterised in that: described sending module is additionally operable to need to asynchronous place
The subservice request of reason is sent to asynchronous processor, so that described asynchronous processor please according to the described subservice needing asynchronous process
Ask regular visit database to obtain the described subservice needing asynchronous process and ask corresponding data, and according to described data to described
The subservice needing asynchronous process is asked to respond, and response results is stored in database.
10. the business processing device according to any one of claim 6 to 9 it is characterised in that: described configuration module is also used
In the type obtaining the assembling number, assembling sequence and each operational processor of operational processor in business chain configuration information;According to
Described assembling number obtains the operational processor of corresponding number;Type according to described each operational processor is by described Business Processing
Device is divided into serial processor, parallel processor and asynchronous processor;According to described assembling sequence by described serial processor and
Row processor and asynchronous processor are assembled.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610979215.1A CN106341280A (en) | 2016-11-04 | 2016-11-04 | Service processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610979215.1A CN106341280A (en) | 2016-11-04 | 2016-11-04 | Service processing method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106341280A true CN106341280A (en) | 2017-01-18 |
Family
ID=57840967
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610979215.1A Pending CN106341280A (en) | 2016-11-04 | 2016-11-04 | Service processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106341280A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108512672A (en) * | 2017-02-24 | 2018-09-07 | 华为技术有限公司 | Arranging service method, business management method and device |
CN112291298A (en) * | 2020-09-18 | 2021-01-29 | 云镝智慧科技有限公司 | Data transmission method and device for heterogeneous system, computer equipment and storage medium |
CN112540856A (en) * | 2019-09-23 | 2021-03-23 | 北京轻享科技有限公司 | Service processing method and electronic equipment |
CN112925557A (en) * | 2021-01-28 | 2021-06-08 | 长沙市到家悠享网络科技有限公司 | Container assembly, processing method and computing equipment |
CN115328670A (en) * | 2022-06-27 | 2022-11-11 | 光大环境科技(中国)有限公司 | Asynchronous task processing method, system and server |
CN115865672A (en) * | 2022-11-21 | 2023-03-28 | 浪潮(北京)电子信息产业有限公司 | Network acceleration method, device, equipment and related components |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101650650A (en) * | 2009-08-17 | 2010-02-17 | 金蝶软件(中国)有限公司 | Realization method of application system |
CN101814161A (en) * | 2009-12-14 | 2010-08-25 | 金蝶软件(中国)有限公司 | Data processing device and application system |
CN105892996A (en) * | 2015-12-14 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | Assembly line work method and apparatus for batch data processing |
-
2016
- 2016-11-04 CN CN201610979215.1A patent/CN106341280A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101650650A (en) * | 2009-08-17 | 2010-02-17 | 金蝶软件(中国)有限公司 | Realization method of application system |
CN101814161A (en) * | 2009-12-14 | 2010-08-25 | 金蝶软件(中国)有限公司 | Data processing device and application system |
CN105892996A (en) * | 2015-12-14 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | Assembly line work method and apparatus for batch data processing |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108512672A (en) * | 2017-02-24 | 2018-09-07 | 华为技术有限公司 | Arranging service method, business management method and device |
CN112540856A (en) * | 2019-09-23 | 2021-03-23 | 北京轻享科技有限公司 | Service processing method and electronic equipment |
CN112291298A (en) * | 2020-09-18 | 2021-01-29 | 云镝智慧科技有限公司 | Data transmission method and device for heterogeneous system, computer equipment and storage medium |
CN112291298B (en) * | 2020-09-18 | 2024-03-01 | 云镝智慧科技有限公司 | Data transmission method, device, computer equipment and storage medium of heterogeneous system |
CN112925557A (en) * | 2021-01-28 | 2021-06-08 | 长沙市到家悠享网络科技有限公司 | Container assembly, processing method and computing equipment |
CN112925557B (en) * | 2021-01-28 | 2023-09-05 | 长沙市到家悠享网络科技有限公司 | Data processing device, method and computing equipment |
CN115328670A (en) * | 2022-06-27 | 2022-11-11 | 光大环境科技(中国)有限公司 | Asynchronous task processing method, system and server |
CN115328670B (en) * | 2022-06-27 | 2023-11-17 | 光大环境科技(中国)有限公司 | Asynchronous task processing method, system and server |
CN115865672A (en) * | 2022-11-21 | 2023-03-28 | 浪潮(北京)电子信息产业有限公司 | Network acceleration method, device, equipment and related components |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106341280A (en) | Service processing method and device | |
CN108920135B (en) | User-defined service generation method and device, computer equipment and storage medium | |
CN102880628B (en) | Hash data storage method and device | |
US20210149924A1 (en) | Clustering of data records with hierarchical cluster ids | |
US11669301B2 (en) | Effectively fusing database tables | |
US20210263903A1 (en) | Multi-level conflict-free entity clusters | |
CN113220573B (en) | Test method and device for micro-service architecture and electronic equipment | |
CN112464317A (en) | Drawing modification method, product management system and computer storage medium | |
CN114997329A (en) | Method, apparatus, device, medium and product for generating a model | |
CN118363932B (en) | Unmanned aerial vehicle-based intelligent patrol method and system | |
CN110888800A (en) | Service interaction function test method, device, storage medium and test system | |
CN110266610B (en) | Traffic identification method and device and electronic equipment | |
CN117273069A (en) | Reasoning method, device, equipment and medium based on neural network model | |
CN112380127B (en) | Test case regression method, device, equipment and storage medium | |
CN116126719A (en) | Interface testing method and device, electronic equipment and storage medium | |
CN113741868B (en) | Service computing task processing method, device, computer equipment and storage medium | |
CN114996433A (en) | Dialog generation method, device and equipment | |
CN113961725A (en) | Automatic label labeling method, system, equipment and storage medium | |
CN113010398A (en) | Service log model, service execution method, device, electronic equipment and medium | |
CN112181825A (en) | Test case library construction method and device, electronic equipment and medium | |
CN111382337A (en) | Information docking matching method and device, server and readable storage medium | |
CN113157736B (en) | Query plan optimization method and system in distributed database | |
CN115952172B (en) | Data matching method and device based on database temporary table | |
CN118567870B (en) | Batch data processing method, device, equipment and storage medium | |
US20240273048A1 (en) | Data operation system, data operation method, 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: 20170118 |
|
RJ01 | Rejection of invention patent application after publication |