CN111586140A - Data interaction method and server - Google Patents

Data interaction method and server Download PDF

Info

Publication number
CN111586140A
CN111586140A CN202010361947.0A CN202010361947A CN111586140A CN 111586140 A CN111586140 A CN 111586140A CN 202010361947 A CN202010361947 A CN 202010361947A CN 111586140 A CN111586140 A CN 111586140A
Authority
CN
China
Prior art keywords
connection
connections
long connection
idle
websocket
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.)
Pending
Application number
CN202010361947.0A
Other languages
Chinese (zh)
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.)
Ubtech Robotics Corp
Original Assignee
Ubtech Robotics Corp
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 Ubtech Robotics Corp filed Critical Ubtech Robotics Corp
Priority to CN202010361947.0A priority Critical patent/CN111586140A/en
Publication of CN111586140A publication Critical patent/CN111586140A/en
Pending legal-status Critical Current

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/14Session management
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L13/00Speech synthesis; Text to speech systems
    • G10L13/02Methods for producing synthetic speech; Speech synthesisers
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L13/00Speech synthesis; Text to speech systems
    • G10L13/02Methods for producing synthetic speech; Speech synthesisers
    • G10L13/04Details of speech synthesis systems, e.g. synthesiser structure or memory management
    • 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]

Abstract

The application is applicable to the field of data interaction, and provides a data interaction method and a server, wherein the method comprises the following steps: pre-configuring attribute parameters of a connection pool, and establishing the connection pool based on the attribute parameters; the attribute parameters comprise a minimum connection number and a maximum connection number; monitoring the total number of connections of the websocket long connection in the connection pool in real time; if a creation instruction about the websocket long connection is detected and the total number of the connections is less than the maximum number of the connections, creating a new websocket long connection to respond to the creation instruction; and if a release instruction about the websocket long connection is detected and the total number of the connections is greater than the minimum number of the connections, releasing the websocket long connection corresponding to the release instruction to respond to the release instruction. According to the method, the websocket long connection is established through the connection in the multiplexing connection pool to carry out data interaction, the requirement of establishing the connection to realize the data interaction can be met when the request of establishing the connection is responded, and server resources can be saved.

Description

Data interaction method and server
Technical Field
The application belongs to the field of data interaction, and particularly relates to a data interaction method and a server.
Background
In the speech synthesis service, a connection needs to be established between a speech access system (client) and a speech synthesis system (server of server) to realize data interaction, and the speech synthesis system needs to perform speech synthesis operation when receiving speech data sent by the speech access system and then returns a speech synthesis result to the client. At present, the common method is to establish long connection based on a websocket protocol, establish the connection at any time, and discard the connection after use. In this case, if the demand for concurrent connection establishment by the client is too large in a short time, the server may cause connection establishment failure at the client because resources are insufficient to create a large number of new connections in a short time. Furthermore, the server needs to allocate resources to perform voice synthesis service on the interactive data transmitted by the normally used long connection, and if part of the resources are divided to perform long connection creation under the condition, the server is easy to go down, so that the time consumption for creating the long connection is further increased, the success rate of creation is reduced, and the service call of the client is influenced.
Therefore, a data interaction method is needed to be found, which reasonably allocates server resources when responding to a request for establishing connection, considers the efficiency of establishing connection and speech synthesis, and improves the performance of the whole speech synthesis service.
Disclosure of Invention
The embodiment of the application provides a data interaction method and a server, a websocket long connection is established through the connection in a multiplexing connection pool to carry out data interaction, and the long connection needing to be established is reduced when a request for establishing the connection is responded so as to save resources occupied by establishing the long connection, so that the requirement for establishing the connection to realize the data interaction can be met, the server resources can be saved so as to ensure the efficiency of voice synthesis, and the performance of the whole voice synthesis service is improved.
In a first aspect, an embodiment of the present application provides a method, including: pre-configuring attribute parameters of a connection pool, and establishing the connection pool based on the attribute parameters; the attribute parameters comprise a minimum connection number and a maximum connection number; the connection pool is used for providing reusable websocket long connection; the websocket long connection is used for receiving interactive data fed back by the communication opposite end so as to carry out voice synthesis based on the interactive data; monitoring the total number of connections of the websocket long connection in the connection pool in real time; if a creation instruction about the websocket long connection is detected and the total number of the connections is less than the maximum number of the connections, creating a new websocket long connection to respond to the creation instruction; and if a release instruction about the websocket long connection is detected and the total number of the connections is greater than the minimum number of the connections, releasing the websocket long connection corresponding to the release instruction to respond to the release instruction.
In a possible implementation manner of the first aspect, a plurality of long connections with state identifiers being idle, the number of which corresponds to the minimum number of connections, are established in the connection pool, and the long connections with the state identifiers being idle are stored in an idle queue; the long connection with the state identifier being idle is the websocket long connection in a state to be activated; establishing a use queue in the connection pool for storing long connections with state identifications used; the long connection with the state identification as the use is the websocket long connection in the use state.
Illustratively, the idle queues in the connection pool are first-in first-out queues to ensure that the selection and use probabilities of the websocket long connections whose state identifiers are idle in the connection pool are equal.
It should be understood that the reusable websocket long connection is stored in the connection pool; when a connection pool is established, a plurality of long connections with idle state identifications are created in advance before data interaction is carried out, and when a data interaction request is received, the long connections with idle state identifications are reused for carrying out data interaction, so that configuration information of a server does not need to be set repeatedly, only information of a data interaction opposite terminal needs to be set, and resource consumption required by the server when the long connections are created is saved.
In a second aspect, an embodiment of the present application provides a server, including: the connection pool device is used for storing the established websocket long connection; the attribute parameters pre-configured by the connection pool device comprise a maximum connection number and a minimum connection number; the monitoring counting device is used for monitoring the total number of connections of the websocket long connection in the connection pool device in real time; the websocket long connection is used for receiving interactive data fed back by the communication opposite end so as to carry out voice synthesis based on the interactive data; the data interaction request responding device is used for receiving a data interaction request instruction, selecting the target long connection with the idle state identification from the connection pool device, carrying out data interaction through the target long connection with the idle state identification, and adjusting the state identification of the target long connection to be used; the target long connection with the state identification of being idle is the websocket long connection in a state to be activated; the target long connection with the state identification as the use is the websocket long connection in the use state; creating connection means for receiving a creation instruction, and creating a new long connection whose state identifier is idle when the total number of connections is smaller than the maximum number of connections; and the release connection device is used for receiving a release instruction, and when the total number of the connections is greater than the minimum number of the connections, the release connection device releases the websocket long connection corresponding to the release connection instruction.
In a third aspect, an embodiment of the present application provides a server, including: a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the method of any of the first aspect when executing the computer program.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, including: the computer readable storage medium stores a computer program which, when executed by a processor, implements the method of any of the first aspects described above.
In a fifth aspect, the present application provides a computer program product, which when run on a server, causes the server to perform the identification method according to any one of the above first aspects.
It is understood that the beneficial effects of the second aspect to the fifth aspect can be referred to the related description of the first aspect, and are not described herein again.
Compared with the prior art, the embodiment of the application has the advantages that:
compared with the prior art, the method provided by the embodiment of the application establishes the websocket long connection through the established connection in the multiplexing connection pool to perform data interaction, does not need to spend extra resources to establish the websocket long connection when responding to a part of connection establishment requests, can meet the requirements of establishing connection to realize data interaction, can save server resources to ensure the efficiency of voice synthesis, and improves the performance of the whole voice synthesis service.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a flow chart of an implementation of a method provided by a first embodiment of the present application;
FIG. 2 is a flow chart of connection pool establishment of a method provided in a first embodiment of the present application;
FIG. 3 is a flow chart of an implementation of a method provided by the second embodiment of the present application;
FIG. 4 is a schematic diagram of an application scenario of a method provided in an embodiment of the present application;
FIG. 5 is a flowchart of an implementation of a method provided by the third embodiment of the present application;
FIG. 6 is a flowchart of an implementation of a method provided by the fourth embodiment of the present application;
FIG. 7 is a flow chart of an implementation of a method provided in a fifth embodiment of the present application;
fig. 8 is a schematic structural diagram of a server according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a snoop counting apparatus according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a server according to another embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to an identification". Similarly, the phrase "if it is determined" or "if [ a described condition or event ] is identified" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon identifying [ a described condition or event ]" or "in response to identifying [ a described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
In the embodiment of the present application, the execution subject of the flow is a server. The server includes but is not limited to: the cloud server, the computer and the like can execute the data interaction method provided by the application. Preferably, the server is a cloud server, which provides speech synthesis services. Fig. 1 shows a flowchart of an implementation of the method provided in the first embodiment of the present application, which is detailed as follows:
in S101, an attribute parameter of a connection pool is preconfigured, and the connection pool is established based on the attribute parameter.
In this embodiment, the attribute parameters include a minimum connection number and a maximum connection number; the connection pool is used for providing reusable websocket long connection; the websocket long connection is used for receiving interactive data fed back by the communication opposite end so as to carry out voice synthesis based on the interactive data. In the voice synthesis service, a communication opposite end can be provided with a client program related to a server, the communication opposite end can send a plurality of voice fragment data to the server for a plurality of times through the client, the server can carry out voice synthesis service on the received voice fragment data and feed back a synthesis result to the communication opposite end, namely, the data interaction process between the communication opposite end and the server is bidirectional, the communication opposite end can send data to the server through an uplink, and the server can also send data to the communication opposite end through a downlink, so that a websocket long connection needs to be established, and the communication opposite end and the server carry out data interaction through the established websocket long connection.
In this embodiment, for example, the attribute parameters of the connection pool are preconfigured according to the performance of the server, where the performance of the server includes memory resources, processor resources, and the like of the server. Specifically, the minimum connection number is set so as to keep the reusable websocket long connections with the same number as the minimum connection number in the connection pool for data interaction when a subsequent request for data interaction is responded for the first time; the maximum connection number is set to prevent the server from being insufficient or even down due to the excessive connection number. The reusable websocket long connection keeps a state to be activated in the connection pool, and the state to be activated specifically refers to: the websocket long connection is preset with the configuration information of the server, and when a communication channel is established before data interaction, the websocket long connection can be used only after the configuration information of the communication opposite terminal is configured, so that the configuration operation of parameters on the server side is reduced, resources occupied by the server for establishing the long connection are saved, and the speed of responding to a data interaction request is increased.
In S102, the total number of connections of the websocket long connection in the connection pool is monitored in real time.
In this embodiment, for example, by setting a system counter, the total number of connections of the websocket long connection in the connection pool is counted in real time, and specifically, each time the total number of connections changes, the count value of the portion of the system counter related to the total number of connections is adjusted accordingly, for example, when the total number of connections increases, the count value of the system counter is increased; and when the total number of the connections is reduced, reducing the count value of a system counter, and determining the total number of the connections of the websocket long connection in the connection pool in time through the system counter.
In S103, if a creation instruction about the websocket long connection is detected and the total number of connections is less than the maximum number of connections, a new websocket long connection is created in response to the creation instruction.
In this embodiment, when the server detects a creation instruction for the websocket long connection, that is, it means that the total number of the connections is to be increased by one, in order to ensure that the total number of the connections does not exceed the maximum number of the connections all the time, it is necessary to determine the number relationship between the total number of the connections and the maximum number of the connections before creating a new websocket long connection, and only if the total number of the connections is less than the maximum number of the connections, create a new websocket long connection so as to ensure that the total number of the connections does not exceed the maximum number of the connections all the time. It should be understood that if the total number of connections is greater than or equal to the maximum number of connections, no operation is performed to create a new long connection for the websocket.
Optionally, if the total number of the connections is greater than or equal to the maximum number of the connections, the server returns information of busy service to the correspondent node.
Optionally, if the total number of connections is greater than or equal to the maximum number of connections, after a preset waiting time elapses, the number relationship between the total number of connections and the maximum number of connections is determined again. If the total number of the connections is smaller than the maximum number of the connections, a new websocket long connection is created to ensure that the total number of the connections does not exceed the maximum number of the connections all the time; if the total number of the connections is still larger than or equal to the maximum number of the connections at this time, the server returns the information of busy service to the opposite communication terminal.
In S104, if a release instruction related to the websocket long connection is detected and the total number of connections is greater than the minimum number of connections, the websocket long connection corresponding to the release instruction is released to respond to the release instruction.
In this embodiment, when the server detects a release instruction about the websocket long connection, that is, it means that the total number of the connections is to be decreased by one, in order to ensure that the total number of the connections is always not less than the minimum number of the connections, it is necessary to determine the number relationship between the total number of the connections and the minimum number of the connections before releasing the websocket long connection, and only when the total number of the connections is greater than the minimum number of the connections, releasing the websocket long connection can ensure that the total number of the connections is always not less than the minimum number of the connections. It should be understood that if the total number of connections is less than or equal to the minimum number of connections, the operation of releasing the websocket long connection is not performed.
Optionally, the release instruction may be sent by the correspondent node to the server. The communication opposite end can actively require the server to release the websocket long connection for the data interaction between the communication opposite end and the server.
Optionally, when the server is restarted or the correspondent node sends a restart instruction to the server, and when the restart instruction is detected, a release instruction related to all websocket long connections in the connection pool is generated, so that the server does not perform the operation of judging the number relationship between the total number of the connections and the minimum number of the connections, directly releases all the long connections, and releases occupied server resources.
In this embodiment, if the total number of connections is too small, when responding to a plurality of data interaction requests, the connection pool may not have enough long connections to respond to the plurality of data interaction requests, so that a new long connection needs to be created, and creating the new long connection consumes resources of the server; if the total number of the connections is too large, the server needs to consume resources to maintain a large number of long connections, and even the server is down. Therefore, the minimum connection number and the maximum connection number need to be set, the total number of connections is maintained in the range from the minimum connection number to the maximum connection number by monitoring the total number of connections in real time and executing corresponding steps when the total number of connections changes, and balance between resource consumption when long connections in the connection pool and resource consumption when voice synthesis is performed is maintained, so that the server can respond to a data interaction request in time, simultaneously save consumed resources as much as possible, provide the server for voice synthesis service, and improve the performance of the whole voice synthesis service.
Fig. 2 shows a connection pool establishment flowchart of the method provided in the first embodiment of the present application, which is detailed as follows:
in S201, a plurality of long connections whose state identifiers are idle, which are in a number corresponding to the minimum connection number, are established in the connection pool, and the long connections whose state identifiers are idle are stored in an idle queue.
In this embodiment, the long connection with the state identifier of idle is the websocket long connection in the state to be activated. The idle queue is used for storing long connections with the state marks of being idle in the connection pool. Preferably, the free queue is a first-in-first-out queue. And before responding to the request of data interaction, pre-creating a plurality of long connections with idle state identifications corresponding to the minimum connection number, so that when the server subsequently responds to the request of data interaction initiated by the communication opposite terminal, the server can carry out data interaction with different communication opposite terminals by multiplexing the long connections with idle state identifications without creating new long connections.
In S202, a use queue is established in the connection pool for storing long connections whose status is identified as used.
In this embodiment, the long connection with the status flag being used is the websocket long connection in the use status.
In this embodiment, the long connection with the state identifier being idle is pre-created, so that when a data interaction request initiated by a communication peer is subsequently responded, the creation operation of the long connection is not required, thereby saving server resources and quickly realizing data interaction with the communication peer; preferably, the idle queue is a first-in first-out queue, so that when a request for data interaction needs to be responded, a long connection with the smallest queue number (i.e., a long connection with the longest time in a standby state) can be selected from the idle queue as a target long connection, the state identification of the target long connection is adjusted from idle to use, the target long connection is moved out of the idle queue, and the queue number of each long connection in the idle queue is adjusted again. The target long connection is removed from the idle queue and added to the use queue, and the long connection with the minimum queue number in the idle queue is selected, so that the selection and use probabilities of all the long connections in the idle queue are consistent, the use probability of each long connection with the state identification of idle in the connection pool is ensured to be equal, and the utilization rate of server resources is improved; the long connection of different state identifications in the connection pool is stored by establishing the two queues, so that the real-time monitoring on the long connection of different state identifications can be conveniently carried out subsequently.
Fig. 3 shows a flowchart of an implementation of the method provided in the second embodiment of the present application. Referring to fig. 3, in comparison with the embodiment shown in fig. 2, the method provided in this embodiment further includes steps S301 to S302, which are detailed as follows:
in S301, if a data interaction request instruction is received, determining whether the idle queue is empty; and if the idle queue in the connection pool is empty, generating a creation instruction about the websocket long connection.
In this embodiment, a data interaction request instruction, that is, a request required to respond to the data interaction, is received. Specifically, because a communication channel between the server and the communication peer needs to be established for data interaction, and a reusable long connection is created in the connection pool, the communication channel can be established by selecting the long connection from the idle queue in the connection pool, thereby implementing data interaction operation between the server and the communication peer. At this time, if it is detected that the free queue in the connection pool is empty, that is, no websocket long connection with a state identifier of being free is used for responding to the data interaction request instruction, a new websocket long connection needs to be created, so that a creation instruction about the websocket long connection needs to be generated, and thus, a creation operation of the websocket long connection is executed.
In S302, a new target long connection with the state identifier being idle is created through the creation instruction, and the target long connection is called to respond to the data interaction request instruction.
In this embodiment, if the server detects the creation instruction, a new target long connection with a new state identifier being idle is created according to the creation instruction, so as to respond to the data interaction request instruction, and a communication channel between the server and a communication peer is established through the target long connection, so as to perform data interaction operation.
It should be understood that, when the free queue is not empty, that is, the websocket long connection with the state identifier being free is used for responding to the data interaction request instruction, a websocket long connection with the state identifier being free is selected as a target long connection for responding to the data interaction request instruction (the specific selection manner may refer to a dequeuing manner of the queue, that is, the free websocket long connection corresponding to the head of the queue is selected as the target long connection), so as to respond to the data interaction request instruction, and establish a communication channel with a communication opposite end through the target long connection, so as to perform data interaction operation.
Further, S302 includes S3021 to S3022.
In S3021, the status identifier of the target long connection for responding to the data interaction request instruction is adjusted from idle to used, and the target long connection is added to the use queue of the connection pool.
In this embodiment, when the server invokes the target long connection for data interaction with the correspondent node, the target long connection may be converted from a state to be activated to a use state, at this time, the state identifier of the target long connection may be adjusted from idle to use, and the target long connection is removed from the idle queue and added to the use queue.
Preferably, when responding to the data interaction request instruction, determining whether the establishment of the communication channel using the target long connection is successful, illustratively, determining whether establishment success information sent by the communication peer is received; if the successful establishing information sent by the communication opposite end is not received within a preset time period, identifying that the target long connection fails to establish the communication channel, generating a new websocket long connection establishing instruction, establishing a new websocket long connection according to the new websocket long connection establishing instruction, replacing the target long connection to perform subsequent operation, and generating a release instruction related to the target long connection.
In S3022, a data interaction completion instruction is detected, the status identifier of the target long connection is adjusted from use to idle, and the target long connection is added to an idle queue in the connection pool.
In this embodiment, detecting a data interaction completion instruction means that the data interaction is completed, and therefore, it is necessary to adjust the state identifier of the target long connection from use to idle, and add the target long connection to an idle queue in the connection pool, so that when a data interaction request initiated by another communication peer is subsequently received, the long connection may be continuously invoked for responding.
Optionally, when responding to the data interaction request instruction, the target long connection is used to establish a communication channel, so that the communication peer and the server perform data interaction through the target long connection. In the voice synthesis service, the opposite communication terminal can send voice fragments to the server for multiple times through the built-in client terminal, and the server can also return data for voice synthesis according to the voice fragments to the opposite communication terminal for multiple times, wherein the opposite communication terminal can receive the data after voice synthesis through the built-in client terminal, and during the data interaction process, the opposite communication terminal or the server is required to stop the data interaction.
Preferably, when the server sends the last voice synthesized data to the correspondent node, the server makes the last voice synthesized data carry the data interaction completion identifier; and after the server finishes sending the last voice synthesized data, generating the data interaction finishing instruction.
Optionally, when the communication peer sends the last voice segment to the server, the last voice segment carries the data interaction completion identifier, and after the server performs voice synthesis according to the last voice segment and generates a synthesis result corresponding to the voice segment, the synthesis result may be returned to the client, and at this time, the server may generate the data interaction completion instruction.
In this embodiment, when a data interaction request instruction is responded, a target long connection with a state identifier being idle is selected from the idle queue for data interaction, so that setting of server configuration information is omitted, and resource consumption of a server for creating a new long connection is reduced; after the data interaction is completed, the state identification of the target long connection is only required to be adjusted from use to idle, and the target long connection is transferred from the use queue to the idle queue to respond to other data interaction requests without closing the target long connection, so that the resource consumption of a server for processing connection closing is saved.
Referring to fig. 4, fig. 4 shows an application scenario diagram of the method provided by an embodiment of the present application, which is detailed as follows: in an application scenario in the figure, a client of a communication peer needs a voice synthesis unit of a server to provide a voice synthesis service, and then a websocket long connection needs to be established for data interaction between the client and the voice synthesis unit of the server. The method comprises the steps that before a server provides voice synthesis service, attribute parameters of a connection pool are preconfigured, the connection pool is established, the connection pool creates websocket long connections with the same number as the minimum connection number in advance, and server configuration information is set in the websocket long connections in advance, so that only configuration information of a communication opposite terminal needs to be configured when a communication channel is established subsequently, and therefore resource consumption of the server is saved; after the preparation work of the server is completed, starting to receive a data interaction request instruction sent by the client, selecting a reusable websocket long connection in the connection pool, and establishing a communication channel between the client and a voice synthesis unit of the server so as to carry out data interaction subsequently; when data interaction is carried out, the client side sends a plurality of voice fragments to the voice synthesis unit of the server for a plurality of times, and the voice synthesis unit of the server returns voice synthesis data generated by voice synthesis of the voice fragments, so that voice synthesis service is completed.
Fig. 5 shows a flowchart of an implementation of the method provided in the third embodiment of the present application. Referring to fig. 5, in comparison with the embodiment shown in fig. 2, the method provided in this embodiment further includes S501, which is detailed as follows:
in S501, monitoring the idle duration of the long connection in which the status identifier is idle in the connection pool in real time;
in this embodiment, exemplarily, the system counter is used to time the idle duration of the long connection whose state identifier is idle in the connection pool in real time, specifically, each long connection whose state identifier is idle starts to be timed when being added into the idle queue, and the long connection whose state identifier is idle is ended when being removed from the idle queue, and the system counter is used to time the idle duration of the long connection whose state identifier is idle.
In S502, if the idle duration is greater than a preset standard duration, a release instruction for the long connection with the state identifier being idle is generated.
In this embodiment, the idle duration is a duration that the long connection whose state identifier is idle is continuously in the state to be activated. Illustratively, by setting a system timer, the idle duration of each long connection whose state identifier is idle in the connection pool is monitored in real time, and once it is monitored that the idle duration of a certain long connection whose state identifier is idle is greater than a preset standard duration, a release instruction of the long connection is generated.
It should be understood that if the idle duration of a long connection whose state identifier is idle is less than or equal to the preset standard duration, the operation of generating the release instruction of the long connection is not executed.
In this embodiment, since maintaining the long connection whose state identifier is idle in the connection pool also needs to consume server resources, in order to balance resource consumption when maintaining the long connection in the connection pool and resource consumption when performing speech synthesis, it is necessary to reduce resource consumption for maintaining the long connection whose state identifier is idle as little as possible on the premise of normally providing a speech synthesis service, and therefore, it is possible to release resources occupied by the long connection which is in a state to be activated for a long time by screening the long connection which is in a state to be activated for a long time. To achieve this, the present embodiment monitors the idle duration of the long connection whose status identifier is idle in the connection pool in real time; if the idle time length is longer than the preset standard time length, the long connection reaches the standard of needing to release the resource, and a release instruction of the long connection with the idle state identification can be generated to release the resource occupied by the long connection, so that the resource consumption of the server is saved.
Fig. 6 shows a flowchart of an implementation of the method provided in the fourth embodiment of the present application. Referring to fig. 6, in comparison with the embodiment shown in fig. 2, the method provided in this embodiment further includes step S601, which is detailed as follows:
in S601, the total number of connections of the websocket long connection in the connection pool is monitored in real time, and if the total number of connections is smaller than the minimum number of connections, a new long connection whose state identifier is idle is created until the total number of connections reaches the minimum number of connections.
In this embodiment, for example, the total number of connections of the websocket long connection in the connection pool is counted by the system counter set up above; and when the total number of the connections is monitored to be smaller than the minimum number of the connections, creating a new long connection with a state mark as idle until the total number of the connections reaches the minimum number of the connections. It should be understood that when the total number of connections is monitored to be greater than or equal to the minimum number of connections, the operation of creating a long connection whose new state identifier is idle is not performed.
In this embodiment, if the total number of connections is too small, when responding to a plurality of data interaction requests, the connection pool may not have enough long connections to respond to the plurality of data interaction requests, and thus a new long connection needs to be created, but creating a new long connection consumes resources of the server; moreover, in the above embodiment, there may be an operation of releasing multiple long connections, so to avoid a situation that the total number of connections is smaller than the minimum number of connections due to the operation of releasing multiple long connections, it is necessary to monitor the total number of connections of the websocket long connections in the connection pool in real time, and when the total number of connections is monitored to be smaller than the minimum number of connections, create a new long connection whose state identifier is idle until the total number of connections reaches the minimum number of connections, and ensure that the total number of connections is not smaller than the minimum number of connections.
It should be understood that the technical means of "monitoring the total number of connections of the websocket long connection in the connection pool in real time, and if the total number of connections is less than the minimum number of connections, creating a new long connection whose state identifier is idle until the total number of connections reaches the minimum number of connections" provided in this embodiment may replace the above technical means of "if a release instruction about the websocket long connection is detected and the total number of connections is greater than the minimum number of connections, releasing the websocket long connection corresponding to the release instruction, so as to respond to the release instruction", and both may only store one of the two or may coexist.
Fig. 7 shows a flowchart of an implementation of the method provided in the fifth embodiment of the present application. Referring to fig. 7, in comparison with the other embodiments, the method provided in this embodiment further includes step S701, which is specifically detailed as follows:
in S701, a first connection number of the idle queue and a second connection number of the used queue in the connection pool are monitored in real time.
In this embodiment, the system counter counts, in real time, a first connection number of an idle queue in the connection pool, where the first connection number is a connection number of a long connection whose state identifier stored in the idle queue is idle; and counting a second connection number of the use queue in the connection pool in real time through the system counter, wherein the second connection number is the connection number of the long connection used, and the state identifier stored in the use queue is the connection number of the long connection used.
In S702, monitoring information is generated according to the first connection number and the second connection number.
In this embodiment, the operation of generating the monitoring information according to the first connection number and the second connection number is performed once in a preset time interval, for example, the monitoring information includes a function graph of the first connection number and time and a function graph of the second connection number and time, and the monitoring information also includes monitoring information such as a real-time value, a maximum value, an average value, and a total value of the first connection number and the second connection number in the preset time interval.
In S703, the maximum connection number and/or the minimum connection number are adjusted based on the monitoring information.
In this embodiment, the monitoring information may include real-time values, maximum values, average values, total values, and the like of the first connection number and the second connection number in the preset time interval, and the maximum connection number and/or the minimum connection number may be adjusted according to the real-time values, the maximum values, the average values, and the total values.
It should be understood that the sum of the first connection number and the second connection number is the above-mentioned total number of connections, and the total number of connections is in the range of the minimum connection number to the maximum connection number. For example, in the preset time interval, if the average value of the first connection number is greater than the minimum connection number, adjusting the minimum connection number once to reduce the value of the minimum connection number, and/or adjusting the maximum connection number once to reduce the value of the maximum connection number; it should be understood that, if the average value of the first connection numbers is less than or equal to the minimum connection number, the operation of adjusting the maximum connection number and/or the minimum connection number is not performed.
Optionally, if the time duration of the time period in which the real-time value of the second connection number is greater than the minimum connection number occupies more than 50% of the preset time interval, adjusting the minimum connection number once to increase the value of the minimum connection number; it should be understood that if the time duration of the time period in which the real-time value of the second connection number is greater than the minimum connection number is within 50% of the preset time interval, the operation of adjusting the maximum connection number and/or the minimum connection number is not performed.
Optionally, if the maximum value of the second connection number is greater than 90% of the maximum connection number, and the average value of the second connection number is greater than 60% of the maximum connection number, the maximum connection number is adjusted once, so that the value of the maximum connection number is increased. It is to be understood that if the maximum value of the second connection number is less than or equal to 90% of the maximum connection number, or the average value of the second connection number is less than or equal to 60% of the maximum connection number, the operation of adjusting the maximum connection number and/or the minimum connection number is not performed.
Optionally, if the time duration with the first connection number being different from 0 occupies more than a preset percentage (for example, 60%) of the preset time interval, adjusting the standard time duration in the embodiment shown in fig. 5 to decrease the value of the standard time duration, where the decreased value is determined according to the percentage value of the time duration with the first connection number being different from 0 occupying the preset time interval; if the time duration in which the first connection number is not 0 occupies within a predetermined percentage (for example, 60%) of the predetermined time interval, the standard time duration in the embodiment shown in fig. 5 is adjusted to increase the value of the standard time duration, and the increased value is determined according to the percentage value of the time duration in which the first connection number is not 0 occupying the predetermined time interval.
In this embodiment, the minimum connection number and/or the maximum connection number are adjusted according to the monitoring information, so that the values of the minimum connection number and the maximum connection number are more reasonable, the resource consumption for maintaining the long connection in the connection pool is more reasonable, the resource consumption for maintaining the long connection in the connection pool and the resource consumption for performing speech synthesis are more balanced under the condition that the response data interaction request is satisfied, and the resources consumed by the server are saved as much as possible.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Corresponding to the identification method described in the above embodiments, a block diagram of the apparatus provided in the embodiments of the present application is illustrated, and for convenience of explanation, only the relevant portions of the embodiments of the present application are illustrated.
Referring to fig. 8, fig. 8 is a schematic structural diagram illustrating a server provided in an embodiment of the present application, where the server includes: the connection pool device is used for storing the established websocket long connection; the attribute parameters pre-configured by the connection pool device comprise a maximum connection number and a minimum connection number; the monitoring counting device is used for monitoring the total number of connections of the websocket long connection in the connection pool device in real time; the websocket long connection is used for receiving interactive data fed back by the communication opposite end so as to carry out voice synthesis based on the interactive data; the data interaction request response device is used for receiving a data interaction request instruction, selecting a target long connection with a state identifier of being idle from the connection pool device, carrying out data interaction through the target long connection, and adjusting the state identifier of the target long connection to be used; the target long connection with the state identification of being idle is the websocket long connection in a state to be activated; the target long connection with the state identification as the use is the websocket long connection in the use state; creating connection means for receiving a creation instruction, and creating a new long connection whose state identifier is idle when the total number of connections is smaller than the maximum number of connections; and the release connection device is used for receiving a release instruction, and when the total number of the connections is greater than the minimum number of the connections, the release connection device releases the websocket long connection corresponding to the release connection instruction.
In this embodiment, preferably, referring to fig. 9, fig. 9 shows a schematic structural diagram of the snoop counting apparatus provided in an embodiment of the present application, which is detailed as follows:
in this embodiment, the snoop counting apparatus further includes: the monitoring counting device is also used for monitoring the idle time length of the long connection with the idle state identification in the idle queue in real time; if the idle time length is longer than the preset standard time length, sending a release instruction of the long connection with the idle state identification to the release connection device; the monitoring information generating device is used for generating monitoring information according to the first connection number and the second connection number; the monitoring information is used for adjusting the attribute parameters of the connection pool device.
It should be understood that the server further includes an adjusting device, configured to adjust an attribute parameter of the connection pool device according to the monitoring information, where the attribute parameter includes the maximum connection number and the minimum connection number.
In this embodiment, the monitoring and counting device is further configured to monitor a total number of connections of the websocket long connection in the connection pool, and if the total number of connections is smaller than the minimum number of connections, send a creation instruction to the creation connection device until the total number of connections reaches the minimum number of connections; and monitoring the first connection number of the idle queue and the second connection number of the using queue in the connection pool in real time.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Fig. 10 shows a schematic structural diagram of a server provided in another embodiment of the present application, which is detailed as follows:
the server 10 may be a desktop computer, a notebook, a cloud server, or other computing devices. The server may include, but is not limited to, a processor 100, a memory 101. Those skilled in the art will appreciate that fig. 10 is merely an example of a server 10 and does not constitute a limitation on server 10, and may include more or fewer components than shown, or some components in combination, or different components, such as input output devices, network access devices, etc.
The Processor 100 may be a Central Processing Unit (CPU), and the Processor 100 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, a discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 101 may be an internal storage unit of the server 10 in some embodiments, for example, a hard disk or a memory of the server 10. The memory 101 may also be an external storage device of the server 10 in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the server 10. Further, the memory 101 may also include both an internal storage unit and an external storage device of the server 10. The memory 101 is used for storing an operating system, an application program, a BootLoader (BootLoader), data, and other programs, such as program codes of the computer program. The memory 101 may also be used to temporarily store data that has been output or is to be output. The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.
The embodiments of the present application provide a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the steps in the above method embodiments when executed.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/server, a recording medium, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/server and method may be implemented in other ways. For example, the above-described apparatus/server embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A data interaction method is applied to a server and is characterized by comprising the following steps:
pre-configuring attribute parameters of a connection pool, and establishing the connection pool based on the attribute parameters; the attribute parameters comprise a minimum connection number and a maximum connection number; the connection pool is used for providing reusable websocket long connection; the websocket long connection is used for receiving interactive data fed back by the communication opposite end so as to carry out voice synthesis based on the interactive data;
monitoring the total number of connections of the websocket long connection in the connection pool in real time;
if a creation instruction about the websocket long connection is detected and the total number of the connections is less than the maximum number of the connections, creating a new websocket long connection to respond to the creation instruction;
and if a release instruction about the websocket long connection is detected and the total number of the connections is greater than the minimum number of the connections, releasing the websocket long connection corresponding to the release instruction to respond to the release instruction.
2. The method of claim 1, wherein said establishing the connection pool based on the attribute parameter comprises:
establishing a plurality of long connections with idle state identifications in a number corresponding to the minimum connection number in the connection pool, and storing the long connections with idle state identifications in an idle queue; the long connection with the state identifier being idle is the websocket long connection in a state to be activated;
establishing a use queue in the connection pool for storing long connections with state identifications used; the long connection with the state identification as the use is the websocket long connection in the use state.
3. The method of claim 2, wherein the method further comprises:
if a data interaction request instruction is received, judging whether the idle queue is empty;
if the free queue in the connection pool is empty, generating a creation instruction about the websocket long connection;
creating a new target long connection with the state identifier being idle through the creating instruction, and calling the target long connection to respond to the data interaction request instruction, wherein the creating instruction comprises the following steps:
adjusting the state identification of the target long connection for responding to the data interaction request instruction from idle to use, and adding the target long connection into a use queue of the connection pool;
and detecting a data interaction completion instruction, adjusting the state identification of the target long connection from use to idle, and adding the target long connection into an idle queue in the connection pool.
4. The method of claim 2, wherein the method further comprises:
monitoring the idle time of the long connection with the state identifier being idle in the connection pool in real time;
and if the idle time length is greater than the preset standard time length, generating a release instruction of the long connection with the state identification as idle.
5. The method of claim 2, wherein the method further comprises:
monitoring the total number of connections of the websocket long connection in the connection pool in real time, and if the total number of connections is smaller than the minimum number of connections, creating a new long connection with a state identifier of being idle until the total number of connections reaches the minimum number of connections.
6. The method of any of claims 1-5, wherein the method comprises:
monitoring the first connection number of the idle queue in the connection pool and the second connection number of the using queue in real time;
generating monitoring information according to the first connection number and the second connection number;
adjusting the maximum number of connections and/or the minimum number of connections based on the monitoring information.
7. A server, comprising:
the connection pool device is used for storing the established websocket long connection; the attribute parameters pre-configured by the connection pool device comprise a maximum connection number and a minimum connection number;
the monitoring counting device is used for monitoring the total number of connections of the websocket long connection in the connection pool device in real time; the websocket long connection is used for receiving interactive data fed back by the communication opposite end so as to carry out voice synthesis based on the interactive data;
the data interaction request response device is used for receiving a data interaction request instruction, selecting a target long connection with a state identifier of being idle from the connection pool device, carrying out data interaction through the target long connection, and adjusting the state identifier of the target long connection to be used; the target long connection with the state identification of being idle is the websocket long connection in a state to be activated; the target long connection with the state identification as the use is the websocket long connection in the use state;
creating connection means for receiving a creation instruction, and creating a new long connection whose state identifier is idle when the total number of connections is smaller than the maximum number of connections;
and the release connection device is used for receiving a release instruction, and when the total number of the connections is greater than the minimum number of the connections, the release connection device releases the websocket long connection corresponding to the release connection instruction.
8. The server of claim 7, wherein the snoop counting means further comprises:
the monitoring counting device is also used for monitoring the idle time length of the long connection with the idle state identification in the idle queue in real time; if the idle time length is longer than the preset standard time length, sending a release instruction of the long connection with the idle state identification to the release connection device;
the monitoring counting device is further configured to monitor the total number of connections of the websocket long connection in the connection pool, and if the total number of connections is smaller than the minimum number of connections, send a creation instruction to the creation connecting device until the total number of connections reaches the minimum number of connections;
the monitoring counting device is also used for monitoring the first connection number of the idle queue and the second connection number of the using queue in the connection pool in real time;
the monitoring information generating device is used for generating monitoring information according to the first connection number and the second connection number; the monitoring information is used for adjusting the attribute parameters of the connection pool device.
9. A server comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 6.
CN202010361947.0A 2020-04-30 2020-04-30 Data interaction method and server Pending CN111586140A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010361947.0A CN111586140A (en) 2020-04-30 2020-04-30 Data interaction method and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010361947.0A CN111586140A (en) 2020-04-30 2020-04-30 Data interaction method and server

Publications (1)

Publication Number Publication Date
CN111586140A true CN111586140A (en) 2020-08-25

Family

ID=72124986

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010361947.0A Pending CN111586140A (en) 2020-04-30 2020-04-30 Data interaction method and server

Country Status (1)

Country Link
CN (1) CN111586140A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113472893A (en) * 2021-07-22 2021-10-01 咪咕数字传媒有限公司 Data processing method and device, computing equipment and computer storage medium
CN114422428A (en) * 2022-01-13 2022-04-29 挂号网(杭州)科技有限公司 Restarting method and apparatus for service node, electronic device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104811459A (en) * 2014-01-23 2015-07-29 阿里巴巴集团控股有限公司 Processing method, processing device and system for message services and message service system
CN105740301A (en) * 2014-12-12 2016-07-06 北大方正集团有限公司 Method and apparatus for internal connection adjustment for distributed database
CN106250500A (en) * 2016-07-29 2016-12-21 广州唯品会信息科技有限公司 The dynamic management approach of database connection pool and system
CN107404480A (en) * 2017-07-24 2017-11-28 平安科技(深圳)有限公司 A kind of transmission method of stream medium data, storage medium and streaming media server
CN109284311A (en) * 2018-08-14 2019-01-29 四川虹美智能科技有限公司 A kind of method and apparatus obtaining database connection
CN110971703A (en) * 2019-12-11 2020-04-07 腾讯科技(深圳)有限公司 Service request method, device, server and storage medium based on connection pool

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104811459A (en) * 2014-01-23 2015-07-29 阿里巴巴集团控股有限公司 Processing method, processing device and system for message services and message service system
CN105740301A (en) * 2014-12-12 2016-07-06 北大方正集团有限公司 Method and apparatus for internal connection adjustment for distributed database
CN106250500A (en) * 2016-07-29 2016-12-21 广州唯品会信息科技有限公司 The dynamic management approach of database connection pool and system
CN107404480A (en) * 2017-07-24 2017-11-28 平安科技(深圳)有限公司 A kind of transmission method of stream medium data, storage medium and streaming media server
CN109284311A (en) * 2018-08-14 2019-01-29 四川虹美智能科技有限公司 A kind of method and apparatus obtaining database connection
CN110971703A (en) * 2019-12-11 2020-04-07 腾讯科技(深圳)有限公司 Service request method, device, server and storage medium based on connection pool

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113472893A (en) * 2021-07-22 2021-10-01 咪咕数字传媒有限公司 Data processing method and device, computing equipment and computer storage medium
CN113472893B (en) * 2021-07-22 2023-08-01 咪咕数字传媒有限公司 Data processing method, device, computing equipment and computer storage medium
CN114422428A (en) * 2022-01-13 2022-04-29 挂号网(杭州)科技有限公司 Restarting method and apparatus for service node, electronic device and storage medium

Similar Documents

Publication Publication Date Title
CN107087019B (en) Task scheduling method and device based on end cloud cooperative computing architecture
CN108449410B (en) Message management method, system and related device in cloud platform
CN107241281B (en) Data processing method and device
CN107729139B (en) Method and device for concurrently acquiring resources
WO2019075980A1 (en) Thread adjustment method and terminal thereof
US10454795B1 (en) Intermediate batch service for serverless computing environment metrics
CN113485822A (en) Memory management method, system, client, server and storage medium
US9323591B2 (en) Listening for externally initiated requests
CN106897299B (en) Database access method and device
CN110958281A (en) Data transmission method and communication device based on Internet of things
CN109800261B (en) Dynamic control method and device for double-database connection pool and related equipment
CN111586140A (en) Data interaction method and server
CN111200606A (en) Deep learning model task processing method, system, server and storage medium
CN114155026A (en) Resource allocation method, device, server and storage medium
CN112104679B (en) Method, apparatus, device and medium for processing hypertext transfer protocol request
CN110333916B (en) Request message processing method, device, computer system and readable storage medium
WO2016149945A1 (en) Life cycle event processing method and vnfm
CN103823712A (en) Data flow processing method and device for multi-CPU virtual machine system
CN112860387A (en) Distributed task scheduling method and device, computer equipment and storage medium
WO2020252724A1 (en) Log processing method and device, and computer-readable storage medium
CN107689979B (en) method and equipment for processing download request
CN113886082A (en) Request processing method and device, computing equipment and medium
CN112689008A (en) Network connection pool management method, device, equipment and storage medium
CN114510325A (en) Task scheduling method, device and system
US11789777B2 (en) Resource utilization method, electronic device, and computer program product

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200825

RJ01 Rejection of invention patent application after publication