CN114760233A - Service processing method and device, electronic equipment and storage medium - Google Patents

Service processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114760233A
CN114760233A CN202210291740.XA CN202210291740A CN114760233A CN 114760233 A CN114760233 A CN 114760233A CN 202210291740 A CN202210291740 A CN 202210291740A CN 114760233 A CN114760233 A CN 114760233A
Authority
CN
China
Prior art keywords
target
service
external connection
connection system
target external
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210291740.XA
Other languages
Chinese (zh)
Other versions
CN114760233B (en
Inventor
吕光
马坤
张海阔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202210291740.XA priority Critical patent/CN114760233B/en
Publication of CN114760233A publication Critical patent/CN114760233A/en
Application granted granted Critical
Publication of CN114760233B publication Critical patent/CN114760233B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Hardware Redundancy (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present disclosure provides a business processing method, which can be applied to the technical field of computers, and also can be applied to the technical field of big data and the financial field. The method comprises the following steps: responding to the target service processing request, and determining a target external connection system corresponding to the target service processing request; determining the service running state of the target external connection system based on a heartbeat detection mechanism; determining a service operation index value of the target external connection system under the condition that the service operation state of the target external connection system is operable; under the condition that the service operation index value of the target external connection system is smaller than the service operation index threshold value, sending a target service processing request to the target external connection system; and receiving a processing result returned by the target external connection system for processing the target service processing request. The disclosure also provides a service processing apparatus, an electronic device, a storage medium and a program product.

Description

Service processing method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for processing a service, an electronic device, a storage medium, and a program product.
Background
With the rapid development of internet finance, especially when massive business needs to forward a request to an external system for execution, each financial institution faces potential performance capacity risk and system stability risk. Especially, when the availability of the extranet system is not controllable, and the extranet system is in failure, if a large number of requests are sent to the extranet system, other normal service processing requests can be blocked, and the system response is slow or even breaks down.
Disclosure of Invention
In view of the foregoing, the present disclosure provides a service processing method, apparatus, electronic device, storage medium, and program product.
According to a first aspect of the present disclosure, a service processing method is provided, including: responding to the target service processing request, and determining a target external connection system corresponding to the target service processing request; determining the service running state of the target external connection system based on a heartbeat detection mechanism; determining a service operation index value of the target external connection system under the condition that the service operation state of the target external connection system is operable; under the condition that the service operation index value of the target external connection system is smaller than the service operation index threshold value, sending a target service processing request to the target external connection system; and receiving a processing result returned by the target external connection system for processing the target service processing request.
According to the embodiment of the disclosure, determining a target external connection system corresponding to a target service processing request includes: acquiring request information of a target service processing request, wherein the request information comprises request identification information; and analyzing the request information of the target service processing request, and determining the target external connection system according to the corresponding relation between the request identification information and the target external connection system.
According to the embodiment of the disclosure, determining the service running state of the target external connection system based on the heartbeat detection mechanism includes: and determining the service running state of the target external connection system based on the condition of receiving the heartbeat detection message sent by the target external connection system at regular time.
According to the embodiment of the present disclosure, determining the service running state of the target external connection system based on the heartbeat detection mechanism further includes: determining the access failure times of the target external connection system in a preset period according to the configuration information of the target external connection system; and determining the service operation state of the target external connection system based on the preset relation between the access failure times and the failure time threshold value.
According to an embodiment of the present disclosure, determining a service operation index value of a target external system when a service operation state of the target external system is operable includes: and calling the target external connection system, and recording a service operation index value of the target external connection system to the target service processing request based on the monitoring component.
According to an embodiment of the present disclosure, the service operation index value includes a technical service operation index value and a business service operation index value, wherein the technical service operation index value includes: the success rate, the average response time and the transaction concurrency number of the target external connection service system are called; the business service operation index value comprises the following steps: the processing state of the target service processing request and the processing success rate of the target service processing request.
According to the embodiment of the present disclosure, before responding to the target service processing request, the method further includes: and in response to the establishment request of the transaction path service information of the target external connection system, establishing the transaction path service information of the target external connection system.
According to the embodiment of the disclosure, when the service operation state of the target external connection system is non-operational, the service operation state of the current target external connection system is updated, and the warning information is sent.
A second aspect of the present disclosure provides a service processing apparatus, including: the response module is used for responding to the target service processing request and determining a target external connection system corresponding to the target service processing request; the first determining module is used for determining the service running state of the target external connection system based on the heartbeat detection mechanism; the second determination module is used for determining a service operation index value of the target external system under the condition that the service operation state of the target external system is operable; the sending module is used for sending a target business processing request to the target external system under the condition that the service operation index value of the target external system is smaller than the service operation index threshold value; and the receiving module is used for receiving a processing result returned by the target business processing request processed by the target external system.
A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the business process method described above.
A fourth aspect of the present disclosure also provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, cause the processor to perform the above-mentioned service processing method.
A fifth aspect of the present disclosure also provides a computer program product comprising a computer program which, when executed by a processor, implements the above-described service processing method.
According to the embodiment of the disclosure, a target external connection system corresponding to a target business processing request is determined by responding to the target business processing request; determining the service running state of the target external connection system based on a heartbeat detection mechanism; determining a service operation index of the target external connection system under the condition that the service operation state of the target external connection system is operable; under the condition that the service operation index of the target external connection system is smaller than the service operation index threshold value, sending a target service processing request to the target external connection system; and receiving a processing result returned by the target external connection system for processing the target service processing request. The technical problems that when the external connection system is unavailable, a large number of requests are forwarded to the external connection system, the system can not be released, processing of other normal service requests is blocked, and response of the system is slow or even paralyzed are solved, comprehensive monitoring and management of the access condition of the external connection system are achieved, influences on resources and performance of the system due to the fact that the external connection system is unavailable are effectively reduced, operation stability of the system is improved, and service processing efficiency is improved.
Drawings
The foregoing and other objects, features and advantages of the disclosure will be apparent from the following description of embodiments of the disclosure, which proceeds with reference to the accompanying drawings, in which:
fig. 1 schematically illustrates an application scenario diagram of a service processing method and apparatus according to an embodiment of the present disclosure;
FIG. 2 schematically shows a flow diagram of a traffic handling method according to an embodiment of the present disclosure;
FIG. 3 schematically illustrates a flowchart of a method for determining a service operating state of a target external connection system based on a heartbeat detection mechanism according to an embodiment of the present disclosure;
FIG. 4 schematically illustrates a schematic diagram of determining a service operating state of a target external connection system based on a heartbeat detection mechanism according to an embodiment of the disclosure;
fig. 5 schematically shows a schematic diagram of a traffic processing method according to an embodiment of the present disclosure;
fig. 6 schematically shows a block diagram of a structure of a traffic processing apparatus according to an embodiment of the present disclosure; and
fig. 7 schematically shows a block diagram of an electronic device adapted to implement a traffic processing method according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
It should be noted that the service processing method and apparatus provided by the present disclosure may be applied to the technical field of computers, the technical field of big data, the financial field, or any technical field other than the financial field, and the application field of the service processing method and apparatus is not limited.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
An embodiment of the present disclosure provides a service processing method, including: responding to the target service processing request, and determining a target external connection system corresponding to the target service processing request; determining the service running state of the target external connection system based on a heartbeat detection mechanism; determining a service operation index of the target external connection system under the condition that the service operation state of the target external connection system is operable; under the condition that the service operation index of the target external system is smaller than the service operation index threshold value, sending a target service processing request to the target external system; and receiving a processing result returned by the target external connection system for processing the target service processing request.
Fig. 1 schematically shows an application scenario diagram of a service processing method and apparatus according to an embodiment of the present disclosure.
It should be noted that fig. 1 is only an application example to which the embodiment of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the business processing method of the embodiment of the present disclosure may not be used in other devices, systems, environments or scenarios.
As shown in fig. 1, the application scenario 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104, a local system server 105, and a plurality of external system servers 106. The terminal devices 101, 102, 103 and the present system server 105 and the plurality of external system servers 106 may be implemented based on the network 104. Network 104 may also be used as a medium for providing communication links between terminal devices 101, 102, 103 and local system server 105 and a plurality of external system servers 106. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 through the network 104 to receive or send messages, etc., and the local system server 105 interacts with one or more of the plurality of external systems to send service processing requests to the plurality of external system servers 106 and receive processing results returned by the external system servers 106. For example, the terminal devices 101, 102, and 103 send service processing requests to the local system server 105, after receiving the service processing requests from the terminal devices 101, 102, and 103, the local system server 105 identifies the external connection system 106 corresponding to the service processing request, executes forwarding processing, processes the service processing request by the external connection system 106, sends the processing result to the local system server 105, and is displayed to the user by the terminal devices 101, 102, and 103.
The terminal devices 101, 102, 103 may have installed thereon various communication client applications, such as shopping-like applications, web browser applications, search-like applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The present system server 105 and the plurality of external system servers 106 may be servers that provide various services, such as a background management server (for example only) that provides support for websites browsed by users using the terminal devices 101, 102, 103. The background management server may analyze and perform other processing on the received data such as the user request, and feed back a processing result (e.g., a webpage, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that the service processing method provided by the embodiment of the present disclosure may be generally executed by the present system server 105. Accordingly, the service processing device provided by the embodiment of the present disclosure may be generally disposed in the server 105 of the present system. The service processing method provided by the embodiment of the present disclosure may also be executed by a server or a server cluster that is different from the server 105 of the present system and is capable of communicating with the terminal devices 101, 102, and 103 and/or the server 105 of the present system. Accordingly, the service processing apparatus provided in the embodiment of the present disclosure may also be disposed in a server or a server cluster that is different from the present system server 105 and is capable of communicating with the terminal devices 101, 102, and 103 and/or the present system server 105.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for an implementation.
The service processing method of the disclosed embodiment will be described in detail below with reference to fig. 2 to 5 based on the application scenario described in fig. 1.
Fig. 2 schematically shows a flow chart of a traffic processing method according to an embodiment of the present disclosure.
As shown in fig. 2, the service processing method 200 of this embodiment includes operations S210 to S250.
In operation S210, in response to the target service processing request, a target external connection system corresponding to the target service processing request is determined.
According to the embodiment of the present disclosure, the service processing method of the present application is applied to the present system (such as the present system server 105 shown in fig. 1), and the present system receives a service processing request sent by a user, and identifies a target external connection system that the service processing request needs to be processed.
According to the embodiment of the disclosure, before a user accesses the system, when the system is initialized, the information such as the address, the port, the transaction route and the like of the target external system is loaded from the database.
According to the embodiment of the disclosure, the target service processing request may be a service request that a user needs to process. The target external connection system can be an external connection system which needs to be called when the target business processing request is processed. The external system may include a plurality of external systems, each of which may provide different service access functions.
In operation S220, a service operation state of the target external connection system is determined based on the heartbeat detection mechanism.
According to the embodiment of the disclosure, after the target external connection system corresponding to the target service processing request is determined, the current service operation state of the target external connection system needs to be determined. The service running state is used for reflecting the current working state of the external connection system. The service operation state can be divided into two types of operable and inoperable.
According to embodiments of the present disclosure, a heartbeat detection mechanism may serve as a detection for detecting connectivity of an external system. The connectivity of the external connection system can represent the effective state of the external connection system and the ports thereof, namely, the effective state of the availability of the ports of the external connection system, the availability of the ports and the representation that the target external connection system is in a runnable state.
In operation S230, in the case where the service operation state of the target external system is operable, a service operation index value of the target external system is determined.
According to the embodiment of the disclosure, under the condition that the service running state of the target external connection system is operational, the target external connection system can be used for normally providing the access function of the service processing request.
According to an embodiment of the present disclosure, the service operation index value of the target external connection system may include a technical service operation index value and a business service operation index value. The technical service operation index can represent the technical service level of the target external connection system; the business service operation index can represent the business service level of the target external connection system.
According to the embodiment of the disclosure, the technical service operation index value may include a success rate of the target external system call, an average response time of the target external system receiving the service processing request, and a transaction concurrency number that the target external system can accept, in one statistical period. The business service operation index value can comprise the processing state and the processing success rate of the target business processing request.
In operation S240, in case that the service operation index of the target external connection system is less than the service operation index threshold, the target service processing request is sent to the target external connection system.
According to an embodiment of the present disclosure, the service operation index threshold may be a critical value of the service operation index preset according to a specific actual service scenario.
According to the embodiment of the disclosure, when the service operation index of the target external connection system is smaller than the service operation index threshold, the target external connection system may be used to provide normal processing of the service processing request, and may send the target service processing request to the target external connection system to process the target service.
According to the embodiment of the disclosure, when the service operation index of the target external connection system is greater than or equal to the service operation index threshold, the target external connection system fails, and no service processing request is sent to the target external connection system, so that a rapid failure mechanism of external connection system service calling is realized.
In operation S250, a processing result returned by the target external system processing the target service processing request is received.
According to the embodiment of the disclosure, the target external connection system receives and processes the target service processing request, receives the processing result sent by the target external connection system after obtaining the processing result, and returns the processing result to the user.
According to the embodiment of the disclosure, a target external connection system corresponding to a target business processing request is determined by responding to the target business processing request; determining the service running state of the target external connection system based on a heartbeat detection mechanism; determining a service operation index of the target external connection system under the condition that the service operation state of the target external connection system is operable; under the condition that the service operation index of the target external connection system is smaller than the service operation index threshold value, sending a target service processing request to the target external connection system; and receiving a processing result returned by the target external connection system for processing the target service processing request. The technical problems that when the external connection system is unavailable, a large number of requests are forwarded to the external connection system, the system can not be released, processing of other normal service requests is blocked, and response of the system is slow or even paralyzed are solved, comprehensive monitoring and management of the access condition of the external connection system are achieved, influences on resources and performance of the system due to the fact that the external connection system is unavailable are effectively reduced, operation stability of the system is improved, and service processing efficiency is improved.
According to an embodiment of the present disclosure, step S210 may include the following operations.
According to the embodiment of the disclosure, request information of a target service processing request is obtained, wherein the request information comprises request identification information; and analyzing the request information of the target service processing request, and determining the target external connection system according to the corresponding relation between the request identification information and the target external connection system.
According to the embodiment of the disclosure, a user accesses the system, and obtains request information of a target service processing request, wherein the request information may include request identification information and may also include request related service information. The request information of the target service processing request is analyzed by the system to obtain request identification information, and service request data of access information such as IP information, port information, transaction routing and the like of the target external system is determined according to the corresponding relation between the request identification information and the target external system.
According to the embodiment of the disclosure, the IP information may be used to specify a target external connection system corresponding to the target service processing request, the port information may be used to specify an access port of the target external connection system, and the transaction routing information may be used to specify the external connection system on each transaction path, thereby implementing confirmation of the target external connection system.
According to an embodiment of the present disclosure, operation S220 may include the following operations.
According to the embodiment of the disclosure, the service operation state of the target external system is determined based on the condition that the target external system sends the heartbeat detection message at regular time.
According to the embodiment of the present disclosure, the receiving of the heartbeat detection message sent by the target external connection system at regular time may include: and deploying a health check program at the end of the target external system, wherein the health check program is used for regularly checking the health check state of the target external system, generating a heartbeat detection message and receiving the heartbeat detection message regularly sent by the target external system. For example, if no heartbeat detection message sent by the target external connection system is received in a continuous preset monitoring period, the target external connection system is considered to be in an unused state.
According to the embodiment of the disclosure, the service running state of the target external connection system is detected by using the method, so that one-way state transmission can be realized, service response does not need to be waited, and the detection efficiency is improved.
Fig. 3 schematically shows a flowchart of a method for determining a service operating state of a target external connection system based on a heartbeat detection mechanism according to an embodiment of the present disclosure.
As shown in FIG. 3, the method 300 may include S310-S320.
In operation S310, the number of access failures of the target external system within a preset period is determined according to the configuration information of the target external system.
In operation S320, a service operation state of the target external connection system is determined based on a preset relationship between the access failure times and the failure time threshold.
According to an embodiment of the present disclosure, the configuration information of the target external system may include address (IP) information and port information of the external system. And deploying a timing detection task at the end of the system, and detecting whether the port of the target external system is available or not at a preset period, for example, every t minutes according to the address information and the port information of the target external system. If the port is available, the target external connection system can operate, and the next detection task of the target external connection system is executed after t minutes; if the port is not available, the address information and the port information of the target external system and the access failure times of the target external system, which are not available, are recorded in the memory of the system.
According to the embodiment of the present disclosure, the failure number threshold may be a preset number of failures set according to an actual scene. If the access failure times do not exceed the failure time threshold, waiting for t minutes, performing the next detection task of the target external connection system, clearing 0 the failure times after successful access, and waiting for t minutes again to execute the next detection task; and if the access failure times exceed the failure time threshold, updating the address information and the port information of the target external system in the database to be unavailable, namely updating the service running state of the target external system in the database to be an inoperable state.
Fig. 4 schematically illustrates a schematic diagram for determining a service operation state of a target external connection system based on a heartbeat detection mechanism according to an embodiment of the disclosure.
As shown in fig. 4, in the diagram 400, address information and port information of a target external system is obtained 401, port availability is checked 402, and it is determined 403 whether the target external system is accessible. If it is accessible, the accumulated failure times are cleared 404, t minutes are waited 405, and the next probing task is executed. If access is not available, the number of access failures is accumulated 406 and a determination is made whether the cumulative number of access failures reaches a failure threshold 407. And if the failure times threshold is not reached, waiting for t minutes 405 again and carrying out the next detection task. And if the failure times threshold is reached, updating the address and port information of the target external system to be unavailable, namely updating the service running state of the target external system in the database to be an unavailable running state 408, and waiting for t minutes 405 to perform the next detection task.
Operation S230 may include the following operations according to an embodiment of the present disclosure.
According to the embodiment of the disclosure, the target external connection system is called, and the service operation index value of the target external connection system to the target service processing request is recorded based on the monitoring component.
According to the embodiment of the disclosure, the system responds to the target service processing request of the user, and when the corresponding target external connection system is called, the response time of the target external connection system to the target service processing request, the success rate of calling the target external connection system and the request state information can be recorded through the monitoring component.
According to the embodiment of the disclosure, the monitoring component can also monitor the service success rate and the service processing state of the target service processing request processed by the target external system, and develop the service rule processing engine aiming at different service scenes, so as to realize the analysis response of the external system to the target service processing request.
According to an embodiment of the present disclosure, the monitoring component may include a filter and/or an interceptor, through which the recording of the service operation index value of the target external connection system is achieved.
According to the embodiment of the disclosure, the real-time state of the target external connection system is obtained according to different service operation index values, and a corresponding access strategy can be configured for the service of the target external connection system corresponding to the target service processing request according to the real-time state of the service operation index value reaction of the target external connection system.
According to an embodiment of the present disclosure, before operation S210, the method may further include: and in response to the establishment request of the transaction path service information of the target external connection system, establishing the transaction path service information of the target external connection system.
According to the embodiment of the disclosure, in the processing process of one target service processing request, a plurality of target external systems may be accessed, and transaction path service information needs to be established for the plurality of target external systems.
According to an embodiment of the present disclosure, the transaction path service information of the target external system may include a critical path service and a non-critical path service. The critical path service can represent that the target external system fails to call and the whole transaction fails to be processed; the non-critical path service represents that the target external system call fails but does not affect the main process processing result.
According to the embodiment of the disclosure, before responding to the target business processing request, the transaction path service information of the target external system can be established according to the access condition of the target external system by taking the business scene as the dimension.
According to the embodiment of the disclosure, different trigger conditions can be configured for the target external connection system according to the transaction path service information of the target external connection system. The triggering condition may be the aforementioned service operation index threshold value or failure number threshold value, etc. The trigger condition for the out-bound system for the non-critical path service may be set to be more easily triggered to enhance protection of the out-bound system call for the critical path service.
According to the embodiment of the disclosure, under the condition that the service running state of the target external connection system is inoperable, the service running state of the current target external connection system is updated, and the early warning information is sent.
According to the embodiment of the disclosure, the service operation state is non-operational, for example, the connection of the target external system is interrupted, and the normal service access function of the target external system is suspended or terminated. The running state of the current target external system is updated, the updated information may include the address information and the port information of the current target external system are unavailable, and early warning information is sent.
Fig. 5 schematically shows a schematic diagram of a traffic processing method according to an embodiment of the present disclosure.
As shown in fig. 5, in the diagram 500, in response to a target service processing request, a target external system 501 corresponding to the target service processing request is determined. Based on the heartbeat detection mechanism, the service running state of the target external connection system is determined 502. In the case that the service operation status of the target external connection system is non-operational, the target service processing request rapidly fails 503. In the case where the service operation state of the target external system is operable, a service operation index value 504 of the target external system is determined. It is determined whether the service operation index value of the target external system reaches a service operation index threshold 505. When the service operation index value of the target external connection system reaches the service operation index threshold, the target service processing request rapidly fails 503. And under the condition that the service operation index value of the target external system does not reach the service operation index threshold value, sending a target business processing request 506 to the target external system, and receiving a processing result 507 returned by the target external system for processing the target business processing request.
Based on the service processing method, the disclosure also provides a service processing device. The apparatus will be described in detail below with reference to fig. 6.
Fig. 6 schematically shows a block diagram of a service processing apparatus according to an embodiment of the present disclosure.
As shown in fig. 6, the service processing apparatus 600 of this embodiment may include: a response module 610, a first determination module 620, a second determination module 630, a sending module 640, and a receiving module 650.
And the response module 610 is configured to determine, in response to the target service processing request, a target external connection system corresponding to the target service processing request. In an embodiment, the response module 610 may be configured to perform the operation S210 described above, which is not described herein again.
The first determining module 620 is configured to determine a service operating state of the target external connection system based on the heartbeat detection mechanism. In an embodiment, the first determining module 620 may be configured to perform the operation S220 described above, which is not described herein again.
A second determining module 630, configured to determine a service operation index value of the target external system when the service operation state of the target external system is operable. In an embodiment, the second determining module 630 may be configured to perform the operation S230 described above, which is not described herein again.
The sending module 640 is configured to send the target service processing request to the target external connection system when the service operation index value of the target external connection system is smaller than the service operation index threshold. In an embodiment, the sending module 640 may be configured to perform the operation S240 described above, which is not described herein again.
The receiving module 650 is configured to receive a processing result returned by the target external connection system when the target service processing request is processed. In an embodiment, the receiving module 650 may be configured to perform the operation S250 described above, and is not described herein again.
According to the embodiment of the disclosure, a target external connection system corresponding to a target business processing request is determined by responding to the target business processing request; determining the service running state of the target external connection system based on a heartbeat detection mechanism; determining a service operation index of the target external connection system under the condition that the service operation state of the target external connection system is operable; under the condition that the service operation index of the target external connection system is smaller than the service operation index threshold value, sending a target service processing request to the target external connection system; and receiving a processing result returned by the target external connection system for processing the target service processing request. The technical problems that when the external connection system is unavailable, a large number of requests are forwarded to the external connection system, the system can not be released, processing of other normal service requests is blocked, and response of the system is slow or even paralyzed are solved, comprehensive monitoring and management of the access condition of the external connection system are achieved, influences on resources and performance of the system due to the fact that the external connection system is unavailable are effectively reduced, operation stability of the system is improved, and service processing efficiency is improved.
According to an embodiment of the present disclosure, the response module 610 may include: obtaining a submodule and analyzing the submodule.
And the obtaining submodule is used for obtaining the request information of the target service processing request, wherein the request information comprises request identification information.
And the analysis submodule is used for analyzing the request information of the target service processing request and determining the target external system according to the corresponding relation between the request identification information and the target external system.
According to an embodiment of the present disclosure, the first determining module 620 may include: a first determination submodule.
And the first determining submodule is used for determining the service running state of the target external connection system based on the condition of receiving the heartbeat detection message sent by the target external connection system at fixed time.
According to an embodiment of the present disclosure, the first determining module 620 may further include: the second is confirmed from the module, the third confirms the submodule.
And the second self-determination module is used for determining the access failure times of the target external connection system in a preset period according to the configuration information of the target external connection system.
And the third determining submodule is used for determining the service operation state of the target external connection system based on the preset relation between the access failure times and the failure time threshold.
According to an embodiment of the present disclosure, the second determining module 630 may include: the submodule is invoked.
And the calling submodule is used for calling the target external connection system and recording a service operation index value of the target external connection system for the target service processing request based on the monitoring component.
According to an embodiment of the present disclosure, the service operation index value includes a technical service operation index value and a business service operation index value, wherein the technical service operation index value includes: the success rate, the average response time and the transaction concurrency number of the target external connection service system are called; the business service operation index value comprises the following steps: the processing state of the target service processing request and the processing success rate of the target service processing request.
According to the embodiment of the present disclosure, before responding to the target service processing request, the method further comprises: and in response to the establishment request of the transaction path service information of the target external connection system, establishing the transaction path service information of the target external connection system.
According to an embodiment of the present disclosure, the service processing apparatus 500 may further include: and updating the module.
And the updating module is used for updating the service running state of the current target external connection system and sending early warning information under the condition that the service running state of the target external connection system is not operable.
According to an embodiment of the present disclosure, any plurality of the response module 610, the first determination module 620, the second determination module 630, the transmission module 640, and the reception module 650 may be combined in one module to be implemented, or any one of them may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the response module 610, the first determination module 620, the second determination module 630, the sending module 640, and the receiving module 650 may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or in any one of three implementations of software, hardware, and firmware, or in a suitable combination of any of them. Alternatively, at least one of the response module 610, the first determination module 620, the second determination module 630, the sending module 640 and the receiving module 650 may be at least partially implemented as a computer program module, which when executed, may perform a corresponding function.
Fig. 7 schematically shows a block diagram of an electronic device adapted to implement a traffic processing method according to an embodiment of the present disclosure.
As shown in fig. 7, an electronic device 700 according to an embodiment of the present disclosure includes a processor 701, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. The processor 701 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 701 may also include on-board memory for caching purposes. The processor 701 may comprise a single processing unit or a plurality of processing units for performing the different actions of the method flows according to embodiments of the present disclosure.
In the RAM 703, various programs and data necessary for the operation of the electronic apparatus 700 are stored. The processor 701, the ROM 702, and the RAM 703 are connected to each other by a bus 704. The processor 701 performs various operations of the method flows according to the embodiments of the present disclosure by executing programs in the ROM 702 and/or the RAM 703. Note that the program may also be stored in one or more memories other than the ROM 702 and the RAM 703. The processor 701 may also perform various operations of method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
Electronic device 700 may also include input/output (I/O) interface 705, which input/output (I/O) interface 705 is also connected to bus 704, according to an embodiment of the present disclosure. The electronic device 700 may also include one or more of the following components connected to the I/O interface 705: an input portion 706 including a keyboard, a mouse, and the like; an output section 707 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 708 including a hard disk and the like; and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet. A drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that a computer program read out therefrom is mounted into the storage section 708 as necessary.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, a computer-readable storage medium may include the ROM 702 and/or the RAM 703 and/or one or more memories other than the ROM 702 and the RAM 703 described above.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the method illustrated in the flow chart. When the computer program product runs in a computer system, the program code is used for causing the computer system to realize the business processing method provided by the embodiment of the disclosure.
The computer program performs the above-described functions defined in the system/apparatus of the embodiments of the present disclosure when executed by the processor 701. The systems, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In one embodiment, the computer program may be hosted on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted in the form of a signal over a network medium, distributed, and downloaded and installed via the communication section 709, and/or installed from the removable medium 711. The computer program containing program code may be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 709, and/or installed from the removable medium 711. The computer program, when executed by the processor 701, performs the above-described functions defined in the system of the embodiment of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In accordance with embodiments of the present disclosure, program code for executing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, these computer programs may be implemented using high level procedural and/or object oriented programming languages, and/or assembly/machine languages. The programming language includes, but is not limited to, programming languages such as Java, C + +, python, the "C" language, or the like. The program code may execute entirely on the user computing device, partly on the user device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.

Claims (12)

1. A service processing method comprises the following steps:
responding to a target service processing request, and determining a target external connection system corresponding to the target service processing request;
determining the service running state of the target external connection system based on a heartbeat detection mechanism;
under the condition that the service operation state of the target external connection system is operable, determining a service operation index value of the target external connection system;
under the condition that the service operation index value of the target external connection system is smaller than a service operation index threshold value, sending the target service processing request to the target external connection system;
and receiving a processing result returned by the target external connection system for processing the target service processing request.
2. The method of claim 1, wherein the determining a target extranet system corresponding to the target traffic processing request comprises:
acquiring request information of the target service processing request, wherein the request information comprises request identification information;
analyzing the request information of the target service processing request, and determining the target external connection system according to the corresponding relation between the request identification information and the target external connection system.
3. The method of claim 1, wherein the determining a service operational status of the target extranet system based on a heartbeat detection mechanism comprises:
and determining the service running state of the target external connection system based on the condition of receiving the heartbeat detection message sent by the target external connection system at regular time.
4. The method of claim 1, wherein the determining a service operational status of the target extranet system based on a heartbeat detection mechanism further comprises:
determining the access failure times of the target external connection system in a preset period according to the configuration information of the target external connection system;
and determining the service operation state of the target external connection system based on the preset relation between the access failure times and the failure time threshold.
5. The method of claim 1, wherein the determining the service operation index value of the target external system in the case that the service operation state of the target external system is operable comprises:
and calling the target external connection system, and recording a service operation index value of the target external connection system to the target service processing request based on a monitoring component.
6. The method of claim 1 or 5, wherein a service operation index value comprises a technical service operation index value and a business service operation index value, wherein the technical service operation index value comprises: the success rate, the average response time and the transaction concurrency number of the target external connection service system are called; the business service operation index value comprises: the processing state of the target service processing request and the processing success rate of the target service processing request.
7. The method of claim 1, wherein prior to responding to the target traffic handling request, further comprising:
and responding to the establishment request of the transaction path service information of the target external connection system, and establishing the transaction path service information of the target external connection system.
8. The method of claim 1, further comprising:
and under the condition that the service running state of the target external connection system is not operable, updating the service running state of the current target external connection system and sending early warning information.
9. A traffic processing apparatus, comprising:
the response module is used for responding to a target service processing request and determining a target external connection system corresponding to the target service processing request;
the first determining module is used for determining the service running state of the target external connection system based on a heartbeat detection mechanism;
the second determination module is used for determining a service operation index value of the target external system under the condition that the service operation state of the target external system is operable;
the sending module is used for sending the target business processing request to the target external system under the condition that the service operation index value of the target external system is smaller than a service operation index threshold value;
and the receiving module is used for receiving a processing result returned by the target external system processing the target service processing request.
10. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-8.
11. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method of any one of claims 1 to 8.
12. A computer program product comprising a computer program which, when executed by a processor, implements a method according to any one of claims 1 to 8.
CN202210291740.XA 2022-03-22 2022-03-22 Service processing method, device, electronic equipment and storage medium Active CN114760233B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210291740.XA CN114760233B (en) 2022-03-22 2022-03-22 Service processing method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210291740.XA CN114760233B (en) 2022-03-22 2022-03-22 Service processing method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114760233A true CN114760233A (en) 2022-07-15
CN114760233B CN114760233B (en) 2024-05-28

Family

ID=82327186

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210291740.XA Active CN114760233B (en) 2022-03-22 2022-03-22 Service processing method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114760233B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115914400A (en) * 2022-11-07 2023-04-04 中国工商银行股份有限公司 Service processing method, device, electronic equipment and medium
CN116401138A (en) * 2023-06-08 2023-07-07 建信金融科技有限责任公司 Operating system running state detection method and device, electronic equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108900598A (en) * 2018-06-26 2018-11-27 杭州朗和科技有限公司 Network request forwarding and response method, device, system, medium and electronic equipment
CN110233860A (en) * 2018-03-05 2019-09-13 杭州萤石软件有限公司 A kind of load-balancing method, device and system
CN113110975A (en) * 2021-04-19 2021-07-13 中国工商银行股份有限公司 Data access method, device, equipment and medium
WO2021147481A1 (en) * 2020-01-22 2021-07-29 北京字节跳动网络技术有限公司 Monitoring method and apparatus, and electronic device
CN113746920A (en) * 2021-09-03 2021-12-03 北京知道创宇信息技术股份有限公司 Data forwarding method and device, electronic equipment and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110233860A (en) * 2018-03-05 2019-09-13 杭州萤石软件有限公司 A kind of load-balancing method, device and system
CN108900598A (en) * 2018-06-26 2018-11-27 杭州朗和科技有限公司 Network request forwarding and response method, device, system, medium and electronic equipment
WO2021147481A1 (en) * 2020-01-22 2021-07-29 北京字节跳动网络技术有限公司 Monitoring method and apparatus, and electronic device
CN113110975A (en) * 2021-04-19 2021-07-13 中国工商银行股份有限公司 Data access method, device, equipment and medium
CN113746920A (en) * 2021-09-03 2021-12-03 北京知道创宇信息技术股份有限公司 Data forwarding method and device, electronic equipment and computer readable storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115914400A (en) * 2022-11-07 2023-04-04 中国工商银行股份有限公司 Service processing method, device, electronic equipment and medium
CN116401138A (en) * 2023-06-08 2023-07-07 建信金融科技有限责任公司 Operating system running state detection method and device, electronic equipment and medium
CN116401138B (en) * 2023-06-08 2023-09-15 建信金融科技有限责任公司 Operating system running state detection method and device, electronic equipment and medium

Also Published As

Publication number Publication date
CN114760233B (en) 2024-05-28

Similar Documents

Publication Publication Date Title
CN114760233B (en) Service processing method, device, electronic equipment and storage medium
US20150281035A1 (en) Monitoring of Node.JS Applications
US20160323160A1 (en) Detection of node.js memory leaks
US10084637B2 (en) Automatic task tracking
CN113900834A (en) Data processing method, device, equipment and storage medium based on Internet of things technology
CN111698131B (en) Information processing method, information processing apparatus, electronic device, and medium
CN114338684B (en) Energy management system and method
CN111611086A (en) Information processing method, information processing apparatus, electronic device, and medium
CN112882895B (en) Health check method, device, computer system and readable storage medium
CN112953769B (en) Data transmission method, device, computer system and readable storage medium
CN113132400B (en) Business processing method, device, computer system and storage medium
CN114153703A (en) Micro-service exception positioning method and device, electronic equipment and program product
CN113191889A (en) Wind control configuration method, configuration system, electronic device and readable storage medium
US20160321173A1 (en) Automatic garbage collection thrashing monitoring
CN116095005A (en) Traffic management method, apparatus, device, medium, and program product
CN115801764A (en) File transmission method, device, equipment and storage medium
CN113419887A (en) Method and device for processing abnormal online transaction of host
CN113781154A (en) Information rollback method, system, electronic equipment and storage medium
CN112579282A (en) Data processing method, device, system and computer readable storage medium
CN114844810B (en) Heartbeat data processing method, device, equipment and medium
CN115529313A (en) Determination method and device of call link, electronic equipment and medium
CN116737314A (en) Data processing method, device, electronic equipment and storage medium
CN112711487A (en) Data source management and control method and device, management and control server and storage medium
CN113419922A (en) Method and device for processing batch job running data of host
CN115203334A (en) Data processing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant