CN102404786A - Method and device for controlling service jam - Google Patents

Method and device for controlling service jam Download PDF

Info

Publication number
CN102404786A
CN102404786A CN2010102817358A CN201010281735A CN102404786A CN 102404786 A CN102404786 A CN 102404786A CN 2010102817358 A CN2010102817358 A CN 2010102817358A CN 201010281735 A CN201010281735 A CN 201010281735A CN 102404786 A CN102404786 A CN 102404786A
Authority
CN
China
Prior art keywords
service
invocation request
unit
business
service invocation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2010102817358A
Other languages
Chinese (zh)
Other versions
CN102404786B (en
Inventor
金晨
陈兵
吴雁萍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Group Jiangsu Co Ltd
Original Assignee
China Mobile Group Jiangsu Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Group Jiangsu Co Ltd filed Critical China Mobile Group Jiangsu Co Ltd
Priority to CN201010281735.8A priority Critical patent/CN102404786B/en
Publication of CN102404786A publication Critical patent/CN102404786A/en
Application granted granted Critical
Publication of CN102404786B publication Critical patent/CN102404786B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a method and a device for controlling a service jam. When a service invocation request is received, the device determines whether the present request can satisfy a predetermined isolation processing condition or not. If the condition is satisfied, the service invocation request is sent to a business service backup unit for processing. If the condition is not satisfied, the service invocation request is sent to a business service unit so as to ensure processing capability of the business service units and effectively avoid the jam of the business service units.

Description

A kind of method and device of controlling professional obstruction
Technical field
The present invention relates to mobile communication technology, refer to a kind of professional method and device that blocks of controlling especially.
Background technology
Transaction middleware is widely used in mobile communication business support field, is mainly used in high concurrent real-time inquiry and the affairs with high performance requirements of support and concludes the business.Business functions such as mobile communication business support field is common supplements with money, pay the fees, inventory inquiry, bill inquiry, inquiry into balance provide through middleware services usually.Transaction middleware all externally provides service call with the packing service form.The client call middleware services, middleware services and database connect, and require the business datum in inquiry or the operating database according to service logic, and the result is returned to client.Common transaction middleware comprises Tuxedo, CICS, TongEASY etc.
Referring to Fig. 1, Fig. 1 is the structure chart of prior art transaction middleware.Wherein, comprise client service call unit, business service unit and database.Said client service call unit is used to receive pending service invocation request, sends to said business service cell processing; The business datum of preserving in the binding data storehouse, said business service unit is handled service invocation request.
In large-scale communication traffic support system because type service is numerous, need be in same service be used with different service encapsulates, realize controlled and code multiplexing of application scale, like this in the business service unit with regard to integrated multiple service application.Therefore, cause that because of database lock or self performance reason the business service unit blocks in case a certain business service occurs, with all business that influence in the business service unit.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of professional method and device that blocks of controlling, and uses method provided by the present invention and install effectively to stop business service unit cause clogging.
For achieving the above object, technical scheme of the present invention is achieved in that
A kind of method of controlling professional obstruction, this method comprises:
Receive service invocation request, judge whether the service invocation request of current reception satisfies the isolation processing condition that is provided with,, then this service invocation request is sent at the business service stand-by unit and handles if satisfy; If do not satisfy, then this service invocation request be sent to the business service unit.
A kind of device of controlling professional obstruction, this device comprises client service call unit, service dispatch unit, business service unit, business service stand-by unit and database;
Said client service call unit is used to receive service invocation request, and is sent to said service dispatch unit;
Said service dispatch unit is used to receive service invocation request, judges whether the service invocation request of current reception satisfies the isolation processing condition that is provided with, if satisfy, then this service invocation request is sent to said business service stand-by unit and handles; If do not satisfy, then this service invocation request be sent to said business service unit;
Said business service unit and business service stand-by unit are used to receive the service invocation request of the transmission of said service dispatch unit, and the business datum of preserving in the binding data storehouse is handled service invocation request;
Said database is used to preserve business datum.
A kind of professional method and device that blocks of controlling provided by the present invention; Through when receiving service invocation request; Whether the service invocation request of judging current reception satisfies the isolation processing condition that is provided with; If satisfy, then this service invocation request be sent at the business service stand-by unit and handle; If do not satisfy, then this service invocation request is sent to the business service unit, guaranteed the disposal ability of business service unit, can effectively stop business service unit cause clogging.
Description of drawings
Fig. 1 is the structure chart of prior art transaction middleware;
Fig. 2 is the exemplary process diagram of the inventive method;
Fig. 3 is the structure chart of apparatus of the present invention;
Fig. 4 is the structure chart of the embodiment of the invention.
Embodiment
In the detailed description of this part, only pass through example to the desired best mode of inventor of embodiment of the present invention, illustrate and described preferred embodiment of the present invention.It will be appreciated that and not deviate under the prerequisite of the present invention, it is made amendment with regard to each conspicuous aspect.Correspondingly, it is exemplary in itself that drawing and description should be regarded as, rather than restrictive.
Referring to Fig. 2, Fig. 2 is the exemplary process diagram of the inventive method.This method comprises: in step 201, receive service invocation request; In step 202, judge whether the service invocation request of current reception satisfies the isolation processing condition that is provided with, if satisfy, then execution in step 203; If do not satisfy, then execution in step 204.In step 203, this service invocation request is sent to the business service stand-by unit handles.In step 204, this service invocation request is sent to the business service unit.Method of the present invention is sent to the business service stand-by unit with the service invocation request of receiving and handles through under the situation that satisfies the isolation processing condition, has guaranteed the disposal ability of business service unit, can effectively stop business service unit cause clogging.
Isolation processing condition wherein can be provided with according to concrete application scenarios and processing demands.Here, said isolation processing condition can comprise: the bar number of the service invocation request that the business service unit can be handled; Accordingly, whether the service invocation request that said judging unit receives satisfies the isolation processing condition that is provided with is: judge that the business service unit works as the service invocation request of pre-treatment and whether reached maximum processing bar number, if then satisfy the isolation processing condition; Otherwise, do not satisfy the isolation processing condition.
Said isolation processing condition can also comprise: in the blocking time of setting, the obstruction business is sent to the business service stand-by unit and handles; Accordingly, this method further comprises: when confirming that said business service cell processing service invocation request is failed, it is professional that this service invocation request corresponding service is confirmed as obstruction;
Whether the service invocation request that said judging unit receives satisfies the isolation processing condition that is provided with: whether the service invocation request corresponding service of judging current reception is the obstruction business of confirming and is in the blocking time of setting, to receive; If then satisfy the isolation processing condition; Otherwise, do not satisfy the isolation processing condition.
Wherein, Saidly confirm that the said service invocation request failure of said business service cell processing can be: when what confirm that the business service unit returns is service call failure response message; When perhaps in the expiration time of setting, not receiving the response message of returning the business service unit, confirm the said service invocation request failure of said business service cell processing.
The isolation processing condition of describing among the present invention can comprise above-mentioned one or many similar above-mentioned isolation processing rules.
In addition, when receiving a plurality of service invocation request etc. when pending,, judge successively from high to low whether the service invocation request of current reception satisfies the isolation processing condition that is provided with then according to the height of each service invocation request transmit leg priority.Here the transmit leg of the service invocation request of indication refers to the transmit leg of initiating service invocation request, such as business hall, mobile phone terminal and online business hall etc.Can be according to the priority that these transmit legs are provided with, the service invocation request of priority treatment high priority transmit leg.Here, saidly receive pending being meant such as a plurality of service invocation request: when in waiting pending formation, having a plurality of service invocation request, then just handle, realized that differentiated service inserts to handle according to the priority of service invocation request.
When receiving service invocation request, can also service invocation request be converted to the consolidation form of setting, carry out the operation whether service invocation request of judging current reception satisfies the isolation processing condition that is provided with again.Owing to the unification of form, help carrying out the unit raising treatment effeciency of judgement.
In addition, referring to Fig. 3, Fig. 3 also provides a kind of professional device that blocks of controlling for the present invention.This device comprises client service call unit, service dispatch unit, business service unit, business service stand-by unit and database.
Wherein, said client service call unit is used to receive service invocation request, and is sent to said service dispatch unit; Said service dispatch unit is used to receive service invocation request, judges whether the service invocation request of current reception satisfies the isolation processing condition that is provided with, if satisfy, then this service invocation request is sent to said business service stand-by unit and handles; If do not satisfy, then this service invocation request be sent to said business service unit; Said business service unit and business service stand-by unit are used to receive the service invocation request of the transmission of said service dispatch unit, and the business datum of preserving in the binding data storehouse is handled service invocation request; Said database is used to preserve business datum.
Wherein, said isolation processing condition comprises the bar number of the service invocation request that the business service unit can be handled; Said service dispatch unit; Whether the service invocation request that judging unit receives satisfies the isolation processing condition that is provided with: judge that the business service unit works as the service invocation request of pre-treatment and whether reached maximum processing bar number; If then satisfy the isolation processing condition; Otherwise, do not satisfy the isolation processing condition.
Wherein, said isolation processing condition is included in and in blocking time of setting the obstruction business is sent to the business service stand-by unit and handles; Said service dispatch unit, when being used for confirming that said business service cell processing service invocation request is failed, it is professional that this service invocation request corresponding service is confirmed as obstruction; Accordingly; Whether the service invocation request that judging unit receives satisfies the isolation processing condition that is provided with: whether the service invocation request corresponding service of judging current reception is the obstruction business of confirming and is in the blocking time of setting, to receive; If then satisfy the isolation processing condition; Otherwise, do not satisfy the isolation processing condition.
Said client service call unit is used to receive the service response that business service unit and business service stand-by unit return; What return in definite business service unit is service call failure response message; When perhaps in the expiration time of setting, not receiving the response message of returning the business service unit; Confirm the said service invocation request failure of said business service cell processing, and notify said service dispatch unit; Said service dispatch unit, in the notice of receiving that said business service unit sends, when confirming that said business service cell processing service invocation request is failed, it is professional that this service invocation request corresponding service is confirmed as obstruction.
Wherein, said service dispatch unit according to the height of each service invocation request transmit leg priority, judges whether the service invocation request of current reception satisfies the isolation processing condition that is provided with when receiving a plurality of service invocation request etc. when pending from high to low successively.
In addition, this device further comprises: the service interface unit; Said service interface unit is used to receive the service invocation request that said client call unit sends, convert the service invocation request that receives the consolidation form of setting to after, again the service invocation request after the format conversion is sent to the service dispatch cell processing.Here, the client service call unit sends the mode of service dispatch unit, can be to transmit through interface unit, also can be directly notification instruction to be sent to the service dispatch unit.
Below enumerate embodiment technical scheme of the present invention is carried out more detailed introduction.In the isolation processing condition of present embodiment, comprise two isolation processing rules, one is: the bar number of the service invocation request that the business service unit can be handled; Another is in the blocking time of setting, the obstruction business to be sent to the business service stand-by unit and to handle.
Referring to Fig. 4, Fig. 4 is the flow chart of the embodiment of the invention:
In step 401, receive service invocation request.
In step 402, judge whether the business service unit has reached maximum processing bar number when the service invocation request of pre-treatment, if, execution in step 404; Otherwise, execution in step 403.
In step 403, whether the service invocation request corresponding service of judging current reception is that the obstruction confirmed is professional and in the blocking time of setting, receiving, if, execution in step 404; Otherwise, execution in step 405.
In step 404, the service invocation request of current reception is sent to the business service stand-by unit handles, finish current handling process.
In step 405, the service invocation request of current reception is sent to the business service cell processing, finish current handling process.
Business service stand-by unit and business service unit can return the service response of handling service invocation request.When confirming that said business service cell processing service invocation request is failed; It is professional that this service invocation request corresponding service is confirmed as obstruction; Be illustrated in the blocking time of setting; All can't help the business service cell processing, handle, and then guarantee the operate as normal of business service unit but transfer to the business service stand-by unit., the processing of a service invocation request failure means that resource corresponding in the business service unit is occupied, and this service invocation request corresponding service also can't be by normal process accordingly.Therefore in the blocking time that is provided with, do not handle such professional corresponding service invocation request, help the recovery of business service cell processing ability.What confirm that the business service unit returns is service call failure response message, when perhaps in the expiration time of setting, not receiving the response message of returning the business service unit, then can confirm the said service invocation request failure of said business service cell processing.
The assurance that technical scheme of the present invention is favourable block influence to middleware system, ensured the availability of overall system to greatest extent.When sending obstruction, can isolate fast or eliminate and block other professional influences.
The above is merely preferred embodiment of the present invention, and is in order to restriction the present invention, not all within spirit of the present invention and principle, any modification of being made, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (12)

1. control professional method of blocking for one kind, it is characterized in that this method comprises:
Receive service invocation request, judge whether the service invocation request of current reception satisfies the isolation processing condition that is provided with,, then this service invocation request is sent at the business service stand-by unit and handles if satisfy; If do not satisfy, then this service invocation request be sent to the business service unit.
2. method according to claim 1 is characterized in that,
Said isolation processing condition comprises: the bar number of the service invocation request that the business service unit can be handled;
Whether the service invocation request that said judging unit receives satisfies the isolation processing condition that is provided with: judge that the business service unit works as the service invocation request of pre-treatment and whether reached maximum processing bar number, if then satisfy the isolation processing condition; Otherwise, do not satisfy the isolation processing condition.
3. method according to claim 1 is characterized in that,
Said isolation processing condition comprises: in the blocking time of setting, the obstruction business is sent to the business service stand-by unit and handles;
This method further comprises: when confirming that said business service cell processing service invocation request is failed, it is professional that this service invocation request corresponding service is confirmed as obstruction;
Whether the service invocation request that said judging unit receives satisfies the isolation processing condition that is provided with: whether the service invocation request corresponding service of judging current reception is the obstruction business of confirming and is in the blocking time of setting, to receive; If then satisfy the isolation processing condition; Otherwise, do not satisfy the isolation processing condition.
4. method according to claim 3 is characterized in that, the said service invocation request failure of said definite said business service cell processing is:
When what confirm that the business service unit returns is service call failure response message, when perhaps in the expiration time of setting, not receiving the response message of returning the business service unit, confirms the said service invocation request failure of said business service cell processing.
5. method according to claim 1 is characterized in that,
When receiving a plurality of service invocation request etc. when pending,, judge successively from high to low whether the service invocation request of current reception satisfies the isolation processing condition that is provided with according to the height of each service invocation request transmit leg priority.
6. method according to claim 1 is characterized in that
When receiving service invocation request, convert service invocation request the consolidation form of setting to, carry out the operation whether service invocation request of judging current reception satisfies the isolation processing condition of setting again.
7. control the professional device that blocks for one kind, it is characterized in that this device comprises client service call unit, service dispatch unit, business service unit, business service stand-by unit and database;
Said client service call unit is used to receive service invocation request, and is sent to said service dispatch unit;
Said service dispatch unit is used to receive service invocation request, judges whether the service invocation request of current reception satisfies the isolation processing condition that is provided with, if satisfy, then this service invocation request is sent to said business service stand-by unit and handles; If do not satisfy, then this service invocation request be sent to said business service unit;
Said business service unit and business service stand-by unit are used to receive the service invocation request of the transmission of said service dispatch unit, and the business datum of preserving in the binding data storehouse is handled service invocation request;
Said database is used to preserve business datum.
8. device according to claim 7 is characterized in that,
Said isolation processing condition comprises the bar number of the service invocation request that the business service unit can be handled;
Said service dispatch unit; Whether the service invocation request that judging unit receives satisfies the isolation processing condition that is provided with: judge that the business service unit works as the service invocation request of pre-treatment and whether reached maximum processing bar number; If then satisfy the isolation processing condition; Otherwise, do not satisfy the isolation processing condition.
9. device according to claim 7 is characterized in that,
Said isolation processing condition is included in and in blocking time of setting the obstruction business is sent to the business service stand-by unit and handles;
Said service dispatch unit, when being used for confirming that said business service cell processing service invocation request is failed, it is professional that this service invocation request corresponding service is confirmed as obstruction; Accordingly; Whether the service invocation request that judging unit receives satisfies the isolation processing condition that is provided with: whether the service invocation request corresponding service of judging current reception is the obstruction business of confirming and is in the blocking time of setting, to receive; If then satisfy the isolation processing condition; Otherwise, do not satisfy the isolation processing condition.
10. device according to claim 9 is characterized in that,
Said client service call unit is used to receive the service response that business service unit and business service stand-by unit return; What return in definite business service unit is service call failure response message; When perhaps in the expiration time of setting, not receiving the response message of returning the business service unit; Confirm the said service invocation request failure of said business service cell processing, and notify said service dispatch unit;
Said service dispatch unit, in the notice of receiving that said business service unit sends, when confirming that said business service cell processing service invocation request is failed, it is professional that this service invocation request corresponding service is confirmed as obstruction.
11. device according to claim 7 is characterized in that,
Said service dispatch unit according to the height of each service invocation request transmit leg priority, judges whether the service invocation request of current reception satisfies the isolation processing condition that is provided with when receiving a plurality of service invocation request etc. when pending from high to low successively.
12. device according to claim 7 is characterized in that, this device further comprises: the service interface unit;
Said service interface unit is used to receive the service invocation request that said client call unit sends, convert the service invocation request that receives the consolidation form of setting to after, again the service invocation request after the format conversion is sent to the service dispatch cell processing.
CN201010281735.8A 2010-09-14 2010-09-14 Method and device for controlling service jam Expired - Fee Related CN102404786B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010281735.8A CN102404786B (en) 2010-09-14 2010-09-14 Method and device for controlling service jam

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010281735.8A CN102404786B (en) 2010-09-14 2010-09-14 Method and device for controlling service jam

Publications (2)

Publication Number Publication Date
CN102404786A true CN102404786A (en) 2012-04-04
CN102404786B CN102404786B (en) 2015-07-01

Family

ID=45886462

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010281735.8A Expired - Fee Related CN102404786B (en) 2010-09-14 2010-09-14 Method and device for controlling service jam

Country Status (1)

Country Link
CN (1) CN102404786B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016188282A1 (en) * 2015-05-25 2016-12-01 阿里巴巴集团控股有限公司 Message processing method, device and system
CN106375234A (en) * 2016-08-24 2017-02-01 广西小草信息产业有限责任公司 Service processing method and system
CN110308976A (en) * 2018-03-27 2019-10-08 优酷网络技术(北京)有限公司 Task processing method and device
CN111580476A (en) * 2020-04-30 2020-08-25 联宝(合肥)电子科技有限公司 Intelligent production management method, equipment and computer readable medium
CN112002083A (en) * 2020-10-27 2020-11-27 恒银金融科技股份有限公司 Business blockage early warning system applied to bank self-service equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040179476A1 (en) * 2003-03-10 2004-09-16 Sung-Ha Kim Apparatus and method for controlling a traffic switching operation based on a service class in an ethernet-based network
CN101170488A (en) * 2006-10-25 2008-04-30 华为技术有限公司 Service network congestion control method and device
CN101483601A (en) * 2009-02-13 2009-07-15 杭州华三通信技术有限公司 Scheduling method and apparatus based on service priority
CN101534244A (en) * 2009-02-09 2009-09-16 华为技术有限公司 Method, device and system for load distribution
CN101730145A (en) * 2008-10-29 2010-06-09 上海华为技术有限公司 Method, device and system of load balancing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040179476A1 (en) * 2003-03-10 2004-09-16 Sung-Ha Kim Apparatus and method for controlling a traffic switching operation based on a service class in an ethernet-based network
CN101170488A (en) * 2006-10-25 2008-04-30 华为技术有限公司 Service network congestion control method and device
CN101730145A (en) * 2008-10-29 2010-06-09 上海华为技术有限公司 Method, device and system of load balancing
CN101534244A (en) * 2009-02-09 2009-09-16 华为技术有限公司 Method, device and system for load distribution
CN101483601A (en) * 2009-02-13 2009-07-15 杭州华三通信技术有限公司 Scheduling method and apparatus based on service priority

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016188282A1 (en) * 2015-05-25 2016-12-01 阿里巴巴集团控股有限公司 Message processing method, device and system
US10700993B2 (en) 2015-05-25 2020-06-30 Alibaba Group Holding Limited Controlling message output
CN106375234A (en) * 2016-08-24 2017-02-01 广西小草信息产业有限责任公司 Service processing method and system
CN110308976A (en) * 2018-03-27 2019-10-08 优酷网络技术(北京)有限公司 Task processing method and device
CN110308976B (en) * 2018-03-27 2022-02-11 阿里巴巴(中国)有限公司 Task processing method and device
CN111580476A (en) * 2020-04-30 2020-08-25 联宝(合肥)电子科技有限公司 Intelligent production management method, equipment and computer readable medium
CN111580476B (en) * 2020-04-30 2021-05-11 联宝(合肥)电子科技有限公司 Intelligent production management method, equipment and computer readable 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

Also Published As

Publication number Publication date
CN102404786B (en) 2015-07-01

Similar Documents

Publication Publication Date Title
CN101022431B (en) Interface gateway and interface gateway data processing method
CN101378334B (en) Communication method based on dual-network redundant universal network model
CN102404786A (en) Method and device for controlling service jam
CN103888441A (en) Information transmitting method between application and protocol stack and processing device
CN104581219A (en) Control method of stream media forwarding server
CN102469064A (en) Method for implementing communication and communication equipment
CN104579905A (en) Message passing method and system, MOM (message oriented middleware) server and receiving terminal
CN101594270A (en) A kind of WAP (wireless access point) and bandwidth allocation methods thereof
CN101478439A (en) Uniform service management platform, interface machine, service processing system and process method
CN102244584A (en) Machine-to-machine/man (M2M) platform communication system and method
CN106027534A (en) System for implementing financial message processing based on Netty
CN105007304A (en) SOA-based enterprise information technology system data exchange and integration system
EP2439881B1 (en) Cluster system and request message distribution method for processing multi-node transaction
CN106096958A (en) A kind of IC-card unbinds method with bank card
CN103677975A (en) System and method for having access to internal objects of application systems
CN102737452A (en) Terminal mobile machine monitoring method and system
CN109118822B (en) Intelligent parking management method and platform
CN101159716A (en) Gateway system and message service processing method thereof
CN105376155A (en) Intelligent route system and method based on distributed cluster framework
CN100362808C (en) Method for realizing mutual exclusion of operation of LMT system and OMC system
CN104540105A (en) Uplink and downlink transmission method and system for mobile information
CN101001412A (en) Short message gateway bridging system, method and short message gateway bridge module
US20200349638A1 (en) Stellar banks external transaction agent for international remittance on stellar network
CN102833357A (en) Interface platform communicating with third party
CN103413096A (en) Data transmission method and device and data receiving method and device

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150701

CF01 Termination of patent right due to non-payment of annual fee