WO2020000807A1 - Service processing method, service system, call management system and service processing system - Google Patents

Service processing method, service system, call management system and service processing system Download PDF

Info

Publication number
WO2020000807A1
WO2020000807A1 PCT/CN2018/111493 CN2018111493W WO2020000807A1 WO 2020000807 A1 WO2020000807 A1 WO 2020000807A1 CN 2018111493 W CN2018111493 W CN 2018111493W WO 2020000807 A1 WO2020000807 A1 WO 2020000807A1
Authority
WO
WIPO (PCT)
Prior art keywords
service request
user
business
service
call
Prior art date
Application number
PCT/CN2018/111493
Other languages
French (fr)
Chinese (zh)
Inventor
晏湘涛
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2020000807A1 publication Critical patent/WO2020000807A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0807Network architectures or network communication protocols for network security for authentication of entities using tickets, e.g. Kerberos
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • H04L63/108Network architectures or network communication protocols for network security for controlling access to devices or network resources when the policy decisions are valid for a limited amount of time
    • 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]

Definitions

  • the present application relates to the field of communication technologies, and in particular, to a service processing method, a service system, a call management system, and a service processing system.
  • RPC Remote Procedure Call Protocol
  • the aforementioned RPC calls to the associated system are often synchronized in the local JVM (Java Virtual Machine). Therefore, once the service of the associated system fails and cannot return the processing result, the business system can only wait for the timeout. , Will cause the current thread to be suspended, waiting, and the processing result cannot be fed back to the user. The user often re-initiates the request at this time, and the associated system can no longer provide services at this time. It is easy to cause the threads of the current business system to be blocked or even the JVM memory overflow during a large concurrent request, resulting in a functional point of the business system The failure caused the entire business system to be unusable.
  • JVM Java Virtual Machine
  • the embodiments of the present application provide a business processing method, a business system, a call management system, and a business processing system, which can reduce or even avoid the situation that the threads of the current business system are completely blocked or even the JVM memory overflows during large concurrent requests.
  • an embodiment of the present application provides a service processing method.
  • the service processing method includes: receiving a user's service request; determining whether the service request needs to call an associated system; and when the service request needs to call an associated system, The service request is forwarded; when the service request does not need to call an associated system, business logic processing is performed according to the service request to obtain a processing result; and the processing result is fed back to the user.
  • an embodiment of the present application provides a service system.
  • the service system includes: a receiving module configured to receive a user's service request; and a first RPC interface configured to, when the service request needs to call an associated system, The service request is forwarded; a service judgment module is configured to determine whether the service request needs to call an associated system according to the service request; a service processing module is used to determine the service request according to the service when the associated system does not need to call the associated system. Requesting business logic processing to obtain a processing result; a first feedback module, configured to feedback the processing result to the user.
  • an embodiment of the present application provides a service processing method.
  • the service processing method includes: receiving a forwarded service request; invoking a corresponding associated system according to the service request; receiving a processing result from the associated system; and sending a request to a user.
  • the processing result is fed back.
  • an embodiment of the present application provides a call management system.
  • the call management system includes: a second RPC interface for receiving a forwarded service request and receiving a processing result from an associated system; and a calling module for The above-mentioned service request calls the corresponding associated system; the second feedback module is used to feed back the processing result to the user.
  • an embodiment of the present application provides a service processing system.
  • the service processing system includes the service system described above, the call management system described in any one of the foregoing, and at least one associated system.
  • an embodiment of the present application provides a computer device including a memory, a processor, and a computer program stored in the memory and executable on the processor.
  • the processor executes the computer program, the processor implements the method described in the first aspect. method.
  • an embodiment of the present application provides a computer non-volatile readable storage medium, where the computer non-volatile readable storage medium includes a stored program, wherein the computer is controlled when the program runs.
  • the device on which the volatile readable storage medium is located executes the method as described in the first aspect above.
  • an embodiment of the present application provides a computer device including a memory, a processor, and a computer program stored in the memory and executable on the processor.
  • the processor executes the computer program, the processor implements the method described in the third aspect above. method.
  • an embodiment of the present application provides a computer non-volatile readable storage medium, where the computer non-volatile readable storage medium includes a stored program, wherein the computer is controlled when the program runs.
  • the device on which the volatile readable storage medium is located executes the method as described in the third aspect above.
  • the embodiments of the present application provide a business processing method, a business system, a call management system, and a business processing system.
  • the business system receives a user's business request, and judges based on the user's business request. Does the business request need to call the associated system? Only when it is not necessary to call the associated system, it will be processed through its own business logic to obtain the processing result and feedback to the customer.
  • the business system will forward the user's business request To the call management system, the call management system will return the processing result to the customer. Therefore, during the implementation process, even if the service of the related system fails, the processing result cannot be returned.
  • the request When the user re-initiates the request, the request will be forwarded by the business system. This can alleviate or even avoid the situation that the threads of the current business system are completely blocked or even the JVM memory overflows during large concurrent requests, so that the failure of one function point of the business system will not affect the other function points of the business system and will not cause The entire business system can use.
  • FIG. 1 is a first flowchart of a service processing method according to an embodiment of the present application
  • FIG. 2 is a second flowchart of a service processing method according to an embodiment of the present application.
  • FIG. 3 is a flowchart of a security authentication and verification process according to an embodiment of the present application.
  • FIG. 4 is a third flowchart of a service processing method according to an embodiment of the present application.
  • FIG. 5 is a first schematic diagram of a service system according to an embodiment of the present application.
  • FIG. 6 is a second schematic diagram of a service system according to an embodiment of the present application.
  • FIG. 7 is a third schematic diagram of a service system according to an embodiment of the present application.
  • FIG. 8 is a first flowchart of another service processing method according to an embodiment of the present application.
  • FIG. 9 is a second flowchart of another service processing method according to an embodiment of the present application.
  • FIG. 10 is a first schematic diagram of a call management system according to an embodiment of the present application.
  • FIG. 11 is a second schematic diagram of a call management system provided by an embodiment of the present application.
  • FIG. 12 is a schematic diagram of a service processing system according to an embodiment of the present application.
  • FIG. 13 is a first schematic diagram of an interaction process between a service system, a call management system, and an associated system according to an embodiment of the present application;
  • FIG. 14 is a second schematic diagram of an interaction process of a service system, a call management system, and an associated system according to an embodiment of the present application.
  • an embodiment of the present application provides a service processing method, which is applicable to a service system.
  • FIG. 1 is a service processing method provided by an embodiment of the present application.
  • Flowchart 1 of this method includes:
  • Step 10 Receive a service request from a user
  • a user's business request may be directed to one or more functional points of the business system.
  • Business requests can be queries, business processing, storage, etc.
  • Step 11 Determine whether the service request needs to call the associated system. If so, go to step 12. If not, go to step 13 and step 14.
  • the business request does not need to call the associated system, that is, the business system's own business logic can process the business request.
  • the business request only needs to call one or more associated systems. That is, the business request only needs to be processed by the business logic of one or more related systems, without the business logic of the business system.
  • the business request needs to be processed by the business logic of the business system, and it needs to be called The business logic of one or more associated systems is processed.
  • step 13 is performed, and the business system directly performs business logic processing to obtain the processing result; if the service request is determined according to the user's service request, the service request meets the second example. In the case of this example or the third example, step 12 is performed, and the service system forwards the user's service request.
  • the service system forwards the user's service request, for example, to the call management system, so that the call management system processes the service request, obtains the processing result, and The processing result is fed back to the user.
  • Step 13 Perform business logic processing according to the service request to obtain a processing result.
  • the service system When it is determined that the service request does not need to call the associated system, the service system directly performs service logic processing on the service request to obtain a processing result.
  • a business request corresponds to one business logic, only one business logic process is required.
  • a business request corresponds to multiple business logics, multiple business logic processes are required. For example, business request 1 only corresponds to business logic A1, and only business logic A1 needs to be processed; business request 2 corresponds to three business logics, business logic A2, business logic A3, and business logic A4, and business logic A2 needs to be processed separately , Business logic A3 processing and business logic A4 processing, the specific order of the three corresponds to the specific business request.
  • Step 14 Feedback the processing result to the user.
  • the business system performs business logic processing, and after obtaining the processing result, feeds back the processing result to the user.
  • the business system When the business processing method is applied to a business system, the business system receives the user's business request, and determines whether the business request needs to call the associated system based on the user's business request. Only when it does not need to call the associated system, it does so through its own business logic. Process, obtain the processing result and feedback to the customer, and when the associated system needs to be called, the business system forwards the user's business request to the call management system, and the call management system feeds back the processing result to the customer. Therefore, during the implementation process, Even if the service of the related system fails, the processing result cannot be returned.
  • the request When the user re-initiates the request, the request will be forwarded by the business system, which can alleviate or even prevent the threads of the current business system from being blocked or even the JVM memory overflow during large concurrent requests. The situation occurs so that the failure of one function point of the business system will not affect the other function points of the business system, and will not cause the entire business system to be unusable.
  • FIG. 2 is a second flowchart of a service processing method according to an embodiment of the present application.
  • the service processing method includes:
  • Step 01 Perform security authentication check according to the user information and service request to determine whether the user has corresponding authority. If yes, go to step 10; if not, go to step 02 and step 03.
  • the user information includes, but is not limited to, one or more of a user's login account, login password, and the like.
  • the above corresponding permissions are the permissions required by the user's business request.
  • Step 10 Receive a user's service request and user information.
  • Step 02 Reject the user's service request
  • Step 03 Report an error to the user.
  • Step 11 Determine whether the service request needs to call the associated system. If so, go to step 12. If not, go to step 13 and step 14.
  • the business system forwards the user's business request and user information, for example, to the call management system, so that the call management system processes the service request, and the call management system also
  • the security authentication check can be performed according to the user information to further confirm whether the user has the corresponding authority. If the management system is invoked to perform the security authentication verification based on the user information and business request, it is determined that the user does not have the appropriate authority, and the management system is refused to receive it. If the service request has the corresponding authority, the management system is called to process the service request, obtain the processing result, and feed the processing result back to the user.
  • Step 13 Perform business logic processing according to the service request to obtain a processing result.
  • Step 14 Feedback the processing result to the user.
  • the security authentication verification according to the user information and the service request may be specifically implemented by JWT (JSON Web Token) technology.
  • JWT JSON Web Token
  • FIG. 3 is a security authentication verification provided by an embodiment of the present application.
  • the flowchart of the process, the security certification verification process includes the following:
  • the account and password are used to authenticate to the business system.
  • the business system After the authentication is passed, the business system generates a token by using the held key. The user does not need to hold the key.
  • the business system passes the secret.
  • the key can be used to generate a Token.
  • the Token generally contains the expiration time and the unique identifier of the user, such as the user ID.
  • the business system returns the Token to the user.
  • the user makes a business request and carries a Token in the Authorization field of the Head, such as: Authorization: Bearer token.
  • the business system verifies the Token contained in the business request, and looks for the existence of the Token in Redis.
  • the business system verifies the corresponding permissions by the user's unique identity obtained from the Token, and assigns this user's unique identity to the request parameters
  • the above search is mainly to solve the problem of user cancellation, but the token is still within the time limit. If the token exists in Redis, it means that the user has been cancelled; if the token does not exist, the verification passes.
  • the business system processes the service request through the unique identifier of the user, and returns the processing result to the user.
  • the business system saves the Token that is still within the time limit to Redis, sets the correct expiration time, and prompts the user that the logout is successful.
  • FIG. 4 is a third flowchart of a service processing method according to an embodiment of the present application.
  • the service processing method further includes: after receiving a user's service request, and determining whether the service request is required Before calling the associated system, perform the following steps:
  • Step 101 Divide all business logic, and determine that the business logic of the associated system does not need to be called, and the business logic of the associated system that needs to be called.
  • business system A contains n business logics, n is a positive integer greater than 1, such as 100, business logics A1 to Ax are business logics that do not need to call the associated system, and business logics Ax + 1 to An are those that need to call the association
  • the business logic of the system, x is a positive integer greater than or equal to 1 and less than or equal to n, such as 90.
  • Step 102 Number each business logic that does not need to call the associated system.
  • the business logics A1 to Ax that do not need to call the associated system are numbered RPC (A1) to RPC (Ax).
  • the above numbering method is merely an example and is not limiting.
  • Step 103 Determine the associated system that needs to be invoked by each business logic of the associated system.
  • n 100 and the value of x is 90.
  • business logic A91 to A100 are B, B, C, D, E, C, E, B, and D, E.
  • business logic A91 to A100 are B, B, C, D, E, C, E, B, and D, E.
  • the above is just an example and is not limited. Of course, different business logic can also call different associated systems.
  • Step 104 Number the business logic of the associated system that needs to be called according to the specific needs.
  • the business logic A91-A100 are numbered as RPC (B1), RPC (B2), RPC (C1), RPC (D1), RPC (E1), RPC (C2), RPC (E2), RPC (B2), RPC (D2), and RPC (E3),
  • RPC (B1), RPC (B2), RPC (C1), RPC (D1), RPC (E1), RPC (C2), RPC (E2), RPC (B2), RPC (D2), and RPC (E3) The above numbering methods are merely examples and not limiting.
  • a business request corresponds to one or more business logics, but each business logic corresponds to a system (business system or associated system).
  • business request 1 only corresponds to business logic A1
  • business request 2 corresponds to 3 business logics
  • business request 3 corresponds to 3 business logics
  • business request 4 corresponds to 3 business logics, business Logic A5, business logic A95, and business logic A96.
  • step 102 may be performed first, and then step 103 and step 104 may be performed, or step 103 and step 104 may be performed first, and then step 102 may be performed.
  • step 13 is specifically to call the business logic of the corresponding number according to the service request to obtain the processing result.
  • each business logic in the business system is numbered, and this number can be used to formulate an interface invocation strategy for processing business requests, which can more conveniently and quickly process business requests.
  • FIG. 5 is a first schematic view of a service system provided by an embodiment of the present application.
  • the service system includes a receiving module 51, a first RPC interface 52, The service judgment module 53, the service processing module 54, and the first feedback module 55.
  • the receiving module 51 is used to receive a user's service request; the first RPC interface 52 is used to forward a service request when the service request needs to call the associated system; the service determination module 53 is used to determine whether the service request is required according to the service request Invoke the associated system; the business processing module 54 is configured to perform business logic processing according to the service request to obtain the processing result when the business request does not need to call the associated system; the first feedback module 55 is used to feedback the processing result to the user.
  • the business system is applicable to the business processing method described in the first aspect. The specific contents of the business processing method in the first aspect are applicable to this business system.
  • FIG. 6 is a second schematic diagram of a service system provided in an embodiment of the present application.
  • the service system further includes a first authentication module 56, and the first authentication module 56 is configured to receive user information and service requests. Perform security authentication check to determine whether the user has the corresponding authority.
  • the receiving module 51 is specifically configured to receive the user's service request and user information when the user has the corresponding authority, and to refuse to receive the user's service request when the user does not have the corresponding authority;
  • the first RPC interface 52 is specifically used to When the associated system is called, the user's service request and user information are forwarded;
  • the first feedback module 55 is further configured to report an error to the user when the user's service request is rejected.
  • FIG. 7 is a third schematic diagram of a service system according to an embodiment of the present application.
  • the service system further includes a service logic division module 57 and a numbering module 58.
  • the service logic division module 57 is used for the service system.
  • the business logic in the system is divided to obtain the business logic that does not need to call the associated system, and the business logic that needs to call the associated system.
  • the numbering module 58 is used to number the business logic that does not need to call the associated system, and determine that the associated system needs to be called.
  • Each business logic needs to call the associated system, and according to the specific needs of the associated system, the business logic that needs to call the associated system is numbered.
  • the service processing module 54 is specifically configured to call the service logic of the corresponding number according to the service request to obtain a processing result.
  • an embodiment of the present application provides a service processing method, which is suitable for invoking a management system.
  • FIG. 8 is another service provided by the embodiment of the present application.
  • the service processing method includes:
  • Step 20 Receive the forwarded service request.
  • the service system forwards the user's service request, and the management system is called to receive the service request forwarded by the service system.
  • Step 21 Call the corresponding associated system according to the service request.
  • mapping relationship 1 Business request 3 corresponds to 3 business logics, business logic A91 (RPC (B1)), business logic A93 (RPC (C1)), and business logic A94 (RPC (D1)).
  • the execution order of the three is RPC (B1)-> RPC (C1)-> RPC (D1), then call the management system to call related system B, related system C, and related system D in turn according to the mapping relationship; mapping relationship 2: service request 4 corresponds to 3 services Logic, business logic A5 (RPC (A5)), business logic A95 (RPC (E1)), and business logic A96 (RPC (C2)), the execution order of the three is RPC (A5)-> RPC (E1)-> RPC (C2), the call management system sequentially calls the business system A, the related system E, and the related system C according to the mapping relationship.
  • Step 22 Receive a processing result from the associated system.
  • the management calling system receives a processing result from the associated system that was called last.
  • Step 23 feedback the processing result to the user.
  • the management invocation system feeds back the processing results to the user.
  • FIG. 9 is a second flowchart of another service processing method according to an embodiment of the present application.
  • the foregoing service processing method further includes receiving a service.
  • step 201 is performed to perform security authentication verification based on the service request and user information to determine whether the user has the corresponding authority.
  • step 20 When the user has the corresponding authority, perform step 20 to receive the forwarded service request. The user does not have the corresponding authority.
  • step 202 is executed, the forwarded service request is rejected.
  • the specific process of performing security authentication and verification based on the service request and user information in the service processing method of the third aspect refer to related content in the service processing method of the first aspect, which will not be repeated here.
  • FIG. 10 is a schematic diagram of a call management system provided by an embodiment of the present application.
  • the call management system includes a second RPC interface 1001.
  • a second RPC interface 1001 is used to receive a forwarded service request and receive a processing result from an associated system;
  • a second feedback module 1003 is used to feedback a processing result to a user;
  • a calling module 1002 is used to The business request calls the corresponding associated system.
  • the calling module 1002 is specifically configured to call the corresponding associated system according to the mapping relationship between the service request, the business logic, and the associated system.
  • the mapping relationship between the service request, the business logic, and the associated system may be stored in the calling module 1002.
  • FIG. 11 is a second schematic diagram of a call management system provided by an embodiment of the present application.
  • the call management system further includes a second authentication module 1004 for performing security authentication calibration according to user information and service requests. Check to determine whether the user has the appropriate permissions. If the user has the corresponding authority, the second RPC interface 1001 receives the forwarded service request. If the user does not have the corresponding authority, the second RPC interface 1001 rejects the forwarded service request.
  • the call management system is applicable to the business processing method described in the third aspect, and the specific content of the business processing method in the third aspect is applicable to this call management system.
  • the call management system can be implemented through a Java solution, a Node.Js solution or a Go language solution.
  • the call management system can also provide complete functions such as authentication, threshold control, monitoring, and logging.
  • FIG. 12 is a schematic diagram of a service processing system provided by an embodiment of the present application.
  • the service processing system includes the service system 1201 and the call described above.
  • FIG. 13 is a schematic diagram 1 of interaction processes of a service system, a call management system, and an associated system according to an embodiment of the present application
  • FIG. 14 is a service system, call, and the like provided by an embodiment of the present application.
  • the process of the business processing system processing the user's business request is as follows:
  • the service system receives the user's service request, and the service system determines whether the service request needs to call the associated system. If it needs to be called, it forwards the user's service request to the call management system, and the call management system receives the service system forwarded Business request, and call the corresponding associated system according to the business request, the associated system performs business logic processing to obtain the processing result, the associated system sends the processing result to the call management system, the call management system receives the processing result from the related system, and feedbacks the processing to the user result.
  • the business system receives the user's business request, and the business system determines whether the business request needs to call the associated system. If it is not required, the business system directly performs business logic processing according to the business request, obtains the processing result, and sends it to the user. Feedback processing results.
  • the embodiment of the present application provides a specific application example, in which an agent inquires claim information (request for claim information is a business request) in a car insurance remote sale.
  • claim information is stored in hbase (that is, an associated system), but when a business system queries hbase's claim information, a thread of the business system hangs due to an exception in bhase. After the thread hangs, the query result cannot be obtained on the user interface. The user is eager to refresh the page and trigger a new query request again.
  • the business system receives a new query request, uses a new thread to query hbase, hbase has no feedback, and the new thread hangs again.
  • the non-core claim information query function needs to call the related system Hbase
  • the business system receives a service request for querying the claim information, it forwards the business request to the call management system for processing, that is, to query the claim information.
  • the functions are separated from the business system and handled by the newly established call management system, which not only can not affect the related functions of the business system when the abnormality of the related system Hbase occurs, and reduce the business system caused by the abnormality of the interface provided by the related system.
  • the situation is dragged down, and the call management system is completely independent of the business system. It can use a different technology implementation system than the business system to achieve higher throughput and high concurrency support. It can provide claims query, which depends on the related system, to provide more functions. Stable and cost-effective service.
  • An embodiment of the present application further provides a computer device.
  • the computer device includes a memory and a processor.
  • the memory is used to store information including program instructions
  • the processor is used to control the execution of the program instructions
  • the program instructions are implemented when the program instructions are loaded and executed by the processor.
  • An embodiment of the present application further provides a computer non-volatile readable storage medium, which controls a device where the computer non-volatile readable storage medium is located to execute the service processing method of the first aspect when a program is running.
  • An embodiment of the present application further provides a computer device.
  • the computer device includes a memory and a processor.
  • the memory is used to store information including program instructions
  • the processor is used to control the execution of the program instructions
  • the program instructions are implemented when the program instructions are loaded and executed by the processor.
  • the embodiment of the present application further provides a computer non-volatile readable storage medium, which controls the device where the computer non-volatile readable storage medium is located to execute the service processing method of the third aspect when the program is running.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Hardware Redundancy (AREA)

Abstract

The embodiments of the present application relate to the technical field of communications, and provided therein are a service processing method, a service system, a call management system and a service processing system. The service processing method provided in the embodiments of the present application comprises: receiving a service request of a user; determining whether the service request requires scheduling a related system; when determined that the service request requires scheduling a related system, forwarding the service request; when the service request does not require scheduling a related system, carrying out service logic processing according to the service request to obtain a processing result; and feeding the processing result back to the user. The technical solution of the present application may reduce or even prevent a situation in which every thread of a current service system becomes congested or a JVM memory even overflows during a large concurrent request.

Description

业务处理方法、业务系统、调用管理系统和业务处理系统Business processing method, business system, call management system and business processing system
本申请要求于2018年06月28日提交中国专利局、申请号为201810690525.0、发明名称为“业务处理方法、业务系统、调用管理系统和业务处理系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed on June 28, 2018 with the Chinese Patent Office, application number 201810690525.0, and the invention name as "Business Processing Method, Business System, Call Management System, and Business Processing System", its entire content Incorporated by reference in this application.
技术领域Technical field
本申请涉及通信技术领域,尤其涉及一种业务处理方法、业务系统、调用管理系统和业务处理系统。The present application relates to the field of communication technologies, and in particular, to a service processing method, a service system, a call management system, and a service processing system.
背景技术Background technique
在大型企业的信息技术系统或者互联网大型系统架构中,基于系统扩展性、稳定性的需求,往往需要将大型系统部署呈分布式多系统架构。在分布式多系统架构中,基于业务逻辑的需求,不同应用系统之间需要基于远程过程调用协议(Remote Procedure Call Protocol,简称RPC)来实现接口数据通信。当用户在业务系统上发起针对一个功能点的业务请求需要一个或多个关联系统配合完成时,业务系统需要对关联系统进行RPC调用。In the large-scale enterprise information technology system or Internet large-scale system architecture, based on the requirements of system scalability and stability, it is often necessary to deploy large-scale systems into a distributed multi-system architecture. In a distributed multi-system architecture, based on the requirements of business logic, different application systems need to implement remote interface call communication based on Remote Procedure Call Protocol (RPC). When a user initiates a business request for a function point on a business system and requires the cooperation of one or more associated systems, the business system needs to make an RPC call to the associated system.
然而,上述对关联系统的RPC调用往往是在本地的JVM(Java Virtual Machine,Java虚拟机)中进行同步处理,故一旦关联系统的服务出现故障,不能返回处理结果,则业务系统只能等待超时,将会导致当前线程被挂起,进行等待,不能向用户反馈处理结果。而用户此时往往会再重新发起请求,而此时关联系统已经不能正常提供服务,很容易在大并发请求时导致当前业务系统的线程全部堵塞甚至出现JVM内存溢出,导致业务系统的一个功能点故障引发整个业务系统不可以使用。However, the aforementioned RPC calls to the associated system are often synchronized in the local JVM (Java Virtual Machine). Therefore, once the service of the associated system fails and cannot return the processing result, the business system can only wait for the timeout. , Will cause the current thread to be suspended, waiting, and the processing result cannot be fed back to the user. The user often re-initiates the request at this time, and the associated system can no longer provide services at this time. It is easy to cause the threads of the current business system to be blocked or even the JVM memory overflow during a large concurrent request, resulting in a functional point of the business system The failure caused the entire business system to be unusable.
申请内容Application content
本申请实施例提供一种业务处理方法、业务系统、调用管理系统和业务处理系统,可以减轻甚至避免在大并发请求时导致当前业务系统的线程全部堵塞甚至JVM内存溢出的情况出现。The embodiments of the present application provide a business processing method, a business system, a call management system, and a business processing system, which can reduce or even avoid the situation that the threads of the current business system are completely blocked or even the JVM memory overflows during large concurrent requests.
第一方面,本申请实施例提供一种业务处理方法,所述业务处理方法包括:接收用户的业务请求;判断所述业务请求是否需要调用关联系统;所述业务请求需要调用关联系统时,将所述业务请求进行转发;所述业务请求不需要调用关联系统时,根据所述业务请求 进行业务逻辑处理,获得处理结果;向所述用户反馈所述处理结果。In a first aspect, an embodiment of the present application provides a service processing method. The service processing method includes: receiving a user's service request; determining whether the service request needs to call an associated system; and when the service request needs to call an associated system, The service request is forwarded; when the service request does not need to call an associated system, business logic processing is performed according to the service request to obtain a processing result; and the processing result is fed back to the user.
第二方面,本申请实施例提供一种业务系统,所述业务系统包括:接收模块,用于接收用户的业务请求;第一RPC接口,用于在所述业务请求需要调用关联系统时,将所述业务请求进行转发;业务判断模块,用于根据所述业务请求,判断业务请求是否需要调用关联系统;业务处理模块,用于在所述业务请求不需要调用关联系统时,根据所述业务请求进行业务逻辑处理,获得处理结果;第一反馈模块,用于向所述用户反馈所述处理结果。In a second aspect, an embodiment of the present application provides a service system. The service system includes: a receiving module configured to receive a user's service request; and a first RPC interface configured to, when the service request needs to call an associated system, The service request is forwarded; a service judgment module is configured to determine whether the service request needs to call an associated system according to the service request; a service processing module is used to determine the service request according to the service when the associated system does not need to call the associated system. Requesting business logic processing to obtain a processing result; a first feedback module, configured to feedback the processing result to the user.
第三方面,本申请实施例提供一种业务处理方法,所述业务处理方法包括:接收转发的业务请求;根据所述业务请求调用对应的关联系统;从所述关联系统接收处理结果;向用户反馈所述处理结果。In a third aspect, an embodiment of the present application provides a service processing method. The service processing method includes: receiving a forwarded service request; invoking a corresponding associated system according to the service request; receiving a processing result from the associated system; and sending a request to a user. The processing result is fed back.
第四方面,本申请实施例提供一种调用管理系统,所述调用管理系统包括:第二RPC接口,用于接收转发的业务请求,以及从关联系统接收处理结果;调用模块,用于根据所述业务请求调用对应的关联系统;第二反馈模块用于向用户反馈处理结果。According to a fourth aspect, an embodiment of the present application provides a call management system. The call management system includes: a second RPC interface for receiving a forwarded service request and receiving a processing result from an associated system; and a calling module for The above-mentioned service request calls the corresponding associated system; the second feedback module is used to feed back the processing result to the user.
第五方面,本申请实施例提供一种业务处理系统,所述业务处理系统包括以上所述的业务系统、以上任一项所述的调用管理系统,以及至少一个关联系统。In a fifth aspect, an embodiment of the present application provides a service processing system. The service processing system includes the service system described above, the call management system described in any one of the foregoing, and at least one associated system.
第六方面,本申请实施例提供一种计算机设备,包括存储器、处理器以及存储在存储器中并可在处理器上运行的计算机程序,处理器执行计算机程序时实现如上述第一方面所述的方法。According to a sixth aspect, an embodiment of the present application provides a computer device including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the processor implements the method described in the first aspect. method.
第七方面,本申请实施例提供一种计算机非易失性可读存储介质,所述计算机非易失性可读存储介质包括存储的程序,其中,在所述程序运行时控制所述计算机非易失性可读存储介质所在设备执行如上述第一方面所述的方法。In a seventh aspect, an embodiment of the present application provides a computer non-volatile readable storage medium, where the computer non-volatile readable storage medium includes a stored program, wherein the computer is controlled when the program runs. The device on which the volatile readable storage medium is located executes the method as described in the first aspect above.
第八方面,本申请实施例提供一种计算机设备,包括存储器、处理器以及存储在存储器中并可在处理器上运行的计算机程序,处理器执行计算机程序时实现如上述第三方面所述的方法。According to an eighth aspect, an embodiment of the present application provides a computer device including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the processor implements the method described in the third aspect above. method.
第九方面,本申请实施例提供一种计算机非易失性可读存储介质,所述计算机非易失性可读存储介质包括存储的程序,其中,在所述程序运行时控制所述计算机非易失性可读存储介质所在设备执行如上述第三方面所述的方法。In a ninth aspect, an embodiment of the present application provides a computer non-volatile readable storage medium, where the computer non-volatile readable storage medium includes a stored program, wherein the computer is controlled when the program runs. The device on which the volatile readable storage medium is located executes the method as described in the third aspect above.
本申请实施例提供了一种业务处理方法、业务系统、调用管理系统和业务处理系统,将该业务处理方法应用于业务系统中时,业务系统接收用户的业务请求,根据用户的业务请求,判断业务请求是否需要调用关联系统,仅在不需要调用关联系统时,才通过自身业务逻辑进行处理,获得处理结果并反馈至客户,而在需要调用关联系统时,业务系统将用户的业务请求进行转发至调用管理系统,由调用管理系统将处理结果反馈至客户,因此,在实施过程中,即使关联系统的服务出现故障,不能返回处理结果,用户再重新发起请求时,请求也会由业务系统转发,从而可以减轻甚至避免在大并发请求时导致当前业务系统的线程全部堵塞甚至JVM内存溢出的情况出现,使得业务系统的一个功能点故障不会对业务系统的其他功能点产生影响,不会引发整个业务系统不可以使用。The embodiments of the present application provide a business processing method, a business system, a call management system, and a business processing system. When the business processing method is applied to a business system, the business system receives a user's business request, and judges based on the user's business request. Does the business request need to call the associated system? Only when it is not necessary to call the associated system, it will be processed through its own business logic to obtain the processing result and feedback to the customer. When the associated system needs to be called, the business system will forward the user's business request To the call management system, the call management system will return the processing result to the customer. Therefore, during the implementation process, even if the service of the related system fails, the processing result cannot be returned. When the user re-initiates the request, the request will be forwarded by the business system. This can alleviate or even avoid the situation that the threads of the current business system are completely blocked or even the JVM memory overflows during large concurrent requests, so that the failure of one function point of the business system will not affect the other function points of the business system and will not cause The entire business system can use.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions in the embodiments of the present application or the prior art more clearly, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without paying creative labor.
图1为本申请实施例提供的一种业务处理方法的流程图一;FIG. 1 is a first flowchart of a service processing method according to an embodiment of the present application;
图2为本申请实施例提供的一种业务处理方法的流程图二;2 is a second flowchart of a service processing method according to an embodiment of the present application;
图3为本申请实施例提供的安全认证校验过程的流程图;FIG. 3 is a flowchart of a security authentication and verification process according to an embodiment of the present application; FIG.
图4为本申请实施例提供的一种业务处理方法的流程图三;4 is a third flowchart of a service processing method according to an embodiment of the present application;
图5为本申请实施例提供的业务系统的示意图一;FIG. 5 is a first schematic diagram of a service system according to an embodiment of the present application; FIG.
图6为本申请实施例提供的业务系统的示意图二;FIG. 6 is a second schematic diagram of a service system according to an embodiment of the present application; FIG.
图7为本申请实施例提供的业务系统的示意图三;FIG. 7 is a third schematic diagram of a service system according to an embodiment of the present application;
图8为本申请实施例提供的又一种业务处理方法的流程图一;8 is a first flowchart of another service processing method according to an embodiment of the present application;
图9为本申请实施例提供的又一种业务处理方法的流程图二;9 is a second flowchart of another service processing method according to an embodiment of the present application;
图10为本申请实施例提供的调用管理系统的示意图一;FIG. 10 is a first schematic diagram of a call management system according to an embodiment of the present application; FIG.
图11为本申请实施例提供的调用管理系统的示意图二;11 is a second schematic diagram of a call management system provided by an embodiment of the present application;
图12为本申请实施例提供的业务处理系统的示意图;FIG. 12 is a schematic diagram of a service processing system according to an embodiment of the present application; FIG.
图13为本申请实施例提供的业务系统、调用管理系统和关联系统的交互过程示意图一;FIG. 13 is a first schematic diagram of an interaction process between a service system, a call management system, and an associated system according to an embodiment of the present application; FIG.
图14为本申请实施例提供的业务系统、调用管理系统和关联系统的交互过程示意图二。FIG. 14 is a second schematic diagram of an interaction process of a service system, a call management system, and an associated system according to an embodiment of the present application.
具体实施方式detailed description
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而否全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
需要说明的是,在不冲突的情况下,本申请实施例中的各技术特征均可以相互结合。It should be noted that, in the case of no conflict, various technical features in the embodiments of the present application may be combined with each other.
第一方面,本申请实施例提供一种业务处理方法,该业务处理方法适用于业务系统,在一个实施例中,如图1所示,图1为本申请实施例提供的一种业务处理方法的流程图一,该业务处理方法包括:In a first aspect, an embodiment of the present application provides a service processing method, which is applicable to a service system. In one embodiment, as shown in FIG. 1, FIG. 1 is a service processing method provided by an embodiment of the present application. Flowchart 1 of this method includes:
步骤10、接收用户的业务请求;Step 10: Receive a service request from a user;
其中,用户的一项业务请求可能针对业务系统的一个或多个功能点。业务请求可以为查询、业务处理、存储等。Among them, a user's business request may be directed to one or more functional points of the business system. Business requests can be queries, business processing, storage, etc.
步骤11、判断业务请求是否需要调用关联系统,若是,则执行步骤12,若否,则执行步骤13和步骤14。 Step 11. Determine whether the service request needs to call the associated system. If so, go to step 12. If not, go to step 13 and step 14.
在第一个例子中,该业务请求无需调用关联系统,即业务系统自身业务逻辑即可对该业务请求进行处理;在第二个例子中,该业务请求只需要调用一个或多个关联系统,即该 业务请求只需要一个或多个关联系统的业务逻辑进行处理,无需业务系统的业务逻辑进行处理;在第三个例子中,该业务请求需要业务系统的业务逻辑进行处理,同时还需要调用一个或多个关联系统的业务逻辑进行处理。In the first example, the business request does not need to call the associated system, that is, the business system's own business logic can process the business request. In the second example, the business request only needs to call one or more associated systems. That is, the business request only needs to be processed by the business logic of one or more related systems, without the business logic of the business system. In the third example, the business request needs to be processed by the business logic of the business system, and it needs to be called The business logic of one or more associated systems is processed.
其中,若根据用户的业务请求,判断业务请求符合第一个例子的情况,则执行步骤13,业务系统直接进行业务逻辑处理,获得处理结果;若根据用户的业务请求,判断业务请求符合第二个例子或者第三个例子的情况,则执行步骤12,业务系统将用户的业务请求进行转发。Among them, if it is determined that the service request meets the first example according to the user's service request, step 13 is performed, and the business system directly performs business logic processing to obtain the processing result; if the service request is determined according to the user's service request, the service request meets the second example. In the case of this example or the third example, step 12 is performed, and the service system forwards the user's service request.
步骤12、将业务请求进行转发。 Step 12. Forward the service request.
当判断出该业务请求需要调用关联系统时,业务系统将用户的业务请求进行转发,例如发送给调用管理系统,以使该调用管理系统等对该业务请求进行处理,获得处理结果,并将该处理结果反馈至用户。When it is determined that the service request needs to call the associated system, the service system forwards the user's service request, for example, to the call management system, so that the call management system processes the service request, obtains the processing result, and The processing result is fed back to the user.
步骤13、根据业务请求进行业务逻辑处理,获得处理结果。Step 13: Perform business logic processing according to the service request to obtain a processing result.
当判断出该业务请求不需要调用关联系统时,业务系统直接对业务请求进行业务逻辑处理,获得处理结果。当业务请求对应一个业务逻辑时,只需要进行一次业务逻辑处理即可,当业务请求对应多个业务逻辑时,需要进行多次业务逻辑处理。例如,业务请求1仅对应业务逻辑A1,则只需要进行业务逻辑A1处理即可;业务请求2对应3个业务逻辑,业务逻辑A2、业务逻辑A3和业务逻辑A4,需要分别进行业务逻辑A2处理、业务逻辑A3处理和业务逻辑A4处理,三者具体顺序与具体业务请求相对应。When it is determined that the service request does not need to call the associated system, the service system directly performs service logic processing on the service request to obtain a processing result. When a business request corresponds to one business logic, only one business logic process is required. When a business request corresponds to multiple business logics, multiple business logic processes are required. For example, business request 1 only corresponds to business logic A1, and only business logic A1 needs to be processed; business request 2 corresponds to three business logics, business logic A2, business logic A3, and business logic A4, and business logic A2 needs to be processed separately , Business logic A3 processing and business logic A4 processing, the specific order of the three corresponds to the specific business request.
步骤14、向用户反馈处理结果。 Step 14. Feedback the processing result to the user.
业务系统进行业务逻辑处理,获得处理结果后,向用户反馈处理结果。The business system performs business logic processing, and after obtaining the processing result, feeds back the processing result to the user.
上述业务处理方法具有如下有益效果:The above business processing method has the following beneficial effects:
将该业务处理方法应用于业务系统中时,业务系统接收用户的业务请求,根据用户的业务请求,判断业务请求是否需要调用关联系统,仅在不需要调用关联系统时,才通过自身业务逻辑进行处理,获得处理结果并反馈至客户,而在需要调用关联系统时,业务系统将用户的业务请求进行转发至调用管理系统,由调用管理系统将处理结果反馈至客户,因此,在实施过程中,即使关联系统的服务出现故障,不能返回处理结果,用户再重新发起请求时,请求也会由业务系统转发,从而可以减轻甚至避免在大并发请求时导致当前业务系统的线程全部堵塞甚至JVM内存溢出的情况出现,使得业务系统的一个功能点故障不会对业务系统的其他功能点产生影响,不会引发整个业务系统不可以使用。When the business processing method is applied to a business system, the business system receives the user's business request, and determines whether the business request needs to call the associated system based on the user's business request. Only when it does not need to call the associated system, it does so through its own business logic. Process, obtain the processing result and feedback to the customer, and when the associated system needs to be called, the business system forwards the user's business request to the call management system, and the call management system feeds back the processing result to the customer. Therefore, during the implementation process, Even if the service of the related system fails, the processing result cannot be returned. When the user re-initiates the request, the request will be forwarded by the business system, which can alleviate or even prevent the threads of the current business system from being blocked or even the JVM memory overflow during large concurrent requests The situation occurs so that the failure of one function point of the business system will not affect the other function points of the business system, and will not cause the entire business system to be unusable.
在又一个实施例中,如图2所示,图2为本申请实施例提供的一种业务处理方法的流程图二,该业务处理方法包括:In another embodiment, as shown in FIG. 2, FIG. 2 is a second flowchart of a service processing method according to an embodiment of the present application. The service processing method includes:
步骤01、根据用户信息和业务请求,进行安全认证校验,判断用户是否具有相应权限,若是,则执行步骤10,若否,则执行步骤02和步骤03。Step 01: Perform security authentication check according to the user information and service request to determine whether the user has corresponding authority. If yes, go to step 10; if not, go to step 02 and step 03.
其中,用户信息包括但不限于用户的登录账号、登录密码等中的一个或多个。上述相应权限为用户的业务请求所需的权限。The user information includes, but is not limited to, one or more of a user's login account, login password, and the like. The above corresponding permissions are the permissions required by the user's business request.
步骤10、接收用户的业务请求和用户信息; Step 10. Receive a user's service request and user information.
步骤02、拒绝用户的业务请求;Step 02: Reject the user's service request;
步骤03、向用户报错。Step 03: Report an error to the user.
步骤11、判断业务请求是否需要调用关联系统,若是,则执行步骤12,若否,则执行步骤13和步骤14。 Step 11. Determine whether the service request needs to call the associated system. If so, go to step 12. If not, go to step 13 and step 14.
步骤12、将业务请求和用户信息进行转发。 Step 12. Forward the service request and user information.
当判断出该业务请求需要调用关联系统时,业务系统将用户的业务请求和用户信息进行转发,例如发送给调用管理系统,以使该调用管理系统对该业务请求进行处理,并且调用管理系统还可以根据用户信息进行安全认证校验,进一步确认用户是否具有相应的权限,若调用管理系统根据用户信息和业务请求进行安全认证校验时,判断用户不具有相应权限,则调用管理系统拒接接收业务请求,若具有相应权限,则调用管理系统对该业务请求进行处理,获得处理结果,并将该处理结果反馈至用户。When it is determined that the business request needs to call the associated system, the business system forwards the user's business request and user information, for example, to the call management system, so that the call management system processes the service request, and the call management system also The security authentication check can be performed according to the user information to further confirm whether the user has the corresponding authority. If the management system is invoked to perform the security authentication verification based on the user information and business request, it is determined that the user does not have the appropriate authority, and the management system is refused to receive it. If the service request has the corresponding authority, the management system is called to process the service request, obtain the processing result, and feed the processing result back to the user.
步骤13、根据业务请求进行业务逻辑处理,获得处理结果。Step 13: Perform business logic processing according to the service request to obtain a processing result.
步骤14、向用户反馈处理结果。 Step 14. Feedback the processing result to the user.
可选地,步骤01中,根据用户信息和业务请求进行安全认证校验具体可以通过JWT(JSON Web Token)技术实现,如图3所示,图3为本申请实施例提供的安全认证校验过程的流程图,安全认证校验过程包括以下内容:Optionally, in step 01, the security authentication verification according to the user information and the service request may be specifically implemented by JWT (JSON Web Token) technology. As shown in FIG. 3, FIG. 3 is a security authentication verification provided by an embodiment of the present application. The flowchart of the process, the security certification verification process includes the following:
1、用户登录(例如通过客户端登录)时通过账号和密码到业务系统进行认证,认证通过后,业务系统通过持有的密钥生成Token,用户不需要持有密钥,由业务系统通过密钥生成Token即可,Token中一般包含失效时长和用户唯一标识,如用户ID,业务系统返回Token给用户。1. When the user logs in (for example, through the client), the account and password are used to authenticate to the business system. After the authentication is passed, the business system generates a token by using the held key. The user does not need to hold the key. The business system passes the secret. The key can be used to generate a Token. The Token generally contains the expiration time and the unique identifier of the user, such as the user ID. The business system returns the Token to the user.
2、用户保存业务系统返回的Token。2. The user saves the token returned by the business system.
3、用户进行业务请求,并在Head的Authorization字段里面携带Token,如:Authorization:Bearer Token。3. The user makes a business request and carries a Token in the Authorization field of the Head, such as: Authorization: Bearer token.
4、业务系统对业务请求包含的Token进行校验,并在Redis中查找Token是否存在,业务系统通过从Token取得的用户唯一标识进行相应权限的校验,并把此用户唯一标识赋予到请求参数中,上述查找主要是为了解决用户注销,但Token还在时效内的问题,如果Token在Redis中存在,则说明用户已注销;如果Token不存在,则校验通过。4. The business system verifies the Token contained in the business request, and looks for the existence of the Token in Redis. The business system verifies the corresponding permissions by the user's unique identity obtained from the Token, and assigns this user's unique identity to the request parameters In the above, the above search is mainly to solve the problem of user cancellation, but the token is still within the time limit. If the token exists in Redis, it means that the user has been cancelled; if the token does not exist, the verification passes.
5、业务系统通过此用户唯一标识对业务请求进行处理,并向用户返回处理结果。5. The business system processes the service request through the unique identifier of the user, and returns the processing result to the user.
其中,用户注销时,业务系统把还在时效内的Token保存到Redis中,并设置正确的失效时长,并向用户提示注销成功。Among them, when the user logs out, the business system saves the Token that is still within the time limit to Redis, sets the correct expiration time, and prompts the user that the logout is successful.
可选地,如图4所示,图4为本申请实施例提供的一种业务处理方法的流程图三,业务处理方法还包括:在接收用户的业务请求之后,并在判断业务请求是否需要调用关联系统之前,执行以下步骤:Optionally, as shown in FIG. 4, FIG. 4 is a third flowchart of a service processing method according to an embodiment of the present application. The service processing method further includes: after receiving a user's service request, and determining whether the service request is required Before calling the associated system, perform the following steps:
步骤101、对所有业务逻辑进行划分,确定不需要调用关联系统的业务逻辑,以及需要调用关联系统的业务逻辑。Step 101: Divide all business logic, and determine that the business logic of the associated system does not need to be called, and the business logic of the associated system that needs to be called.
例如,业务系统A中包含有n个业务逻辑,n为大于1的正整数,例如100,业务逻辑A1~Ax为不需要调用关联系统的业务逻辑,业务逻辑Ax+1~An为需要调用关联系统的业务逻辑,x为大于或等于1且小于或等于n的正整数,例如90。For example, business system A contains n business logics, n is a positive integer greater than 1, such as 100, business logics A1 to Ax are business logics that do not need to call the associated system, and business logics Ax + 1 to An are those that need to call the association The business logic of the system, x is a positive integer greater than or equal to 1 and less than or equal to n, such as 90.
步骤102、对不需要调用关联系统的各业务逻辑进行编号。Step 102: Number each business logic that does not need to call the associated system.
例如,将不需要调用关联系统的业务逻辑A1~Ax编号为RPC(A1)~RPC(Ax), 以上编号方式仅为举例并非限定。For example, the business logics A1 to Ax that do not need to call the associated system are numbered RPC (A1) to RPC (Ax). The above numbering method is merely an example and is not limiting.
步骤103、确定需要调用关联系统的各业务逻辑具体需要调用的关联系统。Step 103: Determine the associated system that needs to be invoked by each business logic of the associated system.
例如,上述n的取值为100、x的取值为90,经步骤103确定出业务逻辑A91~A100需要调用的关联系统分别为B、B、C、D、E、C、E、B、D、E。以上仅为举例并非限定,当然,也可以不同的业务逻辑调用不同的关联系统。For example, the value of n is 100 and the value of x is 90. After step 103, it is determined that the associated systems to be invoked by business logic A91 to A100 are B, B, C, D, E, C, E, B, and D, E. The above is just an example and is not limited. Of course, different business logic can also call different associated systems.
步骤104、根据具体需要调用的关联系统,对需要调用关联系统的各业务逻辑进行编号。Step 104: Number the business logic of the associated system that needs to be called according to the specific needs.
例如,经步骤103确定出业务逻辑A91~A100需要调用的关联系统分别为B、B、C、D、E、C、E、B、D、E需之后,将业务逻辑A91~A100分别编号为RPC(B1)、RPC(B2)、RPC(C1)、RPC(D1)、RPC(E1)、RPC(C2)、RPC(E2)、RPC(B2)、RPC(D2)和RPC(E3),以上编号方式仅为举例并非限定。For example, after determining in Step 103 that the associated systems that need to be invoked by the business logic A91-A100 are B, B, C, D, E, C, E, B, D, E, respectively, the business logic A91-A100 are numbered as RPC (B1), RPC (B2), RPC (C1), RPC (D1), RPC (E1), RPC (C2), RPC (E2), RPC (B2), RPC (D2), and RPC (E3), The above numbering methods are merely examples and not limiting.
需要说明的是,以业务逻辑A91的编号RPC(B1)为例,其中的“B”指的是该业务逻辑A91需要调用关联系统B,“1”指的是该业务逻辑为业务系统A的所有业务逻辑中第一个(即编号最靠前的)需要调用关联系统B的业务逻辑。其他类似描述理解方式同上,此处不再一一进行赘述。It should be noted that, taking the number RPC (B1) of the business logic A91 as an example, "B" means that the business logic A91 needs to call the associated system B, and "1" means that the business logic is the business system A's The first of all business logics (that is, the highest number) needs to call the business logic of the associated system B. Other similar descriptions are understood in the same manner as above, and will not be repeated one by one here.
需要说明的是,一个业务请求与一个或多个业务逻辑相对应,但每个业务逻辑均与一个系统(业务系统或者关联系统)相对应,例如,业务请求1仅对应业务逻辑A1,业务请求2对应3个业务逻辑,业务逻辑A2、业务逻辑A3和业务逻辑A4,业务请求3对应3个业务逻辑,业务逻辑A91、业务逻辑A93和业务逻辑A94,业务请求4对应3个业务逻辑,业务逻辑A5、业务逻辑A95和业务逻辑A96。It should be noted that a business request corresponds to one or more business logics, but each business logic corresponds to a system (business system or associated system). For example, business request 1 only corresponds to business logic A1, and business request 2 corresponds to 3 business logics, business logic A2, business logic A3, and business logic A4, business request 3 corresponds to 3 business logics, business logic A91, business logic A93, and business logic A94, and business request 4 corresponds to 3 business logics, business Logic A5, business logic A95, and business logic A96.
上述各步骤中可以先执行步骤102,再执行步骤103和步骤104,也可以先执行步骤103和步骤104,再执行步骤102。In the above steps, step 102 may be performed first, and then step 103 and step 104 may be performed, or step 103 and step 104 may be performed first, and then step 102 may be performed.
与之对应地,步骤13具体为根据业务请求调用对应编号的业务逻辑,获得处理结果。Correspondingly, step 13 is specifically to call the business logic of the corresponding number according to the service request to obtain the processing result.
在此实施例中,对业务系统中的各业务逻辑进行了编号,可以应用该编号制定出处理业务请求的接口调用策略,可以更方便快速地对业务请求进行处理。In this embodiment, each business logic in the business system is numbered, and this number can be used to formulate an interface invocation strategy for processing business requests, which can more conveniently and quickly process business requests.
第二方面,本申请实施例提供一种业务系统,如图5所示,图5为本申请实施例提供的业务系统的示意图一,该业务系统包括:接收模块51、第一RPC接口52、业务判断模块53、业务处理模块54和第一反馈模块55。其中,接收模块51用于接收用户的业务请求;第一RPC接口52用于在业务请求需要调用关联系统时,将业务请求进行转发;业务判断模块53用于根据业务请求,判断业务请求是否需要调用关联系统;业务处理模块54用于在业务请求不需要调用关联系统时,根据业务请求进行业务逻辑处理,获得处理结果;第一反馈模块55用于向用户反馈处理结果。该业务系统适用于第一方面所述的业务处理方法。第一方面中的业务处理方法的具体内容均适用于此业务系统。In a second aspect, an embodiment of the present application provides a service system. As shown in FIG. 5, FIG. 5 is a first schematic view of a service system provided by an embodiment of the present application. The service system includes a receiving module 51, a first RPC interface 52, The service judgment module 53, the service processing module 54, and the first feedback module 55. The receiving module 51 is used to receive a user's service request; the first RPC interface 52 is used to forward a service request when the service request needs to call the associated system; the service determination module 53 is used to determine whether the service request is required according to the service request Invoke the associated system; the business processing module 54 is configured to perform business logic processing according to the service request to obtain the processing result when the business request does not need to call the associated system; the first feedback module 55 is used to feedback the processing result to the user. The business system is applicable to the business processing method described in the first aspect. The specific contents of the business processing method in the first aspect are applicable to this business system.
可选地,如图6所示,图6为本申请实施例提供的业务系统的示意图二,该业务系统还包括第一认证模块56,第一认证模块56用于根据用户信息和业务请求,进行安全认证校验,判断用户是否具有相应权限。接收模块51具体用于在用户具有相应权限时,接收用户的业务请求和用户信息,以及在用户不具有相应权限时,拒绝接收用户的业务请求;第一RPC接口52具体用于在业务请求需要调用关联系统时,将用户的业务请求和用户信 息进行转发;第一反馈模块55还用于在拒绝接收用户的业务请求时,向用户报错。Optionally, as shown in FIG. 6, FIG. 6 is a second schematic diagram of a service system provided in an embodiment of the present application. The service system further includes a first authentication module 56, and the first authentication module 56 is configured to receive user information and service requests. Perform security authentication check to determine whether the user has the corresponding authority. The receiving module 51 is specifically configured to receive the user's service request and user information when the user has the corresponding authority, and to refuse to receive the user's service request when the user does not have the corresponding authority; the first RPC interface 52 is specifically used to When the associated system is called, the user's service request and user information are forwarded; the first feedback module 55 is further configured to report an error to the user when the user's service request is rejected.
可选地,如图7所示,图7为本申请实施例提供的业务系统的示意图三,该业务系统还包括业务逻辑划分模块57和编号模块58;业务逻辑划分模块57用于对业务系统中的业务逻辑进行划分,获得不需要调用关联系统的业务逻辑,以及需要调用关联系统的业务逻辑;编号模块58用于对不需要调用关联系统的各业务逻辑进行编号,以及确定需要调用关联系统的各业务逻辑具体需要调用的关联系统,并根据具体需要调用的关联系统,对需要调用关联系统的各业务逻辑进行编号。与之对应地,业务处理模块54具体用于根据业务请求调用对应编号的业务逻辑,获得处理结果。Optionally, as shown in FIG. 7, FIG. 7 is a third schematic diagram of a service system according to an embodiment of the present application. The service system further includes a service logic division module 57 and a numbering module 58. The service logic division module 57 is used for the service system. The business logic in the system is divided to obtain the business logic that does not need to call the associated system, and the business logic that needs to call the associated system. The numbering module 58 is used to number the business logic that does not need to call the associated system, and determine that the associated system needs to be called. Each business logic needs to call the associated system, and according to the specific needs of the associated system, the business logic that needs to call the associated system is numbered. Correspondingly, the service processing module 54 is specifically configured to call the service logic of the corresponding number according to the service request to obtain a processing result.
第三方面,本申请实施例提供一种业务处理方法,该业务处理方法适用于调用管理系统,在一个实施例中,如图8所示,图8为本申请实施例提供的又一种业务处理方法的流程图一,该业务处理方法包括:In a third aspect, an embodiment of the present application provides a service processing method, which is suitable for invoking a management system. In one embodiment, as shown in FIG. 8, FIG. 8 is another service provided by the embodiment of the present application. Flow chart 1 of the processing method. The service processing method includes:
步骤20、接收转发的业务请求。Step 20: Receive the forwarded service request.
具体为,在根据用户的业务请求,判断业务请求需要调用关联系统时,业务系统将用户的业务请求进行转发,调用管理系统接收业务系统转发的业务请求。Specifically, when it is determined that the service request needs to call the associated system according to the user's service request, the service system forwards the user's service request, and the management system is called to receive the service request forwarded by the service system.
步骤21、根据业务请求调用对应的关联系统。Step 21: Call the corresponding associated system according to the service request.
具体为,调用管理系统中设置有业务请求、业务逻辑与关联系统之间的映射关系,调用管理系统根据业务请求和上述映射关系,调用对应的关联系统。例如,映射关系一:业务请求3对应3个业务逻辑,业务逻辑A91(RPC(B1))、业务逻辑A93(RPC(C1))和业务逻辑A94(RPC(D1)),三者执行顺序为RPC(B1)->RPC(C1)->RPC(D1),则调用管理系统根据该映射关系依次调用关联系统B、关联系统C和关联系统D;映射关系二:业务请求4对应3个业务逻辑,业务逻辑A5(RPC(A5))、业务逻辑A95(RPC(E1))和业务逻辑A96(RPC(C2)),三者执行顺序为RPC(A5)->RPC(E1)->RPC(C2),则调用管理系统根据该映射关系依次调用业务系统A、关联系统E和关联系统C。Specifically, the call management system is provided with a mapping relationship between a service request, business logic, and an associated system, and the call management system calls a corresponding associated system according to the service request and the above mapping relationship. For example, mapping relationship 1: Business request 3 corresponds to 3 business logics, business logic A91 (RPC (B1)), business logic A93 (RPC (C1)), and business logic A94 (RPC (D1)). The execution order of the three is RPC (B1)-> RPC (C1)-> RPC (D1), then call the management system to call related system B, related system C, and related system D in turn according to the mapping relationship; mapping relationship 2: service request 4 corresponds to 3 services Logic, business logic A5 (RPC (A5)), business logic A95 (RPC (E1)), and business logic A96 (RPC (C2)), the execution order of the three is RPC (A5)-> RPC (E1)-> RPC (C2), the call management system sequentially calls the business system A, the related system E, and the related system C according to the mapping relationship.
步骤22、从关联系统接收处理结果。Step 22: Receive a processing result from the associated system.
具体为,管理调用系统从最后调用的关联系统接收处理结果。Specifically, the management calling system receives a processing result from the associated system that was called last.
步骤23、向用户反馈处理结果。Step 23: feedback the processing result to the user.
管理调用系统将处理结果反馈给用户。The management invocation system feeds back the processing results to the user.
可选地,如图9所示,图9为本申请实施例提供的又一种业务处理方法的流程图二,当业务系统转发业务请求和用户信息时,上述业务处理方法还包括在接收业务请求之前,执行步骤201,根据业务请求和用户信息,进行安全认证校验,判断用户是否具有相应权限,并在用户具有相应权限时,执行步骤20接收转发的业务请求,在用户不具有相应权限时,执行步骤202拒绝转发的业务请求。第三方面的业务处理方法中根据业务请求和用户信息,进行安全认证校验的具体过程可参见第一方面的业务处理方法中相关内容,此处不再进行赘述。Optionally, as shown in FIG. 9, FIG. 9 is a second flowchart of another service processing method according to an embodiment of the present application. When a service system forwards a service request and user information, the foregoing service processing method further includes receiving a service. Before the request, step 201 is performed to perform security authentication verification based on the service request and user information to determine whether the user has the corresponding authority. When the user has the corresponding authority, perform step 20 to receive the forwarded service request. The user does not have the corresponding authority. When step 202 is executed, the forwarded service request is rejected. For the specific process of performing security authentication and verification based on the service request and user information in the service processing method of the third aspect, refer to related content in the service processing method of the first aspect, which will not be repeated here.
第四方面,本申请实施例提供一种调用管理系统(rpcManager),如图10所示,图10为本申请实施例提供的调用管理系统的示意图一,调用管理系统包括第二RPC接口1001、调用模块1002和第二反馈模块1003;第二RPC接口1001用于接收转发的业务请求,以及从关联系统接收处理结果;第二反馈模块1003用于向用户反馈处理结果;调用模块1002 用于根据业务请求调用对应的关联系统。In a fourth aspect, an embodiment of the present application provides a call management system (rpcManager). As shown in FIG. 10, FIG. 10 is a schematic diagram of a call management system provided by an embodiment of the present application. The call management system includes a second RPC interface 1001. A calling module 1002 and a second feedback module 1003; a second RPC interface 1001 is used to receive a forwarded service request and receive a processing result from an associated system; a second feedback module 1003 is used to feedback a processing result to a user; a calling module 1002 is used to The business request calls the corresponding associated system.
可选地,调用模块1002具体用于根据业务请求、业务逻辑与关联系统之间的映射关系,调用对应的关联系统。其中,业务请求、业务逻辑与关联系统之间的映射关系可以存储于调用模块1002中。Optionally, the calling module 1002 is specifically configured to call the corresponding associated system according to the mapping relationship between the service request, the business logic, and the associated system. The mapping relationship between the service request, the business logic, and the associated system may be stored in the calling module 1002.
可选地,如图11所示,图11为本申请实施例提供的调用管理系统的示意图二,调用管理系统还包括第二认证模块1004,用于根据用户信息和业务请求,进行安全认证校验,判断用户是否具有相应权限。若用户具有相应权限,则第二RPC接口1001接收转发的业务请求,若用户不具有相应权限,则第二RPC接口1001拒绝转发的业务请求。Optionally, as shown in FIG. 11, FIG. 11 is a second schematic diagram of a call management system provided by an embodiment of the present application. The call management system further includes a second authentication module 1004 for performing security authentication calibration according to user information and service requests. Check to determine whether the user has the appropriate permissions. If the user has the corresponding authority, the second RPC interface 1001 receives the forwarded service request. If the user does not have the corresponding authority, the second RPC interface 1001 rejects the forwarded service request.
该调用管理系统适用于第三方面所述的业务处理方法,第三方面中的业务处理方法的具体内容均适用于此调用管理系统。该调用管理系统可通过Java方案,Node.Js方案或者go语言方案实现。另外,调用管理系统还可以提供完整的鉴权、阀值控制、监控、日志记录等功能。The call management system is applicable to the business processing method described in the third aspect, and the specific content of the business processing method in the third aspect is applicable to this call management system. The call management system can be implemented through a Java solution, a Node.Js solution or a Go language solution. In addition, the call management system can also provide complete functions such as authentication, threshold control, monitoring, and logging.
第五方面,本申请实施例提供一种业务处理系统,如图12所示,图12为本申请实施例提供的业务处理系统的示意图,该业务处理系统包括之前所述的业务系统1201、调用管理系统1202和至少一个关联系统1203。其中,业务系统1201和调用管理系统1202的具体内容参见之前描述,此处不再进行赘述。In a fifth aspect, an embodiment of the present application provides a service processing system. As shown in FIG. 12, FIG. 12 is a schematic diagram of a service processing system provided by an embodiment of the present application. The service processing system includes the service system 1201 and the call described above. A management system 1202 and at least one associated system 1203. The specific content of the service system 1201 and the call management system 1202 is described in the foregoing description, and details are not described herein again.
示例性地,如图13和图14所示,图13为本申请实施例提供的业务系统、调用管理系统和关联系统的交互过程示意图一,图14为本申请实施例提供的业务系统、调用管理系统和关联系统的交互过程示意图二,业务处理系统对用户的业务请求进行处理的过程如下:For example, as shown in FIG. 13 and FIG. 14, FIG. 13 is a schematic diagram 1 of interaction processes of a service system, a call management system, and an associated system according to an embodiment of the present application, and FIG. 14 is a service system, call, and the like provided by an embodiment of the present application. Schematic diagram of the interaction process between the management system and the associated system. The process of the business processing system processing the user's business request is as follows:
如图13所示,业务系统接收用户的业务请求,业务系统判断该业务请求是否需要调用关联系统,若需要调用,则将用户的业务请求转发至调用管理系统,调用管理系统接收业务系统转发的业务请求,并根据业务请求调用对应的关联系统,关联系统进行业务逻辑处理,获得处理结果,关联系统将处理结果发送至调用管理系统,调用管理系统从关联系统接收处理结果,并向用户反馈处理结果。As shown in FIG. 13, the service system receives the user's service request, and the service system determines whether the service request needs to call the associated system. If it needs to be called, it forwards the user's service request to the call management system, and the call management system receives the service system forwarded Business request, and call the corresponding associated system according to the business request, the associated system performs business logic processing to obtain the processing result, the associated system sends the processing result to the call management system, the call management system receives the processing result from the related system, and feedbacks the processing to the user result.
如图14所示,业务系统接收用户的业务请求,业务系统判断该业务请求是否需要调用关联系统,若不需要调用,则业务系统直接根据业务请求进行业务逻辑处理,获得处理结果,并向用户反馈处理结果。As shown in FIG. 14, the business system receives the user's business request, and the business system determines whether the business request needs to call the associated system. If it is not required, the business system directly performs business logic processing according to the business request, obtains the processing result, and sends it to the user. Feedback processing results.
第六方面,本申请实施例提供一种具体应用实例,以车险远程销售中坐席查询理赔信息(查询理赔信息即为业务请求)为例,In a sixth aspect, the embodiment of the present application provides a specific application example, in which an agent inquires claim information (request for claim information is a business request) in a car insurance remote sale.
现有技术中,理赔信息保存在hbase(即关联系统)中,但是业务系统查询hbase的理赔信息时,由于bhase出现了异常导致业务系统的线程挂起。线程挂起后,用户界面上一直无法得到查询结果,用户着急又重新刷新页面再次触发新的查询请求。业务系统接到新的查询请求,使用新的线程去查询hbase,hbase又没有反馈,该新线程又挂起。大量用户反复触发新的查询请求,导致业务系统的线程耗尽,整个业务系统不可用,也就是说就为了实现业务系统的这样一个非核心关键功能(即查询理赔信息的功能),且因为关联系统的异常耗尽了业务系统的线程,导致了整个业务系统的所有功能不可使用。In the prior art, claim information is stored in hbase (that is, an associated system), but when a business system queries hbase's claim information, a thread of the business system hangs due to an exception in bhase. After the thread hangs, the query result cannot be obtained on the user interface. The user is eager to refresh the page and trigger a new query request again. The business system receives a new query request, uses a new thread to query hbase, hbase has no feedback, and the new thread hangs again. A large number of users repeatedly trigger new query requests, causing the business system threads to be exhausted, and the entire business system is unavailable, that is, to achieve such a non-core key function of the business system (that is, the function of querying claims information), and because of the association The exception of the system exhausted the threads of the business system, resulting in all functions of the entire business system being unavailable.
本申请实施例中,由于非核心的理赔信息查询功能需要调用关联系统Hbase,因此, 业务系统接收查询理赔信息的业务请求时,将该业务请求转发至调用管理系统进行处理,即将该查询理赔信息的功能从业务系统中分离出去,由新搭建的调用管理系统承接处理,不仅可以在关联系统Hbase出现异常时,不会影响业务系统自身的相关功能,减少因为关联系统提供的接口异常导致业务系统被拖垮的情况,而且调用管理系统完全独立于业务系统,可采用与业务系统不同的技术实现体系来实现更高的吞吐量和高并发支持,可以理赔查询这种依赖关联系统的功能提供更加稳定、高性价比的服务。In the embodiment of the present application, since the non-core claim information query function needs to call the related system Hbase, when the business system receives a service request for querying the claim information, it forwards the business request to the call management system for processing, that is, to query the claim information. The functions are separated from the business system and handled by the newly established call management system, which not only can not affect the related functions of the business system when the abnormality of the related system Hbase occurs, and reduce the business system caused by the abnormality of the interface provided by the related system. The situation is dragged down, and the call management system is completely independent of the business system. It can use a different technology implementation system than the business system to achieve higher throughput and high concurrency support. It can provide claims query, which depends on the related system, to provide more functions. Stable and cost-effective service.
本申请实施例还提供了一种计算机设备,该计算机设备包括存储器和处理器,存储器用于存储包括程序指令的信息,处理器用于控制程序指令的执行,程序指令被处理器加载并执行时实现上述第一方面的业务处理方法。An embodiment of the present application further provides a computer device. The computer device includes a memory and a processor. The memory is used to store information including program instructions, the processor is used to control the execution of the program instructions, and the program instructions are implemented when the program instructions are loaded and executed by the processor. The business processing method of the first aspect.
本申请实施例还提供了一种计算机非易失性可读存储介质,在程序运行时控制计算机非易失性可读存储介质所在设备执行上述第一方面的业务处理方法。An embodiment of the present application further provides a computer non-volatile readable storage medium, which controls a device where the computer non-volatile readable storage medium is located to execute the service processing method of the first aspect when a program is running.
本申请实施例还提供了一种计算机设备,该计算机设备包括存储器和处理器,存储器用于存储包括程序指令的信息,处理器用于控制程序指令的执行,程序指令被处理器加载并执行时实现上述第三方面的业务处理方法。An embodiment of the present application further provides a computer device. The computer device includes a memory and a processor. The memory is used to store information including program instructions, the processor is used to control the execution of the program instructions, and the program instructions are implemented when the program instructions are loaded and executed by the processor. The business processing method of the third aspect.
本申请实施例还提供了一种计算机非易失性可读存储介质,在程序运行时控制计算机非易失性可读存储介质所在设备执行上述第三方面的业务处理方法。The embodiment of the present application further provides a computer non-volatile readable storage medium, which controls the device where the computer non-volatile readable storage medium is located to execute the service processing method of the third aspect when the program is running.
最后应说明的是:以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to describe the technical solution of the present application, rather than limiting it. Although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: The technical solutions described in the foregoing embodiments can still be modified, or some or all of the technical features can be equivalently replaced; and these modifications or replacements do not deviate the essence of the corresponding technical solutions from the technical solutions of the embodiments of the present application. range.

Claims (20)

  1. 一种业务处理方法,其特征在于,包括:A service processing method, comprising:
    接收用户的业务请求;Receive user service requests;
    判断所述业务请求是否需要调用关联系统;Determining whether the service request needs to call an associated system;
    所述业务请求需要调用关联系统时,将所述业务请求进行转发;When the service request needs to call an associated system, forwarding the service request;
    所述业务请求不需要调用关联系统时,根据所述业务请求进行业务逻辑处理,获得处理结果;When the service request does not need to call an associated system, perform business logic processing according to the service request to obtain a processing result;
    向所述用户反馈所述处理结果。Feedback the processing result to the user.
  2. 根据权利要求1所述的业务处理方法,其特征在于,在所述接收用户的业务请求之前,还包括:The service processing method according to claim 1, before the receiving a service request from a user, further comprising:
    根据用户信息和所述业务请求,进行安全认证校验,判断所述用户是否具有相应权限;Perform security authentication check according to the user information and the service request, and determine whether the user has corresponding authority;
    判断所述用户具有相应权限时,接收所述用户的所述业务请求和所述用户信息,并在判断所述业务请求需要调用关联系统时,将所述业务请求和所述用户信息进行转发;When determining that the user has corresponding authority, receiving the service request and the user information of the user, and when determining that the service request needs to call an associated system, forwarding the service request and the user information;
    判断所述用户不具有相应权限时,拒绝所述用户的所述业务请求,并向所述用户报错。When it is determined that the user does not have corresponding authority, the service request of the user is rejected, and an error is reported to the user.
  3. 根据权利要求1或2所述的业务处理方法,其特征在于,还包括在所述接收用户的业务请求之后,在所述判断所述业务请求是否需要调用关联系统之前的以下步骤:The service processing method according to claim 1 or 2, further comprising the following steps after the receiving a user's service request, before the determining whether the service request needs to call an associated system:
    将业务系统中的所有业务逻辑进行划分,确定不需要调用关联系统的业务逻辑,以及需要调用关联系统的业务逻辑;Divide all the business logic in the business system, and determine that the business logic of the associated system does not need to be called, and the business logic of the associated system needs to be called;
    对不需要调用关联系统的各业务逻辑进行编号;Number the business logic that does not need to call the associated system;
    确定需要调用关联系统的各业务逻辑具体需要调用的关联系统;Determine the specific associated system that needs to be invoked for each business logic of the associated system;
    根据具体需要调用的关联系统,对需要调用关联系统的各业务逻辑进行编号;Number the business logic that needs to call the associated system according to the specific system that needs to be called;
    其中,所述根据所述业务请求进行业务逻辑处理,获得处理结果为:根据所述业务请求调用对应编号的所述业务逻辑,获得所述处理结果。Wherein, performing the business logic processing according to the service request, and obtaining a processing result is: invoking the business logic of a corresponding number according to the service request to obtain the processing result.
  4. 一种业务系统,其特征在于,包括:A business system, which includes:
    接收模块,用于接收用户的业务请求;A receiving module for receiving a service request of a user;
    第一RPC接口,用于在所述业务请求需要调用关联系统时,将所述业务请求进行转发;A first RPC interface, configured to forward the service request when the service request needs to call an associated system;
    业务判断模块,用于根据所述业务请求,判断业务请求是否需要调用关联系统;A service judgment module, configured to determine whether a service request needs to call an associated system according to the service request;
    业务处理模块,用于在所述业务请求不需要调用关联系统时,根据所述业务请求进行业务逻辑处理,获得处理结果;A business processing module, configured to: when the business request does not need to call an associated system, perform business logic processing according to the business request to obtain a processing result;
    第一反馈模块,用于向所述用户反馈所述处理结果。A first feedback module, configured to feed back the processing result to the user.
  5. 一种业务处理方法,其特征在于,包括:A service processing method, comprising:
    接收转发的业务请求;Receive forwarded service requests;
    根据所述业务请求调用对应的关联系统;Calling a corresponding association system according to the service request;
    从所述关联系统接收处理结果;Receiving a processing result from the associated system;
    向用户反馈所述处理结果。The processing result is fed back to the user.
  6. 根据权利要求5所述的业务处理方法,其特征在于,还包括:在所述接收转发的业务请求之前的以下步骤:The service processing method according to claim 5, further comprising the following steps before the receiving the forwarded service request:
    根据所述业务请求和用户信息,进行安全认证校验,判断用户是否具有相应权限,并在所述用户具有相应权限时,接收转发的所述业务请求,在所述用户不具有相应权限时,拒绝所述业务请求。Perform security authentication check according to the service request and user information, determine whether the user has corresponding authority, and receive the forwarded service request when the user has corresponding authority, and when the user does not have corresponding authority, Rejecting the business request.
  7. 一种调用管理系统,其特征在于,包括:A call management system, comprising:
    第二RPC接口,用于接收转发的业务请求,以及从关联系统接收处理结果;A second RPC interface for receiving a forwarded service request and receiving a processing result from an associated system;
    调用模块,用于根据所述业务请求调用对应的关联系统;A calling module, configured to call a corresponding associated system according to the service request;
    第二反馈模块用于向用户反馈处理结果。The second feedback module is used to feedback the processing result to the user.
  8. 根据权利要求7所述的调用管理系统,其特征在于,所述调用模块用于根据业务请求、业务逻辑与关联系统之间的映射关系,调用对应的关联系统。The call management system according to claim 7, wherein the call module is configured to call a corresponding associated system according to a mapping relationship between a service request, business logic, and an associated system.
  9. 根据权利要求7所述的调用管理系统,其特征在于,还包括第二认证模块,用于根据所述用户信息和所述业务请求,进行安全认证校验,判断所述用户是否具有相应权限。The call management system according to claim 7, further comprising a second authentication module, configured to perform security authentication verification according to the user information and the service request, and determine whether the user has corresponding authority.
  10. 一种业务处理系统,其特征在于,包括权利要求4所述的业务系统、权利要求7~9任一项所述的调用管理系统,以及至少一个关联系统。A business processing system, comprising the business system according to claim 4, the call management system according to any one of claims 7 to 9, and at least one associated system.
  11. 一种计算机设备,包括存储器和处理器,所述存储器用于存储包括程序指令的信息,所述处理器用于控制所述程序指令的执行,其特征在于,所述程序指令被所述处理器加载并执行时实现以下步骤:A computer device includes a memory and a processor, the memory is used to store information including program instructions, the processor is used to control the execution of the program instructions, and the program instructions are loaded by the processor The following steps are implemented when executed:
    接收用户的业务请求;Receive user service requests;
    判断所述业务请求是否需要调用关联系统;Determining whether the service request needs to call an associated system;
    所述业务请求需要调用关联系统时,将所述业务请求进行转发;When the service request needs to call an associated system, forwarding the service request;
    所述业务请求不需要调用关联系统时,根据所述业务请求进行业务逻辑处理,获得处理结果;When the service request does not need to call an associated system, perform business logic processing according to the service request to obtain a processing result;
    向所述用户反馈所述处理结果。Feedback the processing result to the user.
  12. 根据权利要求11所述的计算机设备,其特征在于,所述程序指令被所述处理器 加载并执行时还实现以下步骤:The computer device according to claim 11, wherein, when the program instructions are loaded and executed by the processor, the following steps are further implemented:
    根据用户信息和所述业务请求,进行安全认证校验,判断所述用户是否具有相应权限;Perform security authentication check according to the user information and the service request, and determine whether the user has corresponding authority;
    判断所述用户具有相应权限时,接收所述用户的所述业务请求和所述用户信息,并在判断所述业务请求需要调用关联系统时,将所述业务请求和所述用户信息进行转发;When determining that the user has corresponding authority, receiving the service request and the user information of the user, and when determining that the service request needs to call an associated system, forwarding the service request and the user information;
    判断所述用户不具有相应权限时,拒绝所述用户的所述业务请求,并向所述用户报错。When it is determined that the user does not have corresponding authority, the service request of the user is rejected, and an error is reported to the user.
  13. 根据权利要求11或12所述的计算机设备,其特征在于,所述程序指令被所述处理器加载并执行时还实现以下步骤:The computer device according to claim 11 or 12, wherein when the program instructions are loaded and executed by the processor, the following steps are further implemented:
    将业务系统中的所有业务逻辑进行划分,确定不需要调用关联系统的业务逻辑,以及需要调用关联系统的业务逻辑;Divide all the business logic in the business system, and determine that the business logic of the associated system does not need to be called, and the business logic of the associated system needs to be called;
    对不需要调用关联系统的各业务逻辑进行编号;Number the business logic that does not need to call the associated system;
    确定需要调用关联系统的各业务逻辑具体需要调用的关联系统;Determine the specific associated system that needs to be invoked for each business logic of the associated system;
    根据具体需要调用的关联系统,对需要调用关联系统的各业务逻辑进行编号;Number the business logic that needs to call the associated system according to the specific system that needs to be called;
    其中,所述根据所述业务请求进行业务逻辑处理,获得处理结果为:根据所述业务请求调用对应编号的所述业务逻辑,获得所述处理结果。Wherein, performing the business logic processing according to the service request, and obtaining a processing result is: invoking the business logic of a corresponding number according to the service request to obtain the processing result.
  14. 一种计算机非易失性可读存储介质,其特征在于,在所述程序运行时控制所述计算机非易失性可读存储介质所在设备执行以下步骤:A computer non-volatile readable storage medium, characterized in that, when the program is running, controlling a device where the computer non-volatile readable storage medium is located performs the following steps:
    接收用户的业务请求;Receive user service requests;
    判断所述业务请求是否需要调用关联系统;Determining whether the service request needs to call an associated system;
    所述业务请求需要调用关联系统时,将所述业务请求进行转发;When the service request needs to call an associated system, forwarding the service request;
    所述业务请求不需要调用关联系统时,根据所述业务请求进行业务逻辑处理,获得处理结果;When the service request does not need to call an associated system, perform business logic processing according to the service request to obtain a processing result;
    向所述用户反馈所述处理结果。Feedback the processing result to the user.
  15. 根据权利要求14所述的计算机非易失性可读存储介质,其特征在于,在所述程序运行时控制所述计算机非易失性可读存储介质所在设备还执行以下步骤:The computer non-volatile readable storage medium according to claim 14, wherein, when the program runs, controlling a device where the computer non-volatile readable storage medium is located further performs the following steps:
    根据用户信息和所述业务请求,进行安全认证校验,判断所述用户是否具有相应权限;Perform security authentication check according to the user information and the service request, and determine whether the user has corresponding authority;
    判断所述用户具有相应权限时,接收所述用户的所述业务请求和所述用户信息,并在判断所述业务请求需要调用关联系统时,将所述业务请求和所述用户信息进行转发;When determining that the user has corresponding authority, receiving the service request and the user information of the user, and when determining that the service request needs to call an associated system, forwarding the service request and the user information;
    判断所述用户不具有相应权限时,拒绝所述用户的所述业务请求,并向所述用户报错。When it is determined that the user does not have corresponding authority, the service request of the user is rejected, and an error is reported to the user.
  16. 根据权利要求14或15所述的计算机非易失性可读存储介质,其特征在于,在所述程序运行时控制所述计算机非易失性可读存储介质所在设备还执行以下步骤:The computer non-volatile readable storage medium according to claim 14 or 15, wherein, when the program is running, controlling a device where the computer non-volatile readable storage medium is located further performs the following steps:
    将业务系统中的所有业务逻辑进行划分,确定不需要调用关联系统的业务逻辑,以及 需要调用关联系统的业务逻辑;Divide all the business logic in the business system to determine that the business logic of the associated system does not need to be called, and the business logic of the associated system that needs to be called;
    对不需要调用关联系统的各业务逻辑进行编号;Number the business logic that does not need to call the associated system;
    确定需要调用关联系统的各业务逻辑具体需要调用的关联系统;Determine the specific associated system that needs to be invoked for each business logic of the associated system;
    根据具体需要调用的关联系统,对需要调用关联系统的各业务逻辑进行编号;Number the business logic that needs to call the associated system according to the specific system that needs to be called;
    其中,所述根据所述业务请求进行业务逻辑处理,获得处理结果为:根据所述业务请求调用对应编号的所述业务逻辑,获得所述处理结果。Wherein, performing the business logic processing according to the service request, and obtaining a processing result is: invoking the business logic of a corresponding number according to the service request to obtain the processing result.
  17. 一种计算机设备,包括存储器和处理器,所述存储器用于存储包括程序指令的信息,所述处理器用于控制所述程序指令的执行,其特征在于,所述程序指令被所述处理器加载并执行时实现以下步骤:A computer device includes a memory and a processor, the memory is used to store information including program instructions, the processor is used to control the execution of the program instructions, and the program instructions are loaded by the processor The following steps are implemented when executed:
    接收转发的业务请求;Receive forwarded service requests;
    根据所述业务请求调用对应的关联系统;Calling a corresponding association system according to the service request;
    从所述关联系统接收处理结果;Receiving a processing result from the associated system;
    向用户反馈所述处理结果。The processing result is fed back to the user.
  18. 根据权利要求17所述的计算机设备,其特征在于,所述程序指令被所述处理器加载并执行时还实现以下步骤:The computer device according to claim 17, wherein when the program instructions are loaded and executed by the processor, the following steps are further implemented:
    根据所述业务请求和用户信息,进行安全认证校验,判断用户是否具有相应权限,并在所述用户具有相应权限时,接收转发的所述业务请求,在所述用户不具有相应权限时,拒绝所述业务请求。Perform security authentication check according to the service request and user information, determine whether the user has corresponding authority, and receive the forwarded service request when the user has corresponding authority, and when the user does not have corresponding authority, Rejecting the business request.
  19. 一种计算机非易失性可读存储介质,其特征在于,在所述程序运行时控制所述计算机非易失性可读存储介质所在设备执行以下步骤:A computer non-volatile readable storage medium, characterized in that, when the program is running, controlling a device where the computer non-volatile readable storage medium is located performs the following steps:
    接收转发的业务请求;Receive forwarded service requests;
    根据所述业务请求调用对应的关联系统;Calling a corresponding association system according to the service request;
    从所述关联系统接收处理结果;Receiving a processing result from the associated system;
    向用户反馈所述处理结果。The processing result is fed back to the user.
  20. 根据权利要求19所述的计算机非易失性可读存储介质,其特征在于,在所述程序运行时控制所述计算机非易失性可读存储介质所在设备还执行以下步骤:The computer non-volatile readable storage medium according to claim 19, wherein, when the program runs, controlling a device where the computer non-volatile readable storage medium is located further performs the following steps:
    根据所述业务请求和用户信息,进行安全认证校验,判断用户是否具有相应权限,并在所述用户具有相应权限时,接收转发的所述业务请求,在所述用户不具有相应权限时,拒绝所述业务请求。Perform security authentication check according to the service request and user information, determine whether the user has corresponding authority, and receive the forwarded service request when the user has corresponding authority, and when the user does not have corresponding authority, Rejecting the business request.
PCT/CN2018/111493 2018-06-28 2018-10-23 Service processing method, service system, call management system and service processing system WO2020000807A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810690525.0 2018-06-28
CN201810690525.0A CN109246071A (en) 2018-06-28 2018-06-28 Method for processing business, calls management system and transaction processing system at operation system

Publications (1)

Publication Number Publication Date
WO2020000807A1 true WO2020000807A1 (en) 2020-01-02

Family

ID=65072179

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/111493 WO2020000807A1 (en) 2018-06-28 2018-10-23 Service processing method, service system, call management system and service processing system

Country Status (2)

Country Link
CN (1) CN109246071A (en)
WO (1) WO2020000807A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110084045A (en) * 2019-04-25 2019-08-02 北京首汽智行科技有限公司 A kind of cross-domain authentication specifications JWT optimization method
CN110336690B (en) * 2019-05-23 2022-09-20 平安银行股份有限公司 Service request processing method, device, equipment and computer readable storage medium
CN111835793A (en) * 2020-08-05 2020-10-27 天津美腾科技股份有限公司 Communication method and device for Internet of things access, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015085736A1 (en) * 2013-12-11 2015-06-18 Tencent Technology (Shenzhen) Company Limited Method and system for accessing a distributed file system
CN107682391A (en) * 2017-08-04 2018-02-09 平安科技(深圳)有限公司 Electronic installation, server-assignment control method and computer-readable recording medium
CN107741885A (en) * 2017-10-09 2018-02-27 用友网络科技股份有限公司 Affairs and business association method, interconnected system based on CS frameworks
CN107908553A (en) * 2017-11-02 2018-04-13 平安科技(深圳)有限公司 Correlation testing method, application server and computer-readable recording medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015005214A (en) * 2013-06-21 2015-01-08 富士通株式会社 Information association program and information association method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015085736A1 (en) * 2013-12-11 2015-06-18 Tencent Technology (Shenzhen) Company Limited Method and system for accessing a distributed file system
CN107682391A (en) * 2017-08-04 2018-02-09 平安科技(深圳)有限公司 Electronic installation, server-assignment control method and computer-readable recording medium
CN107741885A (en) * 2017-10-09 2018-02-27 用友网络科技股份有限公司 Affairs and business association method, interconnected system based on CS frameworks
CN107908553A (en) * 2017-11-02 2018-04-13 平安科技(深圳)有限公司 Correlation testing method, application server and computer-readable recording medium

Also Published As

Publication number Publication date
CN109246071A (en) 2019-01-18

Similar Documents

Publication Publication Date Title
CN109716296B (en) Application tokens through associated containers
RU2671045C2 (en) Synchronising credential hashes between directory services
WO2020000807A1 (en) Service processing method, service system, call management system and service processing system
US20180091449A1 (en) Event-driven policy-based distributed container management system
US8769653B2 (en) Unified access control system and method for composed services in a distributed environment
US20120144501A1 (en) Regulating access to protected data resources using upgraded access tokens
US9756050B1 (en) Using transient processing containers for security authorization
CN110474863B (en) Micro-service security authentication method and device
US11483315B2 (en) Alias management method and device
JP4822224B2 (en) Method and system for authenticating a requestor without providing a key
WO2017152754A1 (en) Method and apparatus for secure communication of software defined network (sdn)
US20130086651A1 (en) Re-authentication in secure web service conversations
WO2019062340A1 (en) Api hybrid multi-tenant routing method, system, and api gateway
US8683030B2 (en) Routing of pooled messages via an intermediary
WO2022022253A1 (en) Service authentication method, apparatus, device and system, and storage medium
EP3243148B1 (en) Distributed storage and distributed processing statement interception and modification
EP2678971A1 (en) Communication between applications on different endpoint
WO2016070609A1 (en) Method and system for implementing vnf instantiation, nfvo and vnfm
WO2020181985A1 (en) Blockchain multiple alliance chain load balancing method and device
US10237252B2 (en) Automatic creation and management of credentials in a distributed environment
WO2024016624A1 (en) Multi-cluster access method and system
US10846156B2 (en) Methods, devices and computer program products for managing software function
CN105740656A (en) Data authority management method and device
CN111225007B (en) Database connection method, device and system
US20100146120A1 (en) Caller-specific visibility masks for networking objects

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18924750

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18924750

Country of ref document: EP

Kind code of ref document: A1