CN112506549A - Upgrading method and system for multi-turn session long connection service - Google Patents

Upgrading method and system for multi-turn session long connection service Download PDF

Info

Publication number
CN112506549A
CN112506549A CN202011500885.3A CN202011500885A CN112506549A CN 112506549 A CN112506549 A CN 112506549A CN 202011500885 A CN202011500885 A CN 202011500885A CN 112506549 A CN112506549 A CN 112506549A
Authority
CN
China
Prior art keywords
service
turn
conversations
old version
long connection
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
CN202011500885.3A
Other languages
Chinese (zh)
Other versions
CN112506549B (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.)
AI Speech Ltd
Original Assignee
AI Speech 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 AI Speech Ltd filed Critical AI Speech Ltd
Priority to CN202011500885.3A priority Critical patent/CN112506549B/en
Publication of CN112506549A publication Critical patent/CN112506549A/en
Application granted granted Critical
Publication of CN112506549B publication Critical patent/CN112506549B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration 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/14Session management
    • H04L67/143Termination or inactivation of sessions, e.g. event-controlled end of session

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides an upgrading method for multi-turn session long connection service. The method comprises the following steps: detecting a service message, and determining the state information of multiple rounds of conversations in the multiple rounds of conversation long connection service; disconnecting the multi-turn conversations of the old version service in the multi-turn long connection service based on the state information of the multi-turn conversations, and determining the connection quantity of the multi-turn conversations in the old version service; and when the connection number of the multi-turn dialog in the old version service is 0, deleting the old version service to finish the upgrading of the multi-turn dialog long connection service. The embodiment of the invention also provides an upgrading system for the multi-turn session long connection service. The embodiment of the invention accelerates the upgrading speed and reduces the time length occupied by the old version resources, thereby solving the problem that the connection can be randomly switched in the new version and the old version during the rolling upgrading in the prior k8s cluster scheme and bringing better experience to the client.

Description

Upgrading method and system for multi-turn session long connection service
Technical Field
The invention relates to the field of intelligent voice, in particular to an upgrading method and system for a multi-turn dialog long connection service.
Background
The voice service can be continuously updated based on some found problems, and when a developer prepares a new update package, in order to ensure that a user using the voice service of the old version is not influenced, the new version can be simultaneously on line and released after the old version is not used by any person. For the short connection service of a single-turn conversation, the old version only occupies less time and occupies less resources. However, for the long connection service of multiple rounds of conversations, because the long connection service used by the user cannot be finished in a short time, the resource occupation is relatively high, and meanwhile, the interaction of the multiple rounds of conversations makes it difficult to judge when the user can finish the conversation.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the related art:
the prior art ensures that the voice service of the new version and the old version is smoothly upgraded to use:
the DNS switching service, however, requires multiple sets of public IP addresses for DNS switching, and since each DNS server has a cache, it takes a long time to take all DNS servers to take effect.
However, the nginx reverse proxy dynamically modifies the upstream and needs to be reloaded, the reloaded nginx instant service TPS has obvious jitter, and meanwhile, as long as data interaction exists on a long connection which is not disconnected, the flow of the old version service still needs to be processed, so that the old version service cannot be quickly offline and still needs to continuously occupy resources until no connection exists.
Although the K8S, although the way of K8S rolling update is matched with the prestop hook to implement smooth update, we can well implement the logic of graceful exit of business service by using the prestop hook, and at the same time, the version of a replacement service instance also saves server resources well, in the whole service rolling update stage, the new request traffic is randomly distributed, that is, in the update stage, a new connection may still be established on the instance to be upgraded, and even the request may come on the new version service instance before returning to the old version service instance.
Disclosure of Invention
The problem that in the prior art, most of the existing technologies are suitable for smooth upgrade of short connection, when smooth upgrade of long connection service is processed, state association between software and business service is lacked, so that whether connection reserved in an old version service instance can be actively closed or not cannot be actively judged, and resource occupation time is long is solved.
In a first aspect, an embodiment of the present invention provides an upgrading method for a multi-round session length connection service, including:
detecting a service message, and determining the state information of multiple rounds of conversations in the multiple rounds of conversation long connection service;
disconnecting the multi-turn conversations of the old version service in the multi-turn long connection service based on the state information of the multi-turn conversations, and determining the connection number of the multi-turn conversations in the old version service;
and when the connection number of the multi-turn dialog in the old version service is 0, deleting the old version service to finish the upgrading of the multi-turn dialog long connection service.
In a second aspect, an embodiment of the present invention provides an upgrade system for a multi-turn session length connection service, including:
the state information determining program module is used for detecting the service message and determining the state information of the multi-turn dialog in the multi-turn dialog long connection service;
the detection program module is used for disconnecting the multi-turn conversations of the old version service in the multi-turn long connection service based on the state information of the multi-turn conversations and determining the connection number of the multi-turn conversations in the old version service;
and the service upgrading program module is used for deleting the old version service when the connection number of the multi-turn conversations in the old version service is 0 so as to finish upgrading the multi-turn long connection service.
In a third aspect, an electronic device is provided, comprising: at least one processor, and a memory communicatively coupled to the at least one processor, wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the method for upgrading a multi-turn long connection service of any of the embodiments of the present invention.
In a fourth aspect, an embodiment of the present invention provides a storage medium, on which a computer program is stored, where the computer program is configured to, when executed by a processor, implement the steps of the method for upgrading a multi-round long connection service according to any one of the embodiments of the present invention.
The embodiment of the invention has the beneficial effects that: the upgrading speed is increased, the time length occupied by the resources of the old version is shortened, the problem that in the conventional k8s cluster scheme, connection can be randomly switched between the new version and the old version during rolling upgrading is solved, and better experience is brought to a client.
Drawings
In order to more clearly illustrate the embodiments of the present invention 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, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a flowchart of an upgrading method for a multi-turn session long connection service according to an embodiment of the present invention;
FIG. 2 is a basic upgrade flow diagram of an upgrade method for a multi-turn long connection service according to an embodiment of the present invention;
fig. 3 is a schematic state diagram of a cluster before upgrade of an upgrade method for a multi-round long connection service according to an embodiment of the present invention;
fig. 4 is a schematic state diagram of an upgraded cluster for an upgrade method for a multi-round long connection service according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an upgrade system for a multi-turn long connection service according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. 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 invention.
Fig. 1 is a flowchart of an upgrade method for a multi-round session length connection service according to an embodiment of the present invention, including the following steps:
s11: detecting a service message, and determining the state information of multiple rounds of conversations in the multiple rounds of conversation long connection service;
s12: disconnecting the multi-turn conversations of the old version service in the multi-turn long connection service based on the state information of the multi-turn conversations, and determining the connection number of the multi-turn conversations in the old version service;
s13: and when the connection number of the multi-turn dialog in the old version service is 0, deleting the old version service to finish the upgrading of the multi-turn dialog long connection service.
The idea of the embodiment is to enable the multi-round-session long connection service to actively detect the connection state, so that the connection of the old version service can be disconnected at the fastest speed when the old version is not used by the user in the multi-round-session long connection service, the server resource is released, and the occupation of the server resource is slowed down.
For step S11, in order to implement smooth update of the long connection service of multiple rounds of conversations and release the resources occupied by the old version service as soon as possible, as shown in fig. 2, an update flow of the most basic long connection service of multiple rounds of conversations is shown. Firstly, a new version service is started in a multi-turn long connection service, and then gateway traffic is switched to the new version service. The service of the old version can start connection detection, and by detecting whether the connection of the old version is completely closed or not, if the connection of the old version is completely closed, the service resource of the old version can be released from the server resource of the multi-turn long connection service.
And starting a new version of multi-turn long connection service instance in the service cluster, wherein the service state diagram in the cluster is shown in figure 3. At this time, as the multi-round long-connection service is not upgraded, the traffic is sent to the gateway of the old version, and the old version service is used for performing the multi-round long-connection service on the user.
And modifying the upstream configuration of the multi-turn long connection service in the gateway through the ETCD, and switching the newly-built long connection to the new version multi-turn session service. Among them, the ETCD is a highly available key/value storage system mainly used for shared configuration and service discovery.
The service state diagram of the multi-turn long-connection service at this time after being modified by the ETCD is shown in FIG. 4, and the user voice request after being upgraded is sent to the new version service.
Because the voice conversation platform faces to a large number of users, at the moment, other users use old version services in multi-turn conversation long connection services before upgrading, and the users still use the services after upgrading. In order to ensure that the users are not influenced by upgrading, the users experience smooth upgrading without sense, and at the moment, the old version service used by the users in the long connection service is operated normally in multiple rounds.
Because the multi-turn conversation long connection service can generate the service message when working, the state information of each service in the multi-turn conversation long connection service is recorded, and the state information of the multi-turn conversation in the multi-turn conversation long connection service is judged by the service message.
For example:
2020/10/2012: 30:25A service-1: receiving a user request
2020/10/2012: 30:28A service-1: feedback to the user
2020/10/2012: 31:21B service-3: end of multi-turn session with user, idle
2020/10/2012: 33:51B service-5: receiving a request from a user
2020/10/2012: 33:54B service-5: feedback to the user
2020/10/2012: 34:27A service-2: receiving a user request
2020/10/2012: 34:28B service-5: receiving a request from a user
2020/10/2012: 34:33B service-5: feedback to the user
2020/10/2012: 35:01B service-7: end of multi-turn session with user, idle
2020/10/2012: 37: 01B service-2: end of multi-turn session with user, idle
The above message information is only used as an example, and the state information recorded under different setting conditions may be different according to different operating systems, and is not limited herein.
For step S12, as the user continues to use the message information, the message information will also increase with time, and multiple rounds of conversations of the old version service may be disconnected according to the multiple rounds of conversation state information at preset time intervals, so as to determine the number of connections of multiple rounds of conversations in the old version service in the multiple round of long connection services.
For step S13, as the number of connections of multiple sessions in the old version of service decreases, when all sessions in the old version of service are disconnected, that is, the number of connections of multiple sessions is 0. At this time, no user uses the old version service, so that the user is not affected by deleting the old version service at this time, and server resources are released.
Through on-line real data statistics, multiple rounds of conversations generally last about 3 rounds, the time consumption of each round is about 4s, and in extreme cases, a minute-level multiple round of conversations can also be finished. Meanwhile, thanks to the ETCD, the idle connection detection interval of the long connection service can be dynamically modified (service does not need to be updated), and the adjustment is convenient according to the actual condition.
As an implementation manner, in this embodiment, the detecting a service packet and determining state information of multiple rounds of sessions in a multiple round of session length connection service includes:
and detecting fields of the multi-turn conversation state in the service message, and determining the state information of the multi-turn conversation in the multi-turn conversation long connection service through the fields.
In this embodiment, because the information implicit in the service packet is too much, an extra field in a multi-round session state is added during packet configuration, and it is effectively determined which packets need to be disconnected and which packets cannot be disconnected through the field, for example: (O may not be broken, X may be broken)
2020/10/2012: 30:25A service-1: receiving user request- "O"
2020/10/2012: 30:28A service-1: feedback to the user- "O"
2020/10/2012: 31:21B service-3: end of multiple rounds of lengthy connections with the user, idle- "X"
2020/10/2012: 33:51B service-5: receiving user's request- "O"
2020/10/2012: 33:54B service-5: feedback to the user- "O"
2020/10/2012: 34:27A service-2: receiving user request- "O"
2020/10/2012: 34:28B service-5: receiving user's request- "O"
2020/10/2012: 34:33B service-5: feedback to the user- "O"
2020/10/2012: 35:01B service-7: end of multiple rounds of lengthy connections with the user, idle- "X"
2020/10/2012: 37:51B service-2: end of multiple rounds of lengthy connections with the user, idle- "X"
The implementation method can help quickly and accurately judge which conversation services can be disconnected through the fields, and upgrade efficiency is improved.
As an implementation manner, in this embodiment, before the detecting the service packet, the method further includes:
and judging the state of the dynamic configuration switch, and detecting the service message when the dynamic configuration switch is started.
The dynamic configuration switch is started after responding to the starting of the new version service in the multi-round long connection service cluster and is closed after responding to the deleting of the old version service.
In this embodiment, a dynamic switch is added to inform the service to turn on the detection when the long-term detection needs to be upgraded for the long-connection service of the multi-turn session. Meanwhile, the service is closed after upgrading, so that the influence of the switch on the multi-turn session long connection service is avoided.
As an implementation manner, in this embodiment, the disconnecting the multi-turn dialog of the old version service in the multi-turn dialog long connection service based on the state information of the multi-turn dialog includes:
and when the multiple rounds of conversations in the old version service have no conversation response within a preset number of periods, performing disconnection processing on the multiple rounds of conversations.
And when multiple rounds of conversations in the old version service are idle, performing disconnection processing on the multiple rounds of conversations.
In the present embodiment, in consideration of various actual situations, if there is an idle connection in the old version service, disconnection processing is performed;
if non-idle connection exists in the old version service, checking service data:
and when the multi-round conversation in the old version service is ended, performing disconnection processing.
There is also another possibility that although the user's multiple turns of conversation are not finished, the user does not input any more voice for some reason, and in consideration of this, a period detection is set in which the multiple turns of conversation in which the user does not have a conversation response within a set number of time periods are disconnected.
In actual use, in addition to detection of idle connection, the detection interval period of the idle connection during upgrading is 10s (without limitation, can be adjusted at will), and even if no session data exists, the idle long connection can be disconnected within the detection intervals of 2 idle connections, so that the upgrading speed is greatly increased, and the time occupied by old version resources is reduced.
For example:
2020/10/2012: 33:51B service-5: receiving user's request- "O"
2020/10/2012: 33:54B service-5: feedback to the user- "O"
2020/10/2012: 34:27A service-2: receiving user request- "O"
2020/10/2012: 34:28B service-5: receiving user's request- "O"
2020/10/2012: 34:33B service-5: feedback to the user- "O"
2020/10/2012: 35:01B service-7: end of multiple rounds of lengthy connections with the user, idle- "X"
2020/10/2012: 37:51B service-2: end of multiple rounds of lengthy connections with the user, idle- "X"
In B service-5, after 12:34:33 feedback to the user, if the interval period is 30 seconds and 4 idle periods, the user does not trigger the dialog response any more, and the connection of B service-5 is disconnected.
As an implementation manner, in this embodiment, after deleting the old version service, the method further includes:
responding to the version rollback instruction, detecting a service message, and determining the state information of the multi-turn dialog in the multi-turn dialog long connection service;
periodically determining the connection quantity of the multiple rounds of conversations in the current version service in the multiple rounds of conversation long connection services based on the state information of the multiple rounds of conversations;
and when the connection number of the multi-turn dialog in the current version service is 0, deleting the current version service to finish the version rollback of the multi-turn dialog long connection service.
In this embodiment, upgrading the disconnection quickly means that once a new problem arises with the upgrade, it is faster to smoothly roll back the service version in the same manner. The same procedure can also be used to perform a roll-to-roll service when an upgrade has a problem. The steps are substantially the same as those of the smooth upgrade, and are not described herein again.
Fig. 5 is a schematic structural diagram of an upgrade system for a multi-turn contact service according to an embodiment of the present invention, which can execute the upgrade method for the multi-turn contact service according to any of the embodiments described above and is configured in a terminal.
The present embodiment provides an upgrade system 10 for multi-turn session long connection service, which includes: the status information determination program module 11, the detection program module 12 and the service upgrade program module 13.
The state information determining program module 11 is configured to detect a service packet, and determine state information of multiple rounds of dialogues in a multiple round of dialogues long connection service; the detection program module 12 is configured to disconnect multiple rounds of conversations of an old version service in the multiple rounds of long connection services based on the state information of the multiple rounds of conversations, and determine the number of connections of the multiple rounds of conversations in the old version service; the service upgrading program module 13 is configured to delete the old version service when the number of connections of multiple rounds of sessions in the old version service is 0, so as to complete upgrading of the multiple rounds of session long connection services.
Further, the status information determination program module is configured to:
and detecting fields of the multi-turn conversation state in the service message, and determining the state information of the multi-turn conversation in the multi-turn conversation long connection service through the fields.
Further, the system is configured to:
and judging the state of the dynamic configuration switch, and detecting the service message when the dynamic configuration switch is started. The dynamic configuration switch is started after responding to the starting of the new version service in the multi-round long connection service cluster and is closed after responding to the deleting of the old version service.
The embodiment of the invention also provides a nonvolatile computer storage medium, wherein the computer storage medium stores computer executable instructions which can execute the upgrading method for the multi-turn long connection service in any method embodiment;
as one embodiment, a non-volatile computer storage medium of the present invention stores computer-executable instructions configured to:
detecting a service message, and determining the state information of multiple rounds of conversations in the multiple rounds of conversation long connection service;
disconnecting the multi-turn conversations of the old version service in the multi-turn long connection service based on the state information of the multi-turn conversations, and determining the connection number of the multi-turn conversations in the old version service;
and when the connection number of the multi-turn dialog in the old version service is 0, deleting the old version service to finish the upgrading of the multi-turn dialog long connection service.
As a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the methods in embodiments of the present invention. One or more program instructions are stored in a non-transitory computer readable storage medium, which when executed by a processor, perform a method for multi-round long connection service upgrade in any of the method embodiments described above.
The non-volatile computer-readable storage medium may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the device, and the like. Further, the non-volatile computer-readable storage medium may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the non-transitory computer readable storage medium optionally includes memory located remotely from the processor, which may be connected to the device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
An embodiment of the present invention further provides an electronic device, which includes: at least one processor, and a memory communicatively coupled to the at least one processor, wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the method for upgrading a multi-turn long connection service of any of the embodiments of the present invention.
The electronic device of the embodiments of the present application exists in various forms, including but not limited to:
(1) mobile communication devices, which are characterized by mobile communication capabilities and are primarily targeted at providing voice and data communications. Such terminals include smart phones, multimedia phones, functional phones, and low-end phones, among others.
(2) The ultra-mobile personal computer equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include PDA, MID, and UMPC devices, such as tablet computers.
(3) Portable entertainment devices such devices may display and play multimedia content. The devices comprise audio and video players, handheld game consoles, electronic books, intelligent toys and portable vehicle-mounted navigation devices.
(4) Other electronic devices with data processing capabilities.
As used herein, 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 … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above-described embodiments of the apparatus are merely illustrative, and 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 modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will 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; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. An upgrade method for a multi-turn long connection service, comprising:
detecting a service message, and determining the state information of multiple rounds of conversations in the multiple rounds of conversation long connection service;
disconnecting the multi-turn conversations of the old version service in the multi-turn long connection service based on the state information of the multi-turn conversations, and determining the connection number of the multi-turn conversations in the old version service;
and when the connection number of the multi-turn dialog in the old version service is 0, deleting the old version service to finish the upgrading of the multi-turn dialog long connection service.
2. The method of claim 1, wherein the detecting the traffic message and determining the state information of the sessions in the sessions of the multi-session long connection service comprises:
and detecting fields of the multi-turn conversation state in the service message, and determining the state information of the multi-turn conversation in the multi-turn conversation long connection service through the fields.
3. The method of claim 1, wherein prior to said detecting a traffic packet, the method further comprises:
and judging the state of the dynamic configuration switch, and detecting the service message when the dynamic configuration switch is started.
4. The method of claim 3, wherein the dynamic configuration switch is turned on in response to a startup of a new version of a service in a multi-turn long-connection service cluster and turned off in response to a deletion of the old version of the service.
5. The method of any of claims 1-4, wherein the disconnecting of multiple rounds of conversations for an old version of service in the multiple round of conversation long connection service based on the state information of the multiple rounds of conversations comprises:
and when the multiple rounds of conversations in the old version service have no conversation response within a preset number of periods, performing disconnection processing on the multiple rounds of conversations.
6. The method of any of claims 1-4, wherein the disconnecting of the multiple rounds of conversations for an old version of the long connection service based on the state information of the multiple rounds of conversations further comprises:
and when multiple rounds of conversations in the old version service are idle, performing disconnection processing on the multiple rounds of conversations.
7. The method of claim 1, wherein after deleting the old version of the service, the method further comprises:
responding to the version rollback instruction, detecting a service message, and determining the state information of the multi-turn dialog in the multi-turn dialog long connection service;
periodically determining the connection quantity of the multiple rounds of conversations in the current version service in the multiple rounds of conversation long connection services based on the state information of the multiple rounds of conversations;
and when the connection number of the multi-turn dialog in the current version service is 0, deleting the current version service to finish the version rollback of the multi-turn dialog long connection service.
8. An upgrade system for a multi-turn session length connection service, comprising:
the state information determining program module is used for detecting the service message and determining the state information of the multi-turn dialog in the multi-turn dialog long connection service;
the detection program module is used for disconnecting the multi-turn conversations of the old version service in the multi-turn long connection service based on the state information of the multi-turn conversations and determining the connection number of the multi-turn conversations in the old version service;
and the service upgrading program module is used for deleting the old version service when the connection number of the multi-turn conversations in the old version service is 0 so as to finish upgrading the multi-turn long connection service.
9. An electronic device, comprising: at least one processor, and a memory communicatively coupled to the at least one processor, wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the method of any one of claims 1-7.
10. A storage medium on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202011500885.3A 2020-12-17 2020-12-17 Upgrading method and system for multi-turn session long connection service Active CN112506549B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011500885.3A CN112506549B (en) 2020-12-17 2020-12-17 Upgrading method and system for multi-turn session long connection service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011500885.3A CN112506549B (en) 2020-12-17 2020-12-17 Upgrading method and system for multi-turn session long connection service

Publications (2)

Publication Number Publication Date
CN112506549A true CN112506549A (en) 2021-03-16
CN112506549B CN112506549B (en) 2022-07-08

Family

ID=74922394

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011500885.3A Active CN112506549B (en) 2020-12-17 2020-12-17 Upgrading method and system for multi-turn session long connection service

Country Status (1)

Country Link
CN (1) CN112506549B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140101648A1 (en) * 2012-10-05 2014-04-10 Microsoft Corporation Application version gatekeeping during upgrade
CN105100232A (en) * 2015-07-14 2015-11-25 焦点科技股份有限公司 Smooth upgrade method for server end program without interrupting service
CN109150608A (en) * 2018-08-22 2019-01-04 苏州思必驰信息科技有限公司 Interface service upgrade method and system for voice dialogue platform

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140101648A1 (en) * 2012-10-05 2014-04-10 Microsoft Corporation Application version gatekeeping during upgrade
CN105100232A (en) * 2015-07-14 2015-11-25 焦点科技股份有限公司 Smooth upgrade method for server end program without interrupting service
CN109150608A (en) * 2018-08-22 2019-01-04 苏州思必驰信息科技有限公司 Interface service upgrade method and system for voice dialogue platform

Also Published As

Publication number Publication date
CN112506549B (en) 2022-07-08

Similar Documents

Publication Publication Date Title
CN108595207B (en) Gray scale publishing method, rule engine, system, terminal and storage medium
CN108540816B (en) Live video acquisition method and device and storage medium
CN109360567B (en) Customizable wake-up method and apparatus
CN102754387B (en) The system and method for multimedia conferencing is carried out between the telephone plant allowing UPnP and WAN equipment
CN110246501B (en) Voice recognition method and system for conference recording
CN108877804B (en) Voice service method, system, electronic device and storage medium
CN107911361B (en) Voice management method and device supporting multiple sessions, terminal equipment and storage medium
CN102594876B (en) The mixing accelerating system of game real time data and more new data
CN105630587A (en) Method, device and system for migrating application program data between terminals
CN111833880A (en) Voice conversation method and system
WO2020094036A1 (en) Wireless network connection method for terminal
CN109741740B (en) Voice interaction method and device based on external trigger
CN110198489B (en) Multi-group audio and video interaction method and system
CN111107156A (en) Server-side processing method and server for actively initiating conversation and voice interaction system capable of actively initiating conversation
US11830483B2 (en) Method for processing man-machine dialogues
WO2017215408A1 (en) Session switching control method and apparatus and access point device
CN112473131A (en) Method and device for realizing game running and computer readable storage medium
US10478731B2 (en) Method and apparatus for storing user data
CN112506549B (en) Upgrading method and system for multi-turn session long connection service
US20170171339A1 (en) Advertisement data transmission method, electrnoic device and system
CN110365601A (en) Message treatment method, device and electronic equipment for video conference control front end
CN110248211B (en) Live broadcast room message current limiting method and device, electronic equipment and storage medium
CN111131052B (en) Method and device for updating routing information
CN111107147B (en) Message pushing method and device
CN110196732B (en) Local skill management method and device

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
CB02 Change of applicant information

Address after: 215123 building 14, Tengfei Innovation Park, 388 Xinping street, Suzhou Industrial Park, Suzhou City, Jiangsu Province

Applicant after: Sipic Technology Co.,Ltd.

Address before: 215123 building 14, Tengfei Innovation Park, 388 Xinping street, Suzhou Industrial Park, Suzhou City, Jiangsu Province

Applicant before: AI SPEECH Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant