Service updating method, device, storage medium, and computer equipment

By using the instructions of the management server in SaaS, the client's traffic is transferred to the grayscale service that has been grayscale tested, and switched back to the formal service after the official service is updated, solving the problem that traditional service update methods affect the client's use. Ensure that the client always has a backend service that can be connected and avoid token failure, improving the stability of service updates.

CN115529239BActive Publication Date: 2024-12-271DATA TECH SHANGHAI CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202211242951.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-11
Publication Date
2024-12-27
Estimated Expiration
2042-10-11

AI Technical Summary

Technical Problem

In Software as a Service (SaaS), traditional service update methods will affect the normal use of the client, which may cause the client to be unable to connect to the backend service or the token is invalid, resulting in the problem of quitting without reason.

Method used

Through the instructions of the management server, the client temporarily transfers traffic to the grayscale service that has been grayscale tested, and switches back to the formal service after the official service is updated, ensuring that the client always has a back-end service that can be connected and resolves the command Card failure problem.

Benefits of technology

It realizes the avoidance of offline old versions of back-end services without reason, ensures that the client always has back-end services that can be connected, solves the problem of client exit without reason, and improves the stability and reliability of service updates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115529239B_ABST
    Figure CN115529239B_ABST
Patent Text Reader

Abstract

The present application provides a service update method, device, storage medium, and computer equipment. The service update method applied to the client includes: in response to a first switching instruction, switching the access object of the backend service request from the first official service to the first grayscale service; the first switching instruction is issued by the management server when the first grayscale service test passes, the first official service is the official backend service of the current version, and the first grayscale service is the grayscale backend service of the updated version; in response to a second switching instruction, switching the access object of the backend service request from the first grayscale service to the second official service; the second switching instruction is issued by the management server when the first official service version is updated to the second official service, and the second official service is the official backend service of the updated version. This method ensures that there is always a connectable backend service, and the use of the client is not affected by the service update.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and in particular to a service updating method, device, storage medium, and computer equipment. Background Art

[0002] Software-as-a-Service (SaaS) is a completely innovative software application model that has emerged with the development of Internet technology and the maturity of application software. SaaS providers deploy software applications on their own servers and provide customized software services to clients through the Internet. However, new versions often need to be released during the use of SaaS services, and the service update method in traditional technologies will affect the normal use of clients. Summary of the invention

[0003] The purpose of this application is to solve at least one of the above-mentioned technical defects, especially the technical defects in the prior art that affect the use of the client.

[0004] In a first aspect, an embodiment of the present application provides a service update method, which is applied to a client, and the method includes: in response to a first switching instruction, switching the access object of a request to access a backend service from a first formal service to a first grayscale service; the first switching instruction is issued by the management server when the first grayscale service test passes, the first formal service is the formal backend service of the current version, and the first grayscale service is an updated version of the grayscale backend service; in response to a second switching instruction, switching the access object of a request to access the backend service from the first grayscale service to a second formal service; the second switching instruction is issued by the management server when updating the first formal service version to the second formal service, and the second formal service is an updated version of the formal backend service.

[0005] In one of the embodiments, before responding to the first switching instruction, it also includes: reading a first static resource, and displaying a first front-end page based on the first static resource; the first front-end page is a front-end page of the current version; based on the operation received by the first front-end page, generating an access back-end service request for accessing the first formal service.

[0006] In one of the embodiments, in response to a first switching instruction, the access object of the backend service request is switched from the first formal service to the first grayscale service, and also includes: in response to the first switching instruction, determining whether the operation performed in the first front-end page is a refreshable operation; if not, keeping the first front-end page displayed until the operation performed is a refreshable operation, refreshing the page and reading the second static resource, and displaying the second front-end page according to the second static resource; the second front-end page is an updated version of the front-end page; if so, directly refreshing the page and reading the second static resource, and displaying the second front-end page according to the second static resource.

[0007] In one of the embodiments, the client is in communication connection with a front-end proxy server, and the front-end proxy server is used to store the first static resource and / or the second static resource, and return the corresponding static resource according to the resource reading request of the client.

[0008] In one embodiment, the front-end proxy server is communicatively connected to the back-end proxy server; the front-end proxy server is used to forward the back-end service access request to the back-end proxy server, and the back-end proxy server is used to select an access object for service access according to the back-end service access request.

[0009] In one embodiment, if the user of the client is a tester, before responding to the first switching instruction, the method further includes:

[0010] Read the grayscale static resources, and display the third front-end page according to the grayscale static resources; the third front-end page is an updated version of the grayscale front-end page;

[0011] According to the operation received by the third front-end page, an access back-end service request for accessing the first grayscale service is generated.

[0012] In the second aspect, an embodiment of the present application provides a service update method, which is applied to a management server, and the method includes: while the first formal service is online, launching a first grayscale service; the first formal service is the formal backend service of the current version, and the first grayscale service is the grayscale backend service of an updated version; when the test of the first grayscale service passes, sending a first switching instruction to the client; the first switching instruction is used to instruct the client to switch the access object of the backend service request from the first formal service to the first grayscale service; performing a version update on the first formal service; when the first formal service is updated to the second formal service, sending a second switching instruction to the client; the second formal service is the formal backend service of an updated version, and the second switching instruction is used to instruct the client to switch the access object of the backend service request from the first grayscale service to the second formal service.

[0013] In a third aspect, an embodiment of the present application provides a service update device, which is applied to a client, and the device includes: a first response module, which is used to switch the access object of the backend service request from the first formal service to the first grayscale service in response to a first switching instruction; the first switching instruction is issued by the management server when the first grayscale service test passes, the first formal service is the formal backend service of the current version, and the first grayscale service is an updated version of the grayscale backend service; a second response module, which is used to switch the access object of the backend service request from the first grayscale service to the second formal service in response to a second switching instruction; the second switching instruction is issued by the management server when updating the first formal service version to the second formal service, and the second formal service is an updated version of the formal backend service.

[0014] In a fourth aspect, an embodiment of the present application provides a computer device, comprising one or more processors and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by one or more processors, the steps of the service update method in any of the above embodiments are executed.

[0015] In a fifth aspect, an embodiment of the present application provides a storage medium, in which computer-readable instructions are stored. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the service update method in any of the above embodiments.

[0016] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:

[0017] Based on any of the above embodiments, during the process of updating the backend service version, the online and offline backend services are managed by the management server. Under the instruction of the management server, the client first temporarily transfers the traffic to the first grayscale service that has passed the grayscale test, and when the first formal service is updated to the second formal service, the traffic is switched back to the second formal service. This method ensures that there is no scenario in which the old version of the backend service is offline for no reason, causing the client to be unable to connect to any backend service, and the client will always have a backend service to which it can connect. At the same time, it also solves the problem that the client's token becomes invalid when the client is disconnected from the backend service for a long time, causing the client to exit without reason. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0019] Figure 1 This is an application scenario diagram of a service update method in one embodiment of the present application;

[0020] Figure 2 This is a flow chart of a service update method described from the perspective of a client in one embodiment of the present application;

[0021] Figure 3 This is an application scenario diagram of a service update method in another embodiment of the present application;

[0022] Figure 4 This is a flowchart of a service update method described from the perspective of a management server in one embodiment of the present application;

[0023] Figure 5 This is a flow chart of a service update method described from the perspective of multi-terminal interaction in one embodiment of the present application;

[0024] Figure 6 This is a diagram of the internal structure of a computer device in one embodiment of the present application. DETAILED DESCRIPTION

[0025] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0026] The service update method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the client 102 communicates with the back-end server 104 through the network, and the management server 106 can communicate with both the client 102 and the back-end server 104. Among them, the client 102 can be, but is not limited to, running on various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The back-end server 104 and the management server 106 can be implemented using independent servers or server clusters consisting of multiple servers.

[0027] The present application embodiment provides a service update method, which is applied to Figure 1 The client 102 shown in FIG. Figure 2 , the method includes steps S202 to S204.

[0028] S202: In response to a first switching instruction, the access object of the backend service request is switched from the first official service to the first grayscale service.

[0029] The first switching instruction is issued by the management server when the first grayscale service test passes. The first official service is the official backend service of the current version, and the first grayscale service is the grayscale backend service of the updated version. It can be understood that the request to access the backend service is a request issued by the client when it needs to use the service provided by the backend. The backend server generally encapsulates different backend services into corresponding interfaces. The client can select the required backend service to access according to the interface document and interface number. The client switches the access object of the backend service request to access the backend service by modifying the request header of the backend service request. Before the updated version of the backend service is launched, all client requests to access the backend service will be processed by the first official service. The updated version of the backend service needs to undergo grayscale testing to determine whether it can provide stable services. Therefore, the first grayscale service will be launched first, and the tester will test the first grayscale service. If there is a problem, the first grayscale service will be repaired until the first grayscale service passes the test. The first grayscale service passing the test indicates that it can provide stable services. At this time, the management server sends a first switching instruction to the client to instruct the client to transfer all traffic directed to the backend from the first official service to the first grayscale service, and the first grayscale service temporarily handles the client's request.

[0030] S204: In response to the second switching instruction, the access object of the backend service request is switched from the first grayscale service to the second official service.

[0031] The second switching instruction is issued by the management server when the first formal service version is updated to the second formal service, and the second formal service is the formal backend service of the updated version. It can be understood that after all the traffic of the client is transferred to the first grayscale service, the deployment unit of the first formal service will have no traffic access, and the management server can start to update the version of the first formal service. Based on the first grayscale service that has passed the test, the second formal service can be obtained. Based on the second formal service, the version is updated on the deployment unit of the first formal service. The specific method of version update can be: directly using the second formal service to replace the first formal service on the deployment unit of the first formal service, or the first formal service can be differentially updated according to the second formal service. Since the deployment unit of the grayscale backend service is temporarily used for grayscale testing, after completing the update on the deployment unit used to deploy the formal backend service, the client's traffic needs to be transferred back to access the formal backend service. Therefore, after determining that the first formal service version is updated to the second formal service, the management server sends a second switching instruction to the client to instruct the client to transfer all traffic directed to the backend from the first grayscale service back to the second formal service, and the second formal service stably handles the client's request.

[0032] Based on the service update method in this embodiment, during the backend service version update process, the on-line and off-line of the backend service are managed by the management server. Under the instruction of the management server, the client first temporarily transfers the traffic to the first grayscale service that has passed the grayscale test, and when the first formal service is updated to the second formal service, it switches the traffic back to the second formal service. This method ensures that there is no scenario where the old version of the backend service is offline for no reason, causing the client to be unable to connect to any backend service, and the client will always have a backend service that it can connect to. At the same time, it also solves the problem that the client's token becomes invalid when the client is disconnected from the backend service for a long time, causing the client to exit without reason.

[0033] In one embodiment, the entire system can be a structure with front-end and back-end separation, such as Figure 3As shown, the front-end proxy server is connected to the client for communication, and the back-end proxy server is connected to the front-end proxy server and the back-end server for communication, respectively. The front-end proxy server is used to store static resources for building the front-end page, and is also used to forward the client's access to the back-end service request to the back-end proxy server. The back-end proxy server is used to select the access object for service access according to the access to the back-end service request. Since the client and the back-end server are under different domain names, reverse proxy can be performed through the back-end proxy server to achieve cross-domain access. The back-end proxy server can also be used for load balancing of service access. In a specific embodiment, the front-end proxy server can be an nginx server, and the back-end proxy server can expose each back-end service to the front-end proxy server through the ingress-nginx method.

[0034] In one embodiment, before responding to the first switching instruction, the method further includes:

[0035] 1) Read the first static resource, and display the first front-end page according to the first static resource. The first front-end page is the front-end page of the current version.

[0036] 2) Generate a backend service access request for accessing the first official service according to the operation received by the first front-end page.

[0037] It is understandable that if applied to Figure 3 In the architecture, the first static resource, such as HTML, CSS, JS, etc., can be read from the front-end proxy server, and the client can parse and render the first static resource to build the first front-end page. Before the updated version appears, ordinary users perform operations on the first front-end page. These operations can be classified into front-end operations and back-end operations. Specifically, the front-end operation can be performed normally without the back-end server providing data, such as sliding, scrolling and reading on the front-end page, and entering content in the input control of the front-end page. The data entered by the front-end operation can be cached in the front-end proxy server as static data. When the client is closed or refreshed, these cached static data can be read back from the front-end proxy server to prevent the loss of data previously entered by ordinary users. Back-end operations are operations that require data support returned by the back-end server, such as database queries, and application software deployed by SaaS service providers on their own services. When the user's operation is a back-end operation, an access back-end service request for accessing the first formal service will be generated to request the data required for the back-end operation from the back-end server.

[0038] In one embodiment, when an updated version of a service is released, if a matching front-end page is released together, the front-end page should also be updated on the front-end. Specifically, in response to the first switching instruction, the access object of the back-end service request is switched from the first official service to the first grayscale service, and further includes:

[0039] 1) In response to a first switching instruction, determining whether an operation performed in a first front page is a refreshable operation.

[0040] It can be understood that the refreshable operation here refers to the operation of refreshing the front-end page without losing data. In the architecture with front-end and back-end separation, the back-end operation generates the corresponding access back-end service request based on the content that the user has entered on the front-end. Since the input has been completed, page refresh will not have any effect. Therefore, the refreshable operation includes the back-end operation. The front-end operation can be divided into input operation and non-input operation based on whether the content is input. When the input operation is in progress, refreshing the front-end page may cause the loss of part of the input because the input has not been completed. Non-input operations, such as sliding pages, zooming pages, etc., are not related to data, so there will be no data loss problem. Therefore, the refreshable operation can also include non-input operations in the front-end operation.

[0041] 2) If not, the first front-end page is displayed until the operation performed is a refreshable operation, in which case the page is refreshed and the second static resource is read, and the second front-end page is displayed according to the second static resource.

[0042] The second front-end page is an updated version of the front-end page. It is understandable that the version update of the front-end page requires page refresh on the front end, and reads new static resources when refreshing to rebuild the front-end page. However, if the operation being performed on the front end is not a refreshable operation, refreshing the page will result in data loss, such as the loss of content that the user has not completed entering as mentioned above, and a senseless version update cannot be achieved. Therefore, when faced with this situation, do not refresh the page first, keep displaying the first front-end page, wait for the user to complete the non-refreshable operation on the first front-end page, and switch to a refreshable operation. At this time, by sending a first resource acquisition request to the front-end proxy server to read the second static resource from the front-end proxy server, and construct a second front-end page based on the second static resource, and then after the refresh is completed, display the second front-end page on the front end to achieve a senseless version update of the front end.

[0043] 3) If yes, directly refresh the page and read the second static resource, and display the second front-end page according to the second static resource.

[0044] If the front-end is performing a refreshable operation, refreshing the page will not have a negative impact on the user. Therefore, the page can be refreshed directly. During the refresh process, a second resource acquisition request is sent to the front-end proxy server to read the second static resource from the front-end proxy server, and a second front-end page is constructed based on the second static resource. After the refresh is completed, the second front-end page is displayed on the front-end to achieve a seamless version update of the front-end.

[0045] The above embodiment is for ordinary users to update the version without feeling during the use of the service, but the tester also needs to use the client to perform grayscale testing on the first grayscale service. Specifically, in one embodiment, if the user of the client is a tester, before responding to the first switching instruction, it also includes:

[0046] 1) Read the grayscale static resources and display the third front-end page based on the grayscale static resources.

[0047] The third front-end page is an updated version of the grayscale front-end page. It is understandable that identity information can be set on the login account used to log in to the client, and the client can distinguish between testers and ordinary users through identity information. For testers, the front-end and back-end can be tested together during the grayscale test, so an updated version of the grayscale front-end page, that is, the third front-end page, should be shown to them to test the third front-end page. During the test process, if there is a problem with the third front-end page, it can be modified in time, and finally the second front-end page can be obtained based on the third front-end page that has passed the test.

[0048] 2) Generate a backend service access request for accessing the first grayscale service based on the operation received by the third front-end page.

[0049] It can be understood that at this time, ordinary users will access the first official service, and this embodiment will divert the access traffic of the tester and guide the access traffic of the tester to the first grayscale service, so that the tester can test the first grayscale service. During the test process, if there is a problem with the first grayscale service, it can be modified in time, and finally the second official service can be obtained based on the first grayscale service that has passed the test.

[0050] The service update method provided in the embodiment of the present application can be applied to Figure 1 106 in the management server, see Figure 4 , the method includes steps S402 to S408.

[0051] S402, while the first official service is online, the first grayscale service is launched.

[0052] The first official service is the official backend service of the current version, and the first grayscale service is the grayscale backend service of the updated version. It is understandable that before the updated version of the backend service is officially released, grayscale testing is required. During the grayscale testing process, the first official service and the first grayscale service will exist at the same time. Based on the user's identity, the client sets the access object of the ordinary user's access to the backend service to the first official service, and the access object of the tester's access to the backend service to the first grayscale service. In this way, during the grayscale testing process, ordinary users still have backend services available, and testers can also perform grayscale testing on the updated version of the backend service at the same time.

[0053] S404: When the test of the first grayscale service passes, send a first switching instruction to the client.

[0054] The first switching instruction is used to instruct the client to switch the access object of the backend service request from the first official service to the first grayscale service. When it is determined that the test of the first grayscale service has passed, the first grayscale service can be used to temporarily provide an updated version of the backend service for ordinary users. By sending the first switching instruction to the client, the client switches the access object of the backend service request of ordinary users from the first official service to the first grayscale service.

[0055] S406: Update the version of the first official service.

[0056] After directing the access traffic of ordinary users to the first grayscale service, the first official service can be updated. Based on the first grayscale service that has passed the test, the second official service can be obtained. Based on the second official service, the version is updated on the deployment unit of the first official service. The specific method of version update can be: directly using the second official service to replace the first official service on the deployment unit of the first official service, or performing a differential update on the first official service based on the second official service.

[0057] S408: When the first official service version is updated to the second official service, a second switching instruction is sent to the client.

[0058] The second official service is an updated version of the official backend service, and the second switching instruction is used to instruct the client to switch the access object of the backend service request from the first grayscale service to the second official service. It can be understood that since the deployment unit of the grayscale backend service is temporarily used for grayscale testing, after the update is completed on the deployment unit used to deploy the official backend service, the client's traffic needs to be transferred back to access the official backend service. Therefore, after determining that the first official service version is updated to the second official service, the management server sends a second switching instruction to the client to instruct the client to transfer all traffic directed to the backend from the first grayscale service back to the second official service, and the second official service will stably process the client's requests.

[0059] From the perspective of multi-terminal interaction, see Figure 5 , the service update method includes steps S502 to S512.

[0060] S502, when the first official service is online, the management server launches the first grayscale service.

[0061] The first official service is the official backend service of the current version, and the first grayscale service is the grayscale backend service of the updated version.

[0062] S504: When the test of the first grayscale service passes, the management server sends a first switching instruction to the client.

[0063] S506: In response to the first switching instruction, the client switches the access object of the backend service request from the first official service to the first grayscale service.

[0064] S508: The management server updates the version of the first official service.

[0065] S510: When the first official service is updated to the second official service, the management server sends a second switching instruction to the client.

[0066] The second official service is an updated version of the official backend service.

[0067] S512: In response to the second switching instruction, the client switches the access object of the backend service request from the first grayscale service to the second official service.

[0068] For the description of steps S502 to S512 , please refer to the above.

[0069] An embodiment of the present application provides a service update device, which is applied to a client, and the device includes a first response module and a second response module. The first response module is used to switch the access object of the backend service request from the first formal service to the first grayscale service in response to a first switching instruction. The first switching instruction is issued by the management server when the first grayscale service test passes, the first formal service is the formal backend service of the current version, and the first grayscale service is the grayscale backend service of the updated version. The second response module is used to switch the access object of the backend service request from the first grayscale service to the second formal service in response to the second switching instruction. The second switching instruction is issued by the management server when the first formal service version is updated to the second formal service, and the second formal service is the formal backend service of the updated version.

[0070] In one embodiment, the first response module further includes a display unit. The display unit is used to read the first static resource and display the first front-end page according to the first static resource. The first front-end page is the front-end page of the current version. According to the operation received by the first front-end page, an access back-end service request for accessing the first formal service is generated.

[0071] In one implementation, the display unit is further used to respond to the first switching instruction and determine whether the operation performed in the first front-end page is a refreshable operation. If not, the first front-end page is displayed until the operation performed is a refreshable operation, the page is refreshed and the second static resource is read, and the second front-end page is displayed according to the second static resource. The second front-end page is an updated version of the front-end page.

[0072] The embodiment of the present application provides a computer device, including one or more processors and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the one or more processors, the steps of the service update method in any of the above embodiments are executed. If yes, the page is refreshed directly and the second static resource is read, and the second front-end page is displayed according to the second static resource.

[0073] In one embodiment, the service update device further includes a grayscale test module. If the user of the client is a tester, before responding to the first switching instruction, the grayscale test module is used to read the grayscale static resources and display the third front-end page according to the grayscale static resources. According to the operation received by the third front-end page, an access back-end service request for accessing the first grayscale service is generated.

[0074] An embodiment of the present application provides a storage medium, in which computer-readable instructions are stored. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the service update method in any of the above embodiments.

[0075] In one embodiment, the present application further provides a computer device having computer-readable instructions stored therein. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the service update method in any of the above embodiments.

[0076] Indicatively, Figure 6 As shown, Figure 6 This is a schematic diagram of the internal structure of a computer device provided in an embodiment of the present application. The computer device 300 may be provided as a server. Figure 6The computer device 300 includes a processing component 302, which further includes one or more processors, and a memory resource represented by a memory 301, for storing instructions executable by the processing component 302, such as an application. The application stored in the memory 301 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 302 is configured to execute instructions to perform the service update method of any of the above embodiments.

[0077] The computer device 300 may further include a power supply component 303 configured to perform power management of the computer device 300, a wired or wireless network interface 304 configured to connect the computer device 300 to a network, and an input / output (I / O) interface 305. The computer device 300 may operate based on an operating system stored in the memory 301, such as Windows Server TM, Mac OS X TM, Unix TM, Linux TM, Free BSD TM, or the like.

[0078] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0079] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0080] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The various embodiments can be combined as needed, and the same or similar parts can refer to each other.

[0081] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A service update method, characterized in that: Applied to a client, the method comprises: In response to a first switching instruction, the access object of all backend service access requests is switched from the first official service to the first grayscale service; the first switching instruction is issued by the management server when the grayscale test of the first grayscale service passes, the first official service is the official backend service of the current version, and when there is no traffic access to the deployment unit of the first official service, the management server starts to perform version update on the first official service, the first grayscale service is the grayscale backend service of the updated version, and the deployment unit of the grayscale backend service is for temporary use; In response to a second switching instruction, the access object of all the access backend service requests is switched from the first grayscale service to the second formal service; the second switching instruction is issued by the management server when updating the first formal service version to the second formal service, and the second formal service is the formal backend service of the updated version.

2. The method according to claim 1, characterized in that Before responding to the first switching instruction, the method further includes: Reading a first static resource, and displaying a first front-end page according to the first static resource; the first front-end page is the front-end page of the current version; The access backend service request for accessing the first official service is generated according to the operation received by the first front-end page.

3. The method according to claim 2, characterized in that The method of switching the access object of the backend service request from the first official service to the first grayscale service in response to the first switching instruction also includes: In response to the first switching instruction, determining whether the operation performed in the first front page is a refreshable operation; If not, the first front-end page is kept displayed until the operation is the refreshable operation, the page is refreshed and the second static resource is read, and the second front-end page is displayed according to the second static resource; the second front-end page is the updated version of the front-end page; If so, directly refresh the page and read the second static resource, and display the second front-end page according to the second static resource.

4. The method according to claim 3, characterized in that The client is in communication connection with a front-end proxy server, and the front-end proxy server is used to store the first static resource and / or the second static resource and return the corresponding static resource according to the resource reading request of the client.

5. The method according to claim 4, characterized in that The front-end proxy server is communicatively connected to the back-end proxy server; the front-end proxy server is used to forward the back-end service access request to the back-end proxy server, and the back-end proxy server is used to select the access object for service access according to the back-end service access request.

6. The method according to claim 1, characterized in that If the user of the client is a tester, before responding to the first switching instruction, the method further includes: Reading grayscale static resources, and displaying a third front-end page according to the grayscale static resources; the third front-end page is the updated version of the grayscale front-end page; The access backend service request for accessing the first grayscale service is generated according to the operation received by the third front-end page.

7. A service update method, characterized in that: Applied to a management server, the method comprises: When the first official service is online, the first grayscale service is launched; the first official service is the official backend service of the current version, the first grayscale service is the grayscale backend service of the updated version, and the deployment unit of the grayscale backend service is for temporary use; When the grayscale test of the first grayscale service passes, a first switching instruction is sent to the client; the first switching instruction is used to instruct the client to switch the access object of all backend service access requests from the first formal service to the first grayscale service; When the deployment unit of the first official service has no traffic access, performing a version update on the first official service; When the first official service version is updated to the second official service, a second switching instruction is sent to the client; the second official service is the official backend service of the updated version, and the second switching instruction is used to instruct the client to switch the access objects of all the backend service access requests from the first grayscale service to the second official service.

8. A service updating device, characterized in that: Applied to a client, the device comprises: A first response module is used to respond to a first switching instruction to switch the access object of all backend service access requests from the first official service to the first grayscale service; the first switching instruction is issued by the management server when the first grayscale service test passes, the first official service is the official backend service of the current version, and when the deployment unit of the first official service has no traffic access, the management server starts to update the version of the first official service, the first grayscale service is the grayscale backend service of the updated version, and the deployment unit of the grayscale backend service is for temporary use; A second response module is used to switch the access object of all the access backend service requests from the first grayscale service to the second formal service in response to a second switching instruction; the second switching instruction is issued by the management server when updating the first formal service version to the second formal service, and the second formal service is the formal backend service of the updated version.

9. A computer device, characterized in that: The system comprises one or more processors and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the one or more processors, the service update method according to any one of claims 1 to 6 or the steps of the service update method according to claim 7 are executed.

10. A storage medium, characterized in that: The storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by one or more processors, the one or more processors execute the service updating method according to any one of claims 1 to 6 or the steps of the service updating method according to claim 7.

Citation Information

Patent Citations

  • System and method for improving the efficiency, comfort, and / or reliability in operating systems, such as for example windows

    CA2653299A1

  • Server environment switching method and device and electronic equipment

    CN110351134A

  • Gray release method and device

    CN114138325A

  • Data processing method and device based on micro front end, medium and computing equipment

    CN114416169A

  • Gray scale upgrading method and device of block chain service platform, and electronic equipment

    CN114816493A