CN111770157A - Business processing method and device, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN111770157A
CN111770157A CN202010591007.0A CN202010591007A CN111770157A CN 111770157 A CN111770157 A CN 111770157A CN 202010591007 A CN202010591007 A CN 202010591007A CN 111770157 A CN111770157 A CN 111770157A
Authority
CN
China
Prior art keywords
connection
long connection
web service
service request
long
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
CN202010591007.0A
Other languages
Chinese (zh)
Other versions
CN111770157B (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.)
Guangdong Inspur Smart Computing Technology Co Ltd
Original Assignee
Guangdong Inspur Big Data Research Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Inspur Big Data Research Co Ltd filed Critical Guangdong Inspur Big Data Research Co Ltd
Priority to CN202010591007.0A priority Critical patent/CN111770157B/en
Publication of CN111770157A publication Critical patent/CN111770157A/en
Priority to PCT/CN2021/077022 priority patent/WO2021258753A1/en
Application granted granted Critical
Publication of CN111770157B publication Critical patent/CN111770157B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a service processing method, a device, equipment and a medium, wherein the method comprises the following steps: receiving a web service request issued by a client; selecting a first target long connection in an idle state from a first type connection pool which stores pre-established long connections for receiving; sending the web service request to a corresponding functional module for processing by utilizing the first target long connection to obtain a processing result corresponding to the web service request; and selecting a second target long connection in an idle state from a second type of connection pool which stores the pre-established long connections for sending, and returning a processing result to the client through the second target long connection. According to the method and the device, the modules do not need to be connected with the nodes in a long mode, and the number of the nodes connected in the long mode is reduced. After each module processes the result, the result can be sent through the long connection pre-established in the second-type connection pool, so that the resource overhead of continuously establishing and destroying the temporary connection is avoided, and the establishing time of the connection is reduced.

Description

Business processing method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for processing a service, an electronic device, and a computer-readable storage medium.
Background
In the traditional architecture of the storage management software, different functional modules are split according to different functions of a back end, as shown in fig. 1 and fig. 2, each module of all nodes in a cluster is in long connection with one message service of a single rabbitmq service node. However, other traffic modules, except for the modules whose performance and caching need to be performed regularly to collect information, are basically inactive. When no request command is made, the module connection is in an idle state, wasting connection resources. Meanwhile, after processing the request, each module applies for creating a new connection for sending a processing result temporarily, and each time a processing request is received, a connection is created, so that the resource cost is high, and when the number of nodes and modules is large, great pressure is applied to a single Rabbitmq service node.
Therefore, how to solve the above problems is a great concern for those skilled in the art.
Disclosure of Invention
The application aims to provide a service processing method, a service processing device, an electronic device and a computer readable storage medium, which reduce the pressure of a single Rabbitmq node, reduce the creation time of connection and improve the message circulation speed.
In order to achieve the above object, the present application provides a service processing method, including:
receiving a web service request issued by a client;
selecting a first target long connection in an idle state from a first type connection pool, wherein the first type connection pool stores a pre-established long connection for receiving;
sending the web service request to a corresponding functional module for processing by using the first target long connection to obtain a processing result corresponding to the web service request;
and selecting a second target long connection in an idle state from a second type connection pool, and returning the processing result to the client through the second target long connection, wherein the second type connection pool stores a pre-established long connection for sending.
Optionally, the sending, by using the first target long connection, the web service request to a corresponding function module for processing includes:
analyzing the web service request to obtain a request operation code contained in the web service request;
determining a functional module for processing the web service request according to the request operation code;
and sending the web service request to the functional module through the first target long connection so that the functional module can process the web service request.
Optionally, the method further includes:
monitoring the state of the long connection in the first connection pool and the second connection pool;
and if any long connection disconnection is monitored, reconnecting the disconnected long connection.
Optionally, after the monitoring the state of the long connection in the first connection pool and the second connection pool, the method further includes:
if any long connection disconnection is monitored, counting corresponding disconnection times aiming at the disconnected long connection;
and when the disconnection times corresponding to any long connection is monitored to be larger than a first preset threshold value, the reconnection operation on the current long connection is forbidden in a preset time period.
Optionally, the method further includes:
generating a time curve representing the change of the business processing pressure by counting historical business processing data;
and adding or releasing the long connections in the connection pool at a preset time node by combining the time curve based on the current number of the long connections stored in the first connection pool and the second connection pool and the maximum threshold.
Optionally, the adding or releasing operation of the long connection in the connection pool at a preset time node in combination with the time curve includes:
if the service processing pressure of a preset time node is determined to be smaller than a second preset threshold according to the time curve, acquiring the disconnection times and the sending success rate corresponding to each long connection in the connection pool;
and determining a third target long connection by combining the disconnection times and the sending success rate, and releasing the third target long connection.
Optionally, the adding or releasing operation of the long connection in the connection pool at a preset time node in combination with the time curve includes:
monitoring the quantity of the service requests to be processed in real time to obtain actual pressure data;
and adding or releasing the long connection in the connection pool at a preset time node by combining the time curve and the actual pressure data.
In order to achieve the above object, the present application provides a service processing apparatus, including:
the request receiving module is used for receiving a web service request issued by a client;
the system comprises a first selection module, a second selection module and a third selection module, wherein the first selection module is used for selecting a first target long connection in an idle state from a first type connection pool, and the first type connection pool stores a pre-established long connection for receiving;
the request sending module is used for sending the web service request to a corresponding functional module for processing by utilizing the first target long connection to obtain a processing result corresponding to the web service request;
and the second selection module is used for selecting a second target long connection in an idle state from a second type connection pool, returning the processing result to the client through the second target long connection, and storing the pre-established long connection for sending in the second type connection pool.
To achieve the above object, the present application provides an electronic device including:
a memory for storing a computer program;
a processor for implementing the steps of any of the service processing methods disclosed in the foregoing when executing the computer program.
To achieve the above object, the present application provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of any of the service processing methods disclosed in the foregoing.
According to the above scheme, the service processing method provided by the application includes: receiving a web service request issued by a client; selecting a first target long connection in an idle state from a first type connection pool, wherein the first type connection pool stores a pre-established long connection for receiving; sending the web service request to a corresponding functional module for processing by using the first target long connection to obtain a processing result corresponding to the web service request; and selecting a second target long connection in an idle state from a second type connection pool, and returning the processing result to the client through the second target long connection, wherein the second type connection pool stores a pre-established long connection for sending. As can be seen from the above, the first-class connection pool of the present application stores the pre-established long connections for uniformly receiving the service request, and it is not necessary for each module to maintain the long connection with a single Rabbitmq node, thereby reducing the number of long connections of a single Rabbitmq node. Meanwhile, after the results are processed by each module, the results can be sent through the long connection pre-established in the second-type connection pool, so that the resource overhead of continuously establishing and destroying the temporary connection is avoided, the establishing time of the connection is shortened, and the message circulation speed is improved.
The application also discloses a business processing device, an electronic device and a computer readable storage medium, which can also realize the technical effects.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram illustrating a message processing flow in the related art;
FIG. 2 is a diagram illustrating a long connection between a single node service and each module in the related art;
fig. 3 is a flowchart of a service processing method disclosed in an embodiment of the present application;
fig. 4 is a schematic diagram of an architecture applied to a service processing method disclosed in an embodiment of the present application;
fig. 5 is a flowchart of another service processing method disclosed in the embodiment of the present application;
fig. 6 is a structural diagram of a service processing apparatus disclosed in an embodiment of the present application;
fig. 7 is a block diagram of an electronic device disclosed in an embodiment of the present application;
fig. 8 is a block diagram of another electronic device disclosed in the embodiments of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the prior art, each module of all nodes in the cluster is in long connection with one message service of a single rabbitmq service node, which wastes connection resources. Meanwhile, each module creates a connection after receiving a processing request every time, so that the resource cost is high, and when the number of nodes and modules is large, great pressure is caused on a single Rabbitmq service node.
Therefore, the embodiment of the application discloses a service processing method, which reduces the pressure of a single Rabbitmq service node, reduces the creation time of connection and improves the message transfer speed.
Referring to fig. 3 and 4, a service processing method disclosed in the embodiment of the present application includes:
s101: receiving a web service request issued by a client;
in the embodiment of the application, a web service request issued by a client through a command line CLI or a front-end page can be received. In particular, the web service request may include, but is not limited to, a query, modification, deletion, etc. request for data.
S102: selecting a first target long connection in an idle state from a first type connection pool, wherein the first type connection pool stores a pre-established long connection for receiving;
in this step, a first target long connection in an idle state may be selected from the first-class connection pool, so as to send a request to a corresponding functional module by using the long connection. The first type of connection pool is used for maintaining long connection of consumers, wherein the long connection which is established in advance for receiving is stored and is responsible for managing, storing and releasing the long connection. During initialization, a certain number of created long connections are stored in the first-class connection pool, and the created number can be determined according to a preset minimum connection number, so that at least the long connections with the minimum connection number are ensured to be in the connection pool.
S103: sending the web service request to a corresponding functional module for processing by using the first target long connection to obtain a processing result corresponding to the web service request;
in a specific implementation, the selected first target long connection can be used for sending the web service request to the corresponding functional module for processing. It can be understood that, in this embodiment, the request operation code included in the web service request may be obtained by parsing the web service request, and then the function module for processing the web service request may be determined according to the current request operation code, and then the web service request is sent to the determined function module through the first target long connection, so that the function module processes the current web service request.
S104: and selecting a second target long connection in an idle state from a second type connection pool, and returning the processing result to the client through the second target long connection, wherein the second type connection pool stores a pre-established long connection for sending.
After the processing result corresponding to the current web service request is obtained by processing through the functional module, a second target long connection in an idle state can be selected from the second type connection pool, and the processing result can be sent to the client through the second target long connection. The second type of connection pool stores the pre-established long connection for sending, and is responsible for managing, storing and releasing the long connection. Likewise, long connections greater than or equal to the minimum number of connections may be created at initialization for deposit into the second type connection pool.
As a preferred implementation manner, the present embodiment may also perform state monitoring on the long connections maintained in the first-type connection pool and the second-type connection pool in a timed manner or in real time. And if any long connection disconnection is monitored, reconnecting the disconnected long connection.
Further, if any long connection disconnection is monitored, the disconnection times corresponding to the connection can be counted according to the disconnected long connection. If the disconnection times corresponding to any long connection is monitored to be larger than a first preset threshold value, the connection is represented to be unstable, the performance is poor, reconnection operation on the current long connection can be forbidden in a preset time period, and the resource waste condition caused by repeated reconnection on the long connection with poor stability is avoided.
According to the above scheme, the service processing method provided by the application includes: receiving a web service request issued by a client; selecting a first target long connection in an idle state from a first type connection pool, wherein the first type connection pool stores a pre-established long connection for receiving; sending the web service request to a corresponding functional module for processing by using the first target long connection to obtain a processing result corresponding to the web service request; and selecting a second target long connection in an idle state from a second type connection pool, and returning the processing result to the client through the second target long connection, wherein the second type connection pool stores a pre-established long connection for sending. As can be seen from the above, the first-class connection pool of the present application stores the pre-established long connections for uniformly receiving the service request, and it is not necessary for each module to maintain the long connection with a single Rabbitmq node, thereby reducing the number of long connections of a single Rabbitmq node. Meanwhile, after the results are processed by each module, the results can be sent through the long connection pre-established in the second-type connection pool, so that the resource overhead of continuously establishing and destroying the temporary connection is avoided, the establishing time of the connection is shortened, and the message circulation speed is improved.
The embodiment of the present application discloses another service processing method, and compared with the previous embodiment, the present embodiment further describes and optimizes the technical solution. Referring to fig. 5, specifically:
s201: receiving a web service request issued by a client;
s202: selecting a first target long connection in an idle state from a first type connection pool, wherein the first type connection pool stores a pre-established long connection for receiving;
s203: sending the web service request to a corresponding functional module for processing by using the first target long connection to obtain a processing result corresponding to the web service request;
s204: selecting a second target long connection in an idle state from a second type connection pool, and returning the processing result to the client through the second target long connection, wherein the second type connection pool stores a pre-established long connection for sending;
s205: generating a time curve representing the change of the business processing pressure by counting historical business processing data;
in the embodiment of the present application, as a preferred implementation manner, adaptive adjustment may be performed on connections in a connection pool in combination with an actual service processing condition, for example, a long connection number may be added when the service processing pressure is large, so as to reduce the service processing response time, and a long connection number is reduced when the service processing pressure is small, so as to reduce resource consumption. Therefore, the embodiment of the application can collect historical business processing data, and generate a time curve representing the business processing pressure change by counting the historical data.
S206: and adding or releasing the long connections in the connection pool at a preset time node by combining the time curve based on the current number of the long connections stored in the first connection pool and the second connection pool and the maximum threshold.
It is understood that, after generating the time curve representing the traffic processing pressure variation, the rough traffic processing pressure variation rule may be known based on the time curve, and the traffic processing pressure possibly corresponding to each time segment or time node may be determined. And then, based on the number of connections currently saved in the connection pool and the maximum threshold value, the operation of adding long connections or releasing long connections can be executed at the preset time node.
In a specific embodiment, the adding or releasing operation performed on the long connection in the connection pool at the preset time node in conjunction with the time curve may specifically include: and if the service processing pressure of the preset time node is determined to be smaller than a second preset threshold according to the time curve, acquiring the disconnection times and the sending success rate corresponding to each long connection in the connection pool. And determining the third target long connection by combining the disconnection times and the sending success rate of each long connection, and releasing the third target long connection. That is, in the embodiment of the present application, a time node with a lower traffic processing pressure may be determined according to a time curve, for example, a time node with a traffic processing pressure smaller than a second preset threshold may be determined as a preset time node, and a connection release operation is performed when the time node is reached. When releasing the long connection, the long connection with more disconnection times and/or lower sending success rate can be selected from all the long connections for releasing. The second preset threshold may be set according to specific situations in practical implementation, and is not specifically limited herein.
As a preferable condition, in the embodiment of the present application, besides a time curve obtained based on historical data, the number of service requests to be processed may also be monitored in real time to obtain actual pressure data, and then, an adding or releasing operation may be performed on a long connection in a connection pool at a preset time node in combination with the time curve and the actual pressure data, so as to avoid an influence on service processing or resource overhead caused by performing adjustment on the long connection according to an original condition if a service pressure mutation node that does not conform to the time curve occurs when only the time curve is used as an adjustment basis, and ensure accuracy of long connection maintenance.
In a specific implementation, the adding or releasing operation of the long connection in the connection pool at the preset time node in combination with the time curve and the actual pressure data may include: and acquiring real-time monitored actual pressure data, calculating a difference value between the actual pressure data of the next time node and the corresponding historical pressure data in the time curve, and judging whether the difference value is in a preset variation range. If so, representing that the actual pressure data basically accords with the time curve rule, and adjusting the long connection according to an adjusting strategy corresponding to the original time curve without modifying the long connection; if not, the representation actual pressure data is different from the time curve rule, so that whether the operation of adding the long connection or releasing the long connection needs to be executed at the next time node or not needs to be determined according to the actual pressure data detected in real time.
In the following, a service processing apparatus provided in an embodiment of the present application is introduced, and a service processing apparatus described below and a service processing method described above may be referred to each other.
Referring to fig. 6, a service processing apparatus provided in an embodiment of the present application includes:
a request receiving module 301, configured to receive a web service request issued by a client;
a first selecting module 302, configured to select a first target long connection in an idle state from a first class connection pool, where a long connection that is established in advance for receiving is stored in the first class connection pool;
a request sending module 303, configured to send the web service request to a corresponding function module for processing by using the first target long connection, so as to obtain a processing result corresponding to the web service request;
a second selecting module 304, configured to select a second target long connection in an idle state from a second type connection pool, and return the processing result to the client through the second target long connection, where the second type connection pool stores a long connection that is pre-established for sending.
For the specific implementation process of the modules 301 to 304, reference may be made to the corresponding content disclosed in the foregoing embodiments, and details are not repeated here.
The present application further provides an electronic device, and as shown in fig. 7, an electronic device provided in an embodiment of the present application includes:
a memory 100 for storing a computer program;
the processor 200, when executing the computer program, may implement the steps provided by the above embodiments.
Specifically, the memory 100 includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer-readable instructions, and the internal memory provides an environment for the operating system and the computer-readable instructions in the non-volatile storage medium to run. The processor 200 may be a Central Processing Unit (CPU), a controller, a microcontroller, a microprocessor or other data processing chip in some embodiments, and provides computing and controlling capability for the electronic device, and when executing the computer program stored in the memory 100, the steps of the service processing method disclosed in any of the foregoing embodiments may be implemented.
On the basis of the above embodiment, as a preferred implementation, referring to fig. 8, the electronic device further includes:
and an input interface 300 connected to the processor 200, for acquiring computer programs, parameters and instructions imported from the outside, and storing the computer programs, parameters and instructions into the memory 100 under the control of the processor 200. The input interface 300 may be connected to an input device for receiving parameters or instructions manually input by a user. The input device may be a touch layer covered on a display screen, or a button, a track ball or a touch pad arranged on a terminal shell, or a keyboard, a touch pad or a mouse, etc.
And a display unit 400 connected to the processor 200 for displaying data processed by the processor 200 and for displaying a visualized user interface. The display unit 400 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch panel, or the like.
And a network port 500 connected to the processor 200 for performing communication connection with each external terminal device. The communication technology adopted by the communication connection can be a wired communication technology or a wireless communication technology, such as a mobile high definition link (MHL) technology, a Universal Serial Bus (USB), a High Definition Multimedia Interface (HDMI), a wireless fidelity (WiFi), a bluetooth communication technology, a low power consumption bluetooth communication technology, an ieee802.11 s-based communication technology, and the like.
While fig. 8 illustrates only an electronic device having the assembly 100 and 500, those skilled in the art will appreciate that the configuration illustrated in fig. 8 is not intended to be limiting of electronic devices and may include fewer or more components than those illustrated, or some components may be combined, or a different arrangement of components.
The present application also provides a computer-readable storage medium, which may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk. The storage medium has a computer program stored thereon, and the computer program realizes the steps of the service processing method disclosed in any one of the foregoing embodiments when executed by a processor.
The first-class connection pool of the application stores the pre-established long connection for uniformly receiving the service request, and each module does not need to maintain the long connection with a single Rabbitmq node, so that the number of the long connections of the single Rabbitmq node is reduced. Meanwhile, after the results are processed by each module, the results can be sent through the long connection pre-established in the second-type connection pool, so that the resource overhead of continuously establishing and destroying the temporary connection is avoided, the establishing time of the connection is shortened, and the message circulation speed is improved.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the system disclosed by the embodiment, the description is relatively simple because the system corresponds to the method disclosed by the embodiment, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A method for processing a service, comprising:
receiving a web service request issued by a client;
selecting a first target long connection in an idle state from a first type connection pool, wherein the first type connection pool stores a pre-established long connection for receiving;
sending the web service request to a corresponding functional module for processing by using the first target long connection to obtain a processing result corresponding to the web service request;
and selecting a second target long connection in an idle state from a second type connection pool, and returning the processing result to the client through the second target long connection, wherein the second type connection pool stores a pre-established long connection for sending.
2. The service processing method according to claim 1, wherein the sending the web service request to a corresponding functional module for processing by using the first target long connection includes:
analyzing the web service request to obtain a request operation code contained in the web service request;
determining a functional module for processing the web service request according to the request operation code;
and sending the web service request to the functional module through the first target long connection so that the functional module can process the web service request.
3. The traffic processing method according to claim 1, further comprising:
monitoring the state of the long connection in the first connection pool and the second connection pool;
and if any long connection disconnection is monitored, reconnecting the disconnected long connection.
4. The traffic processing method according to claim 3, wherein after the status monitoring of the long connection in the first connection pool and the second connection pool, the method further comprises:
if any long connection disconnection is monitored, counting corresponding disconnection times aiming at the disconnected long connection;
and when the disconnection times corresponding to any long connection is monitored to be larger than a first preset threshold value, the reconnection operation on the current long connection is forbidden in a preset time period.
5. The traffic processing method according to any of claims 1 to 4, further comprising:
generating a time curve representing the change of the business processing pressure by counting historical business processing data;
and adding or releasing the long connections in the connection pool at a preset time node by combining the time curve based on the current number of the long connections stored in the first connection pool and the second connection pool and the maximum threshold.
6. The traffic processing method according to claim 5, wherein the adding or releasing operation of the long connection in the connection pool at a preset time node in combination with the time curve comprises:
if the service processing pressure of a preset time node is determined to be smaller than a second preset threshold according to the time curve, acquiring the disconnection times and the sending success rate corresponding to each long connection in the connection pool;
and determining a third target long connection by combining the disconnection times and the sending success rate, and releasing the third target long connection.
7. The traffic processing method according to claim 5, wherein the adding or releasing operation of the long connection in the connection pool at a preset time node in combination with the time curve comprises:
monitoring the quantity of the service requests to be processed in real time to obtain actual pressure data;
and adding or releasing the long connection in the connection pool at a preset time node by combining the time curve and the actual pressure data.
8. A traffic processing apparatus, comprising:
the request receiving module is used for receiving a web service request issued by a client;
the system comprises a first selection module, a second selection module and a third selection module, wherein the first selection module is used for selecting a first target long connection in an idle state from a first type connection pool, and the first type connection pool stores a pre-established long connection for receiving;
the request sending module is used for sending the web service request to a corresponding functional module for processing by utilizing the first target long connection to obtain a processing result corresponding to the web service request;
and the second selection module is used for selecting a second target long connection in an idle state from a second type connection pool, returning the processing result to the client through the second target long connection, and storing the pre-established long connection for sending in the second type connection pool.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the service processing method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the traffic processing method according to any one of claims 1 to 7.
CN202010591007.0A 2020-06-24 2020-06-24 Business processing method and device, electronic equipment and storage medium Active CN111770157B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010591007.0A CN111770157B (en) 2020-06-24 2020-06-24 Business processing method and device, electronic equipment and storage medium
PCT/CN2021/077022 WO2021258753A1 (en) 2020-06-24 2021-02-20 Service processing method and apparatus, and electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010591007.0A CN111770157B (en) 2020-06-24 2020-06-24 Business processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111770157A true CN111770157A (en) 2020-10-13
CN111770157B CN111770157B (en) 2023-04-18

Family

ID=72722019

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010591007.0A Active CN111770157B (en) 2020-06-24 2020-06-24 Business processing method and device, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN111770157B (en)
WO (1) WO2021258753A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113467966A (en) * 2021-05-31 2021-10-01 珠海大横琴科技发展有限公司 Data processing method and device
WO2021258753A1 (en) * 2020-06-24 2021-12-30 广东浪潮智慧计算技术有限公司 Service processing method and apparatus, and electronic device and storage medium
CN114338479A (en) * 2022-01-04 2022-04-12 北京金山云网络技术有限公司 Communication method, device and system
CN115132189A (en) * 2022-06-10 2022-09-30 中国第一汽车股份有限公司 Long connection communication connection pool management method based on self-adaptive control strategy

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114401204B (en) * 2022-01-14 2024-01-23 平安科技(深圳)有限公司 Link pool management method, device, computer equipment and storage medium
CN114675908B (en) * 2022-05-27 2022-08-26 武汉中科通达高新技术股份有限公司 Service data processing system, method, computer device and storage medium
CN116055227B (en) * 2023-03-31 2023-06-16 北京国信会视科技有限公司 Intelligent terminal management and control method, system and device based on android device online security

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104092714A (en) * 2013-09-25 2014-10-08 腾讯科技(深圳)有限公司 Stream media file playing method and device
CN104270472A (en) * 2014-10-24 2015-01-07 杭州高达软件系统股份有限公司 Remote service invocation method, device and system
CN109769001A (en) * 2019-03-19 2019-05-17 中信梧桐港供应链管理有限公司 A kind of internet of things data transmission method and system
CN109818810A (en) * 2019-03-18 2019-05-28 深圳市网心科技有限公司 A kind of access server connection optimization method, access server and communication system
CN110049068A (en) * 2018-01-15 2019-07-23 北京京东尚科信息技术有限公司 A kind of method and apparatus of the Chief Web Officer connection optimization based on hypertext transfer protocol
CN110289993A (en) * 2019-06-06 2019-09-27 阿里巴巴集团控股有限公司 A kind of connection pool management method, apparatus, equipment and adapting system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10353910B2 (en) * 2016-07-15 2019-07-16 Ebay Inc. Preemptive connection pool adjustments
CN108124003B (en) * 2017-12-11 2021-03-26 中盈优创资讯科技有限公司 Network management equipment connection processing method, device and system
CN110430238B (en) * 2019-07-05 2023-10-31 中国平安财产保险股份有限公司 Long connection management method, device, equipment and computer readable storage medium
CN111770157B (en) * 2020-06-24 2023-04-18 广东浪潮大数据研究有限公司 Business processing method and device, electronic equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104092714A (en) * 2013-09-25 2014-10-08 腾讯科技(深圳)有限公司 Stream media file playing method and device
WO2015043406A1 (en) * 2013-09-25 2015-04-02 腾讯科技(深圳)有限公司 Method and device for acquiring streaming media data, and storage medium
CN104270472A (en) * 2014-10-24 2015-01-07 杭州高达软件系统股份有限公司 Remote service invocation method, device and system
CN110049068A (en) * 2018-01-15 2019-07-23 北京京东尚科信息技术有限公司 A kind of method and apparatus of the Chief Web Officer connection optimization based on hypertext transfer protocol
CN109818810A (en) * 2019-03-18 2019-05-28 深圳市网心科技有限公司 A kind of access server connection optimization method, access server and communication system
CN109769001A (en) * 2019-03-19 2019-05-17 中信梧桐港供应链管理有限公司 A kind of internet of things data transmission method and system
CN110289993A (en) * 2019-06-06 2019-09-27 阿里巴巴集团控股有限公司 A kind of connection pool management method, apparatus, equipment and adapting system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021258753A1 (en) * 2020-06-24 2021-12-30 广东浪潮智慧计算技术有限公司 Service processing method and apparatus, and electronic device and storage medium
CN113467966A (en) * 2021-05-31 2021-10-01 珠海大横琴科技发展有限公司 Data processing method and device
CN114338479A (en) * 2022-01-04 2022-04-12 北京金山云网络技术有限公司 Communication method, device and system
CN114338479B (en) * 2022-01-04 2024-03-22 北京金山云网络技术有限公司 Communication method, device and system
CN115132189A (en) * 2022-06-10 2022-09-30 中国第一汽车股份有限公司 Long connection communication connection pool management method based on self-adaptive control strategy

Also Published As

Publication number Publication date
CN111770157B (en) 2023-04-18
WO2021258753A1 (en) 2021-12-30

Similar Documents

Publication Publication Date Title
CN111770157B (en) Business processing method and device, electronic equipment and storage medium
JP4760491B2 (en) Event processing system, event processing method, event processing apparatus, and event processing program
CN109451051B (en) Service request processing method and device, electronic equipment and storage medium
CN110839084B (en) Session management method, device, equipment and medium
CN104243405A (en) Request processing method, device and system
CN109150738B (en) Industrial internet resource management method and system, readable storage medium and terminal
CN108540568B (en) Computing capacity sharing method and intelligent equipment
US11237888B2 (en) Message processing method and system, storage medium and electronic device
CN101394307A (en) Method, apparatus and system for on-line user amount statistic
CN113515545B (en) Data query method, device, system, electronic equipment and storage medium
CN110719311B (en) Distributed coordination service method, system and computer readable storage medium
CN112579304A (en) Resource scheduling method, device, equipment and medium based on distributed platform
CN104219069A (en) Access frequency control method, device and control system
CN111935025B (en) Control method, device, equipment and medium for TCP transmission performance
US11228537B2 (en) Resource processing method and system, storage medium and electronic device
CN109801425B (en) Queue polling prompting method, device, equipment and storage medium in surface tag service
CN113312553B (en) User tag determining method and device
CN109962941B (en) Communication method, device and server
CN104735134A (en) Method and device for providing computing service
CN115756135A (en) Processor management method and computing device
CN112685157B (en) Task processing method, device, computer equipment and storage medium
CN112235184B (en) Event-driven information pushing method and device and electronic equipment
JP2022006165A (en) Traffic adjustment method, device, electronic apparatus, computer readable recording medium and computer program
CN111400060A (en) Equipment linkage method, device, server and medium
CN113608885B (en) Client request processing method, device, 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