CN109257411A - A kind of method for processing business calls management system and computer equipment - Google Patents

A kind of method for processing business calls management system and computer equipment Download PDF

Info

Publication number
CN109257411A
CN109257411A CN201810856671.6A CN201810856671A CN109257411A CN 109257411 A CN109257411 A CN 109257411A CN 201810856671 A CN201810856671 A CN 201810856671A CN 109257411 A CN109257411 A CN 109257411A
Authority
CN
China
Prior art keywords
association
service request
journey
processing
service
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
CN201810856671.6A
Other languages
Chinese (zh)
Other versions
CN109257411B (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201810856671.6A priority Critical patent/CN109257411B/en
Priority to PCT/CN2018/113399 priority patent/WO2020024469A1/en
Publication of CN109257411A publication Critical patent/CN109257411A/en
Application granted granted Critical
Publication of CN109257411B publication Critical patent/CN109257411B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/133Protocols for remote procedure calls [RPC]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)
  • Hardware Redundancy (AREA)
  • Exchange Systems With Centralized Control (AREA)

Abstract

The embodiment of the present invention provides a kind of method for processing business, calls management system and computer equipment, is related to field of communication technology.Method for processing business provided in an embodiment of the present invention includes: the service request for receiving operation system forwarding;Association's journey is generated according to the service request;The remote procedure call interface for the interconnected system called is needed to synchronize calling the service request by association's journey;Judge whether association's journey is hung up extremely;When judging that the association Cheng Yichang is hung up, the relationship of association's journey and bottom thread is removed;When judging that the association Cheng Wei is hung up extremely, processing is received from the interconnected system as a result, the processing result is the processing result that the interconnected system carries out that processing is obtained to the service request, and feeds back the processing result to the operation system.It is simple that technical solution of the present invention can be such that remote interface calls, and can reduce the probability that all threads block.

Description

A kind of method for processing business calls management system and computer equipment
Technical field
The present invention relates to field of communication technology more particularly to a kind of method for processing business, call management system and computer Equipment.
Background technique
In the information technology system or internet large scale system framework of large enterprise, it is based on set expandability, stabilization Property demand, generally require to dispose large scale system in distributed multisystem framework.In distributed multisystem framework, it is based on industry The demand for logic of being engaged in, need between different application systems based on remote procedure call (Remote Procedure Call, referred to as RPC) come realize interface data communicate.When user initiates to need one for the service request of a function point in operation system Or the cooperation of multiple interconnected systems, when completing, operation system needs to carry out RPC calling to interconnected system.
If desired it to the carry out RPC calling of multiple interconnected systems, then needs to carry out the layout management of RPC calling, generally adopts With following two embodiment:
Scheme 1, all RPC calling synchronize processing, and scheme advantage is that framework is simple, and exploitation difficulty of test is relatively It is low.The disadvantage is that RPC is called and core business is by the same thread process, once there is IO resistance in the RPC service that other systems provide Then core business logic processing can be impacted for plug, and all threads is easy to cause to block in high concurrent.
Scheme 2, all RPC, which are called, carries out asynchronous process, and scheme advantage is under high concurrent scene that some RPC calls appearance IO not easily leads to all thread blockings when blocking, if the disadvantage is that multiple RPC call all dependence asynchronism callback processing exploitations multiple Miscellaneous degree increases severely, and it is poor to will lead to user experience, and need to additionally introduce the long connection scheme of client, increases exploitation and framework is multiple Miscellaneous degree.
Summary of the invention
The embodiment of the present invention provides a kind of method for processing business, calls management system and computer equipment, can make long-range Interface calls simply, and can reduce the probability that all threads block.
In a first aspect, the embodiment of the present invention provides a kind of method for processing business, adopt the following technical scheme that
The method for processing business includes:
Receive the service request of operation system forwarding;
Association's journey is generated according to the service request;
It is carried out by remote procedure call interface of the association's journey to the interconnected system that the service request needs to call Synchronization call;
Judge whether association's journey is hung up extremely;
When judging that the association Cheng Yichang is hung up, the relationship of association's journey and bottom thread is removed;
When judging that the association Cheng Wei is hung up extremely, processing is received as a result, the processing result from the interconnected system The processing result of processing acquisition is carried out to the service request for the interconnected system, and feeds back the place to the operation system Manage result.
Optionally, it is described according to the service request generate association journey, comprising: according to the service request, service logic with Mapping relations between the interconnected system, generate association corresponding with service request journey, and the service logic is used for institute Service request is stated to be handled.
Optionally, the method for processing business further include: when judging that the association Cheng Yichang is hung up, exception information is defeated Out into log.
Optionally, described when judging that the association Cheng Yichang is hung up, exception information is output in log includes:
When judging that the association Cheng Yichang is hung up, exception information is obtained;
The grade of the exception information is judged;
The exception information is output in the log of corresponding grade.
Optionally, the method also includes: the user information of operation system forwarding is received, according to the service request With the user information, safety certification verification is carried out, judges whether the corresponding user of the user information has corresponding authority;Institute It states and association's journey is generated according to the service request, comprising: when the user has corresponding authority, generated according to the service request Assist journey;The method also includes: when the user does not have corresponding authority, report an error to the operation system.
Second aspect, the embodiment of the present invention provide a kind of calling management system, adopt the following technical scheme that
The calling management system includes:
First RPC interface, for receiving the service request of forwarding;
Journey generation module is assisted, for generating association's journey according to the service request;
Calling module, the RPC interface of interconnected system for needing to call to the service request by association's journey into Row synchronization call;
First feedback module is used for the operation system feedback processing result;
Judgment module, for judging whether association's journey is hung up extremely;
Remove module, for when the association Cheng Yichang is hung up, the relationship of association's journey and bottom thread to be removed;
The first RPC interface is also used to when judging that Cheng Wei is assisted to hang up extremely, receives processing knot from interconnected system Fruit, the processing result are the processing result that the interconnected system carries out processing acquisition to the service request.
Optionally, the calling module includes:
Mapping block, for generating the mapping relations between the service request, service logic and the interconnected system;
Association's journey generation module is specifically used for generating association corresponding with the service request according to the mapping relations Journey, the service logic is for handling the service request.
Optionally, the calling management system further include: abnormal output module is used for when the association Cheng Yichang is hung up, Exception information is output in log.
Optionally, the calling management system further include: the first authentication module, for according to user information and the business Request carries out safety certification verification, judges whether the user has corresponding authority.
The third aspect, the embodiment of the present invention provide a kind of computer equipment, adopt the following technical scheme that
The computer equipment include memory, processor and storage in memory and the meter that can run on a processor Calculation machine program, the processor realize as above described in any item methods when executing the computer program.
Fourth aspect, the embodiment of the present invention provide a kind of transaction processing system, adopt the following technical scheme that
The transaction processing system includes calling management system, operation system described in any of the above item and at least one pass Connection system.
The embodiment of the invention provides a kind of method for processing business, call management system and transaction processing system, the business In processing method, after the service request due to receiving operation system forwarding, association's journey is generated according to service request, by association's journey to industry Business request needs the RPC interface for the different interconnected systems called to synchronize calling, to call corresponding interconnected system, a side Face is still to be called using the RPC that synchronization call carries out multiple interconnected systems, can realized to avoid asynchronous call bring program Complexity increases, and on the other hand, when association Cheng Yichang is hung up, the relationship of association's journey and bottom thread is removed, can be to avoid Bottom thread is influenced by association's journey that this is hung up, can be effectively reduced easily led in synchronization scheme thread pool whole threads it is stifled Dead probability, that is to say, that the shortcomings that this programme is the advantages of one kind can efficiently use existing scheme 1 and scheme 2, alleviates the two Balance scheme.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, 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 this hair Bright some embodiments for those of ordinary skill in the art without any creative labor, can be with It obtains other drawings based on these drawings.
Fig. 1 is the flow chart one of method for processing business provided in an embodiment of the present invention;
Fig. 2 is the flowchart 2 of method for processing business provided in an embodiment of the present invention;
Fig. 3 is the structural schematic diagram provided in an embodiment of the present invention for calling management system;
Fig. 4 is the structural schematic diagram of transaction processing system provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of computer equipment provided in an embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
It should be noted that in the absence of conflict, each technical characteristic in the embodiment of the present invention can be tied mutually It closes.
In the information technology system or internet large scale system framework of large enterprise, it is based on set expandability, stabilization Property demand, generally require to dispose large scale system in distributed multisystem framework.In distributed multisystem framework, it is based on industry The demand for logic of being engaged in, need between different application systems based on remote procedure call (Remote Procedure Call, referred to as RPC) come realize interface data communicate.When user initiates to need one for the service request of a function point in operation system Or the cooperation of multiple interconnected systems, when completing, operation system needs to carry out RPC calling to interconnected system.
Inventors have found that the above-mentioned RPC to interconnected system is called often in local JVM (Java Virtual Machine, Java Virtual Machine) in synchronize processing, once therefore the service of interconnected system break down, cannot return processing knot Fruit, then operation system can only wait time-out, it will cause current thread to be suspended, waited, cannot be handled to user feedback As a result.And user often re-initiates request again at this time, and interconnected system cannot normally provide service at this time, it is easy to Cause the thread of current business system all to block in big concurrent request and JVM memory spilling even occur, leads to operation system A function point failure cause entire operation system and cannot use.
In order to solve problem above, operation system can first judge that business is asked after receiving the service request that user sends Seeking Truth is no to need to call interconnected system, if so, service request is forwarded, if it is not, then carrying out business according to service request Logical process obtains processing result, and to user feedback processing result.
Wherein, the service request that user sends may be directed to the one or more functions point of operation system.Business is asked Ask to be inquiry, business processing, storage etc..
It includes following several situations that whether service request, which needs to call interconnected system mainly: the first, service request is not necessarily to Interconnected system is called, i.e. operation system own service logic can be handled the service request;Second, service request is only It needs to call one or more associations system, i.e. service request only needs at the service logic of one or more associations system Reason, the service logic without operation system are handled;The third, service request needs at the service logic of operation system Reason, while the service logic for calling one or more associations system also being needed to be handled.
When judging that the service request needs to call interconnected system, the service request that operation system sends user is carried out Forwarding, such as it is sent to calling management system, so that the calling management system handles the service request, obtain processing knot Fruit, and the processing result is fed back into user.
When judging that the service request does not need to call interconnected system, operation system directly carries out business to service request Logical process obtains processing result.
Operation system can also be after receiving the service request that user sends, and is judging whether service request needs to adjust Before interconnected system, all service logics are divided, determine the service logic for not needing to call interconnected system, Yi Jixu Each service logic for not needing calling interconnected system is numbered in the service logic for calling interconnected system, and determination needs to adjust The interconnected system for specifically needing to call with each service logic of interconnected system, and the interconnected system called according to specific needs are right Need to call each service logic of interconnected system to be numbered.
For example, include n service logic in operation system A, n is the positive integer greater than 1, such as 100, service logic A1 ~Ax is the service logic for not needing to call interconnected system, and service logic Ax+1~An is to need to call the business of interconnected system to patrol Volume, x is more than or equal to 1 and to be less than or equal to the positive integer of n, such as 90, the service logic for calling interconnected system will not needed A1~Ax number is RPC (A1)~RPC (Ax), and the interconnected system for determining that service logic A91~A100 needs call is respectively B, B, C, D, E, C, E, B, D, E number service logic A91~A100 respectively as RPC (B1), RPC (B2), RPC (C1), RPC (D1), RPC (E1), RPC (C2), RPC (E2), RPC (B2), RPC (D2) and RPC (E3).
By taking the number RPC (B1) of service logic A91 as an example, " B " therein refers to that service logic A91 needs to call and closes Connection system B, " 1 " refer to the service logic for first in all service logics of operation system A (i.e. number is near preceding) Need to call the service logic of interconnected system B.Other similar description understanding mode is same as above, and is no longer repeated one by one herein.
It should be noted that a service request is corresponding with one or more service logics, but each service logic is equal Corresponding with a system (operation system or interconnected system), for example, service request 1 only corresponds to service logic A1, business is asked 2 corresponding 3 service logics, service logic A2, service logic A3 and service logic A4 are asked, corresponding 3 business of service request 3 are patrolled Volume, service logic A91, service logic A93 and service logic A94, corresponding 3 service logics of service request 4, service logic A5, Service logic A95 and service logic A96.
Correspondingly, " operation system directly carries out business logic processing to service request, obtains processing result " is specific For the service logic for calling reference numeral according to service request, processing result is obtained.
In this embodiment, each service logic in operation system is numbered, can be made using the number The interface regulative strategy of processing business request, can be more convenient rapidly to handle service request.
Correspondingly, the embodiment of the present invention provides a kind of method for processing business, is suitable for calling management system (RPC Manager), as shown in FIG. 1, FIG. 1 is the flow chart one of method for processing business provided in an embodiment of the present invention, the business processing sides Method includes:
Step 101, the service request for receiving operation system forwarding.
Specifically, in the service request sent according to user, when judging that service request needs to call interconnected system, business system The service request that user sends is forwarded by system, and management system is called to receive the service request of operation system forwarding.
Step 102 generates association's journey according to service request.
Wherein, association journey (coroutine) is a kind of program assembly, is not process or thread, implementation procedure is more similar In subroutine, in other words without the function call of return value.One program may include multiple association's journeys, and association's journey is relatively independent, have The context of oneself, but its switching is controlled by oneself, is controlled by currently assisting journey to be switched to other association's journeys by currently assisting journey.
Step 103 needs the RPC interface for the interconnected system called to synchronize calling service request by association's journey.
Specific implementation can be the program called in management system to be write using go language, and then identify the program It is scheduled by association's journey.The service request from operation system is handled according to practical business scene inside program, is coordinated Organize the calling to the RPC interface of different interconnected systems.
Wherein, the mapping that can be set between service request, service logic and interconnected system in management system is called to close System, service logic is for handling service request, step 102 specifically: according to service request, service logic and is associated with system Mapping relations between system generate association corresponding with service request journey, same to be carried out by RPC interface of association's journey to interconnected system Step is used, to call corresponding interconnected system.For example, mapping relations one: corresponding 3 service logics of service request 3, service logic A91 (RPC (B1)), service logic A93 (RPC (C1)) and service logic A94 (RPC (D1)), three's execution sequence is RPC (B1) -> RPC (C1) -> RPC (D1) then calls management system to generate corresponding association's journey according to the mapping relations, and then successively adjusts With interconnected system B, interconnected system C and interconnected system D;Mapping relations two: corresponding 3 service logics of service request 4, service logic A5 (RPC (A5)), service logic A95 (RPC (E1)) and service logic A96 (RPC (C2)), three's execution sequence is RPC (A5)- > RPC (E1) -> RPC (C2) then calls management system to generate corresponding association's journey according to the mapping relations, and then successively calls business System A, interconnected system E and interconnected system C.
It should be noted that " A91 " therein refers to that the service logic exists by taking service logic A91 (RPC (B1)) as an example Number in operation system A, " B in RPC (B1) " refers to that the service logic needs to call interconnected system B, " in RPC (B1) 1 " refer to that first (i.e. number near preceding) needs to call in all service logics that the service logic is operation system A The service logic of interconnected system B.Other similar description understanding mode is same as above, and is no longer repeated one by one herein.
Step 104 judges to assist whether journey is hung up extremely.
Step 105, when judging that Cheng Yichang is assisted to hang up, the relationship of journey and bottom thread will be assisted to remove.
Such setting can be influenced to avoid bottom thread by association's journey that this is hung up.Assist the management of journey and bottom thread by Virtual machine is managed.At this point, the business that can receive operation system forwarding again is asked when judging that association Cheng Yichang is hung up It asks, which is the service request that user re-emits, and the above-mentioned service request re-emitted can be with business before It requests identical, can also be different.
Step 106, judge assist Cheng Wei extremely hang up when, from interconnected system receive processing result.
Specifically, management calling system receives processing result from the interconnected system finally called.Above-mentioned processing result is to close Connection system carries out the processing result of processing acquisition to service request.
Step 107, to operation system feedback processing result.
It manages calling system and processing result is fed back into operation system.The processing result is received processing in step 106 As a result.
It is raw according to service request after above-mentioned technical proposal has the following beneficial effects: due to receiving the service request forwarded Cheng Xiecheng needs the RPC interface for the interconnected system called to synchronize calling service request by association's journey, corresponding to call Interconnected system, on the one hand, it is still to be called using the RPC that synchronization call carries out multiple interconnected systems, it can be to avoid asynchronous call Bring program implementation complexity increases, on the other hand, when association Cheng Yichang is hung up, by the relationship of association's journey and bottom thread It removes, can be influenced to avoid bottom thread by association's journey that this is hung up, can be effectively reduced and easily lead to thread in synchronization scheme The probability that whole threads in pond block, that is to say, that this programme is the advantages of one kind can efficiently use existing scheme 1 and scheme 2, The balance scheme for the shortcomings that alleviating the two.
Optionally, step 104 is being executed, is judging after assisting Cheng Yichang to hang up, exception information is output in log, by Then synchronization call, maintenance personnel can be easier orientation problem and improve.
Specifically, when judging that Cheng Yichang is assisted to hang up, exception information is output in log includes:
When judging that Cheng Yichang is assisted to hang up, exception information is obtained;The grade of exception information is judged;By abnormal letter Breath is output in the log of corresponding grade.Ratings above includes but is not limited to debug, info, warn, Error and Fatal, In, the sequence of grade from low to high is debug < info < warn < Error < Fatal.
Optionally, as shown in Fig. 2, Fig. 2 is the flowchart 2 of method for processing business provided in an embodiment of the present invention, work as business When system forwards service request and user information, above-mentioned method for processing business further includes in a step 101, receiving operation system and turning When the service request of hair, the user information of operation system forwarding is received, after step 101, step 108 is executed, according to business Request and user information carry out safety certification verification, judge whether the corresponding user of user information has corresponding authority;It is right therewith Step 102 Ying Di generates association's journey according to service request, comprising: generate and assist according to service request when user has corresponding authority Journey.Method for processing business further include: when user does not have corresponding authority, execute step 109, report an error to operation system.
In addition, the embodiment of the present invention also provides a kind of calling management system (RPC Manager), as shown in figure 3, Fig. 3 is The structural schematic diagram provided in an embodiment of the present invention for calling management system calls management system to include the first RPC interface 31, call Module 32, the first feedback module 33, judgment module 34, remove module 35 and association's journey generation module 36;First RPC interface 31 is used for Receive the service request of operation system forwarding;Journey generation module 36 is assisted to be used to generate association's journey according to service request;Calling module 32 For needing the RPC interface for the interconnected system called to synchronize calling service request by association's journey;First feedback module 33 For to operation system feedback processing result;Judgment module 34 assists whether journey is hung up extremely for judging;Remove module 35 is used for When assisting Cheng Yichang to hang up, the relationship of journey and bottom thread will be assisted to remove;First RPC interface 31 is also used to judging to assist Cheng Wei It is abnormal when hanging up, processing is received from interconnected system as a result, processing result is that the interconnected system carries out processing to service request and obtains The processing result obtained.
Optionally, as shown in figure 3, calling management system provided in an embodiment of the present invention further includes mapping block 37, mapping Module 37 is used to generate the mapping relations between service request, service logic and interconnected system, and association's journey generation module 36 is specifically used According to mapping relations, by generating association corresponding with service request journey, service logic is for handling service request.
Optionally, as shown in figure 3, calling management system further includes abnormal output module 38, for being hung up in association Cheng Yichang When, exception information is output in log.Specifically, abnormal output module 38 obtains different when judging that Cheng Yichang is assisted to hang up Normal information judges the grade of exception information, exception information is output in the log of corresponding grade.
Optionally, as shown in figure 3, calling management system further includes the first authentication module 39, for according to user information and Service request carries out safety certification verification, judges whether user has corresponding authority.Specifically, the first RPC interface 31 is also used to The user information of operation system forwarding is received, the first authentication module 39 carries out safety certification school according to service request and user information It tests, judges whether the corresponding user of user information has corresponding authority, assist journey generation module 36 when user has corresponding authority, Association's journey is generated according to service request, the first RPC interface 31 is also used to when user does not have corresponding authority, to operation system report It is wrong.
In addition, calling management system that can also provide monitoring resource function, CPU, memory, association's journey etc. are monitored, phase Synchronizing information is closed to special analysis system, which can provide information and carry out data mining analysis function, to develop, O&M Personnel analyze the problem of encountering.
In addition, the embodiment of the present invention also provides a kind of transaction processing system, as shown in figure 4, Fig. 4 mentions for the embodiment of the present invention The structural schematic diagram of the transaction processing system of confession, the transaction processing system include the calling management of operation system 41, the foregoing description System 42 and at least one interconnected system 43.The particular content of management system is called to may refer to foregoing description content, herein not It is repeated again.
Optionally, which includes: receiving module, the 2nd RPC interface, business judgment module, Service Processing Module With the second feedback module.Wherein, receiving module is used to receive the service request of user's transmission;2nd RPC interface is used in business When request needs to call interconnected system, service request is forwarded;Business judgment module is used to judge industry according to service request Whether business request needs to call interconnected system;Service Processing Module is used to carry out business logic processing according to service request, obtains Processing result;Second feedback module is used for user feedback processing result.
Optionally, which further includes the second authentication module, and the second authentication module is used for according to user information and industry Business request, carries out safety certification verification, judges whether user has corresponding authority.Receiving module is specifically used for having phase in user When answering permission, service request and user information that user sends are received, and when user does not have corresponding authority, rejection The service request that user sends;2nd RPC interface is specifically used for when service request needs to call interconnected system, and user is sent Service request and user information be forwarded;Second feedback module is also used to the service request sent in rejection user When, it reports an error to user.
Optionally, which further includes service logic division module and number module;Service logic division module is used It is divided in the service logic in operation system, is obtained without need for calling the service logic of interconnected system, and need to adjust With the service logic of interconnected system;Number module is used to that each service logic for not needing calling interconnected system to be numbered, with And determine the interconnected system for needing to call each service logic of interconnected system specifically to need to call, and call according to specific needs Each service logic for needing to call interconnected system is numbered in interconnected system.Correspondingly, Service Processing Module is specifically used In the service logic for calling reference numeral according to service request, processing result is obtained.
In addition, the embodiment of the present invention also provides a kind of computer equipment, as shown in figure 5, Fig. 5 provides for the embodiment of the present invention Computer equipment structural schematic diagram, which includes memory 51, processor 52 and is stored in memory 51 In and the computer program 53 that can run on the processor 52, the processor realize when executing the computer program with lower section Method:
Step 101, the service request for receiving operation system forwarding.
Specifically, in the service request sent according to user, when judging that service request needs to call interconnected system, business system The service request that user sends is forwarded by system, and management system is called to receive the service request of operation system forwarding.
Step 102 generates association's journey according to service request.
Wherein, association journey (coroutine) is a kind of program assembly, is not process or thread, implementation procedure is more similar In subroutine, in other words without the function call of return value.One program may include multiple association's journeys, and association's journey is relatively independent, have The context of oneself, but its switching is controlled by oneself, is controlled by currently assisting journey to be switched to other association's journeys by currently assisting journey.
Step 103 needs the RPC interface for the interconnected system called to synchronize calling service request by association's journey.
Specific implementation can be the program called in management system to be write using go language, and then identify the program It is scheduled by association's journey.The service request from operation system is handled according to practical business scene inside program, is coordinated Organize the calling to the RPC interface of different interconnected systems.
Wherein, the mapping that can be set between service request, service logic and interconnected system in management system is called to close System, service logic is for handling service request, step 102 specifically: according to service request, service logic and is associated with system Mapping relations between system generate association corresponding with service request journey, same to be carried out by RPC interface of association's journey to interconnected system Step is used, to call corresponding interconnected system.For example, mapping relations one: corresponding 3 service logics of service request 3, service logic A91 (RPC (B1)), service logic A93 (RPC (C1)) and service logic A94 (RPC (D1)), three's execution sequence is RPC (B1) -> RPC (C1) -> RPC (D1) then calls management system to generate corresponding association's journey according to the mapping relations, and then successively adjusts With interconnected system B, interconnected system C and interconnected system D;Mapping relations two: corresponding 3 service logics of service request 4, service logic A5 (RPC (A5)), service logic A95 (RPC (E1)) and service logic A96 (RPC (C2)), three's execution sequence is RPC (A5)- > RPC (E1) -> RPC (C2) then calls management system to generate corresponding association's journey according to the mapping relations, and then successively calls business System A, interconnected system E and interconnected system C.
It should be noted that " A91 " therein refers to that the service logic exists by taking service logic A91 (RPC (B1)) as an example Number in operation system A, " B in RPC (B1) " refers to that the service logic needs to call interconnected system B, " in RPC (B1) 1 " refer to that first (i.e. number near preceding) needs to call in all service logics that the service logic is operation system A The service logic of interconnected system B.Other similar description understanding mode is same as above, and is no longer repeated one by one herein.
Step 104 judges to assist whether journey is hung up extremely.
Step 105, when judging that Cheng Yichang is assisted to hang up, the relationship of journey and bottom thread will be assisted to remove.
Such setting can be influenced to avoid bottom thread by association's journey that this is hung up.Assist the management of journey and bottom thread by Virtual machine is managed.At this point, the business that can receive operation system forwarding again is asked when judging that association Cheng Yichang is hung up It asks, which is the service request that user re-emits, and the above-mentioned service request re-emitted can be with business before It requests identical, can also be different.
Step 106, judge assist Cheng Wei extremely hang up when, from interconnected system receive processing result.
Specifically, management calling system receives processing result from the interconnected system finally called.Above-mentioned processing result is to close Connection system carries out the processing result of processing acquisition to service request.
Step 107, to operation system feedback processing result.
It manages calling system and processing result is fed back into operation system.The processing result is received processing in step 106 As a result.
It is set it should be noted that the other details in the method for processing business of the foregoing description may also apply to this computer It is standby, it is no longer repeated herein.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (10)

1. a kind of method for processing business characterized by comprising
Receive the service request of operation system forwarding;
Association's journey is generated according to the service request;
The remote procedure call interface for the interconnected system called is needed to synchronize the service request by association's journey It calls;
Judge whether association's journey is hung up extremely;
When judging that the association Cheng Yichang is hung up, the relationship of association's journey and bottom thread is removed;
When judging that the association Cheng Wei is hung up extremely, processing is received as a result, the processing result is institute from the interconnected system The processing result that interconnected system carries out processing acquisition to the service request is stated, and feeds back the processing knot to the operation system Fruit.
2. method for processing business according to claim 1, which is characterized in that described generated according to the service request is assisted Journey, comprising:
According to the mapping relations between the service request, service logic and the interconnected system, generate and the service request Corresponding association's journey, the service logic is for handling the service request.
3. method for processing business according to claim 1, which is characterized in that the method also includes:
When judging that the association Cheng Yichang is hung up, exception information is output in log.
4. method for processing business according to claim 3, which is characterized in that described to judge the association Cheng Yichang hang-up When, exception information is output in log includes:
When judging that the association Cheng Yichang is hung up, exception information is obtained;
The grade of the exception information is judged;
The exception information is output in the log of corresponding grade.
5. method for processing business according to claim 1, which is characterized in that the method also includes: receive the business The user information of system forwards carries out safety certification verification according to the service request and the user information, judges the use Whether information corresponding user in family has corresponding authority;
It is described that association's journey is generated according to the service request, comprising: when the user has corresponding authority, to be asked according to the business Seek survival into association's journey;
The method also includes: when the user does not have corresponding authority, report an error to the operation system.
6. a kind of calling management system characterized by comprising
First RPC interface, for receiving the service request of operation system forwarding;
Journey generation module is assisted, for generating association's journey according to the service request;
Calling module, it is same for being carried out by RPC interface of the association's journey to the interconnected system that the service request needs to call Step is used;
First feedback module is used for the operation system feedback processing result;
Judgment module, for judging whether association's journey is hung up extremely;
Remove module, for when the association Cheng Yichang is hung up, the relationship of association's journey and bottom thread to be removed;
The first RPC interface is also used to when judging that Cheng Wei is assisted to hang up extremely, receives processing as a result, institute from interconnected system Stating processing result is the processing result that the interconnected system carries out processing acquisition to the service request.
7. calling management system according to claim 6, which is characterized in that further include:
Mapping block, for generating the mapping relations between the service request, service logic and the interconnected system;
Association's journey generation module is specifically used for generating association corresponding with service request journey, institute according to the mapping relations Service logic is stated for handling the service request.
8. calling management system according to claim 6, which is characterized in that further include:
Abnormal output module, for when the association Cheng Yichang is hung up, exception information to be output in log.
9. calling management system according to claim 6, which is characterized in that further include:
First authentication module, for carrying out safety certification verification, judging the user according to user information and the service request Whether there is corresponding authority.
10. a kind of computer equipment, can run in memory and on a processor including memory, processor and storage Computer program, which is characterized in that the processor is realized when executing the computer program such as any one of Claims 1 to 5 The method.
CN201810856671.6A 2018-07-31 2018-07-31 Service processing method, call management system and computer equipment Active CN109257411B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810856671.6A CN109257411B (en) 2018-07-31 2018-07-31 Service processing method, call management system and computer equipment
PCT/CN2018/113399 WO2020024469A1 (en) 2018-07-31 2018-11-01 Service processing method, calling management system and computer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810856671.6A CN109257411B (en) 2018-07-31 2018-07-31 Service processing method, call management system and computer equipment

Publications (2)

Publication Number Publication Date
CN109257411A true CN109257411A (en) 2019-01-22
CN109257411B CN109257411B (en) 2021-12-24

Family

ID=65049027

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810856671.6A Active CN109257411B (en) 2018-07-31 2018-07-31 Service processing method, call management system and computer equipment

Country Status (2)

Country Link
CN (1) CN109257411B (en)
WO (1) WO2020024469A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110336690A (en) * 2019-05-23 2019-10-15 平安银行股份有限公司 Service request processing method, device, equipment and computer readable storage medium
CN111859082A (en) * 2020-05-27 2020-10-30 伏羲科技(菏泽)有限公司 Identification analysis method and device
CN112328410A (en) * 2020-11-04 2021-02-05 网易(杭州)网络有限公司 Method, device, equipment and storage medium for realizing remote procedure call
CN112905267A (en) * 2019-12-03 2021-06-04 阿里巴巴集团控股有限公司 Method, device and equipment for accessing virtual machine to coroutine library
CN113568686A (en) * 2020-10-30 2021-10-29 深圳市九九互动科技有限公司 Asynchronous processing method and device of Lua language, computer equipment and storage medium

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111913792B (en) * 2020-07-17 2023-12-01 郑州阿帕斯数云信息科技有限公司 Service processing method and device
CN114090196A (en) * 2020-08-24 2022-02-25 华为技术有限公司 Coroutine switching method, coroutine switching device and coroutine switching equipment
CN113360807B (en) * 2021-06-24 2023-03-31 平安普惠企业管理有限公司 Page display method and device of mixed-mode mobile application and related equipment
CN114584500B (en) * 2022-02-25 2024-03-22 网易(杭州)网络有限公司 Asynchronous communication testing method and device and electronic equipment
CN114760312B (en) * 2022-04-27 2024-06-18 泽拓科技(深圳)有限责任公司 Distributed task coordination method, device, equipment and medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130041540A (en) * 2011-10-17 2013-04-25 엔에이치엔(주) Method and apparatus for providing remote procedure call service using coroutine
CN104142858A (en) * 2013-11-29 2014-11-12 腾讯科技(深圳)有限公司 Blocked task scheduling method and device
US20150220352A1 (en) * 2014-02-05 2015-08-06 Travis T. Wilson Method and System for Executing Third-Party Agent Code in a Data Processing System
CN106598801A (en) * 2015-10-15 2017-04-26 中兴通讯股份有限公司 Coroutine monitoring method and apparatus
CN106844017A (en) * 2015-12-03 2017-06-13 阿里巴巴集团控股有限公司 The method and apparatus that event is processed for Website server
CN106980546A (en) * 2016-01-18 2017-07-25 阿里巴巴集团控股有限公司 A kind of task asynchronous execution method, apparatus and system
CN107147641A (en) * 2017-05-10 2017-09-08 深圳市万游引力科技有限公司 A kind of information processing method, system and computer-readable storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8589925B2 (en) * 2007-10-25 2013-11-19 Microsoft Corporation Techniques for switching threads within routines
CN108123820B (en) * 2016-11-29 2021-04-30 北京神州泰岳软件股份有限公司 Network equipment information acquisition method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130041540A (en) * 2011-10-17 2013-04-25 엔에이치엔(주) Method and apparatus for providing remote procedure call service using coroutine
CN104142858A (en) * 2013-11-29 2014-11-12 腾讯科技(深圳)有限公司 Blocked task scheduling method and device
US20160246643A1 (en) * 2013-11-29 2016-08-25 Tencent Technology (Shenzhen) Company Limited Method and apparatus for scheduling blocking tasks
US20150220352A1 (en) * 2014-02-05 2015-08-06 Travis T. Wilson Method and System for Executing Third-Party Agent Code in a Data Processing System
CN106598801A (en) * 2015-10-15 2017-04-26 中兴通讯股份有限公司 Coroutine monitoring method and apparatus
CN106844017A (en) * 2015-12-03 2017-06-13 阿里巴巴集团控股有限公司 The method and apparatus that event is processed for Website server
CN106980546A (en) * 2016-01-18 2017-07-25 阿里巴巴集团控股有限公司 A kind of task asynchronous execution method, apparatus and system
CN107147641A (en) * 2017-05-10 2017-09-08 深圳市万游引力科技有限公司 A kind of information processing method, system and computer-readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
MARCELO COHEN: "Using Coroutines for RPC in Sensor Networks", 《2007 IEEE INTERNATIONAL PARALLEL AND DISTRIBUTED PROCESSING SYMPOSIUM》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110336690A (en) * 2019-05-23 2019-10-15 平安银行股份有限公司 Service request processing method, device, equipment and computer readable storage medium
CN110336690B (en) * 2019-05-23 2022-09-20 平安银行股份有限公司 Service request processing method, device, equipment and computer readable storage medium
CN112905267A (en) * 2019-12-03 2021-06-04 阿里巴巴集团控股有限公司 Method, device and equipment for accessing virtual machine to coroutine library
CN112905267B (en) * 2019-12-03 2024-05-10 阿里巴巴集团控股有限公司 Method, device and equipment for accessing virtual machine to coroutine library
CN111859082A (en) * 2020-05-27 2020-10-30 伏羲科技(菏泽)有限公司 Identification analysis method and device
CN113568686A (en) * 2020-10-30 2021-10-29 深圳市九九互动科技有限公司 Asynchronous processing method and device of Lua language, computer equipment and storage medium
CN113568686B (en) * 2020-10-30 2023-11-28 深圳市九九互动科技有限公司 Asynchronous processing method and device for Lua language, computer equipment and storage medium
CN112328410A (en) * 2020-11-04 2021-02-05 网易(杭州)网络有限公司 Method, device, equipment and storage medium for realizing remote procedure call
CN112328410B (en) * 2020-11-04 2023-08-08 网易(杭州)网络有限公司 Method, device, equipment and storage medium for realizing remote procedure call

Also Published As

Publication number Publication date
CN109257411B (en) 2021-12-24
WO2020024469A1 (en) 2020-02-06

Similar Documents

Publication Publication Date Title
CN109257411A (en) A kind of method for processing business calls management system and computer equipment
Lin et al. Moon: Mapreduce on opportunistic environments
CN109800160B (en) Cluster server fault testing method and related device in machine learning system
CA2932745A1 (en) Method and system for traffic control
CN109726004B (en) Data processing method and device
US10693816B2 (en) Communication methods and systems, electronic devices, and computer clusters
US11146641B2 (en) Internet of things information system
US8291070B2 (en) Determining an operating status of a remote host upon communication failure
CN106354566B (en) A kind of method and server of command process
US11656902B2 (en) Distributed container image construction scheduling system and method
CN112256406B (en) Operation flow platformization scheduling method
CN110781009A (en) Method and device for real-time communication of browser page
CN116841705A (en) Distributed scheduling monitoring system based on cloud protogenesis and deployment method thereof
CN111104336B (en) Online service interface testing method and device based on container and VNC
US10783007B2 (en) Load distribution for integration scenarios
CN109246071A (en) Method for processing business, calls management system and transaction processing system at operation system
CN105335212A (en) Cloud computing mandatory access control method based on distributed implementation
CN106502842A (en) Data reconstruction method and system
CN114756301B (en) Log processing method, device and system
US20180309702A1 (en) Method and device for processing data after restart of node
CN102868594B (en) Method and device for message processing
CN110412947A (en) Industrial equipment control method and its system, storage equipment
Kumar et al. An end-to-end privacy preserving design of a map-reduce framework
CN113672374A (en) Task scheduling method and system for federal learning and privacy computation
WO2016077570A1 (en) System for cross-host, multi-thread session alignment

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
GR01 Patent grant
GR01 Patent grant