Application program updating method, device, system and electronic device

By decoupling the application and language content management system in the service mesh container and obtaining and updating the target language, the problem of high cost and service coupling in the application text language update process is solved, and independent upgrades of the application and service processes are achieved. Reduces update costs and memory usage.

CN114924768BActive Publication Date: 2024-12-10ALIBABA (CHINA) CO LTD
View PDF 12 Cites 0 Cited by

Patent Information

Application Number
CN202210529849.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-16
Publication Date
2024-12-10
Estimated Expiration
2042-05-16

AI Technical Summary

Technical Problem

In the prior art, in the text language update process of application, there is a problem of excessive use of useless memory space caused by high costs and service coupling, and the upgrade iteration of service processes has an impact on the application, increasing the update cost.

Method used

By decoupling the application and language content management system in the service mesh container, obtaining the client's language change instructions and obtaining the target language from the service mesh container, updating the application text based on the target language, realizing the independence of the application and the service process Upgrade to reduce update costs.

Benefits of technology

It effectively reduces the cost of application updates, avoids excessive use of useless memory space of the service, realizes the independence of the service process and the application, and reduces the impact of service process upgrade on the application.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114924768B_ABST
    Figure CN114924768B_ABST
Patent Text Reader

Abstract

The present application discloses an application updating method, device, system and electronic device. The method is applied in a server, the server includes an application container and a service grid container, the application container is provided with the program code of the target application, the service grid container is provided with a service process, the service process obtains the text language from the language content management system, the method includes: obtaining a language change instruction sent by a client to change the language of the text in the target application; obtaining a target language corresponding to the language change instruction from the service grid container, the target language is the text language obtained by the service process from the language content management system and stored in the service grid container; based on the target language, the text in the target application is changed to obtain an updated target application. The present application solves the technical problem of high application update cost when updating the text language of an application in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of application management, and more specifically, to a method, device, system and electronic device for updating an application program. Background Art

[0002] Multilingual content management is widely used in international applications. Existing application products can manage the languages ​​in the application products based on the language content management system. The existing language content management system uses a centralized system to uniformly store the texts in the application products and provides the corresponding text translation capabilities. The translated texts are then synchronized to the application for use to meet the language needs of different users.

[0003] However, in the prior art, in the process of distributing text data packets and synchronizing changed texts, under the traditional microservice development model, the upgrade and change of functions require the access party to invest in transformation, and the coupling of services also brings other maintenance problems to the application. For example, in the prior art, the access party is required to connect to the application programming interface by itself and design corresponding cache and disaster recovery solutions, thereby increasing the cost of application updates. For another example, the prior art also needs to provide different client versions for different development languages, and the iterative cost of version fragmentation upgrades is high. Moreover, there is coupling with the application container, which easily causes the problem of excessive useless memory space of the service during text synchronization.

[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present application provide a method, device, system and electronic device for updating an application program, so as to at least solve the technical problem of high application update cost existing in the prior art when updating the text language of the application program.

[0006] According to one aspect of an embodiment of the present application, a method for updating an application is provided, which is applied to a server, wherein the server includes at least an application container and a service grid container, wherein the application container is provided with a program code corresponding to a target application, and the service grid container is provided with a service process, wherein the service process is used to obtain a text language from a language content management system, and the method includes: obtaining a language change instruction sent by a client, wherein the language change instruction is used to change the language of text in the target application; obtaining a target language corresponding to the language change instruction from the service grid container, wherein the target language is a text language obtained by the service process from the language content management system and stored in the service grid container; and changing the language of the text in the target application in the application container based on the target language to obtain an updated target application.

[0007] According to another aspect of an embodiment of the present application, a method for updating an application is also provided, comprising: responding to a language change instruction for changing the language of a text of a target application; sending a language change instruction to a server, and obtaining a target language returned by the server based on the language change instruction, wherein the server comprises at least an application container and a service grid container, wherein the application container is provided with a program code corresponding to the target application, and wherein the service grid container is provided with a service process, wherein the service process is used to obtain the target language from a language content management system based on the language change instruction; and displaying an updated target application, wherein the updated target application is the target application after the target language is loaded.

[0008] According to another aspect of an embodiment of the present application, a method for updating an application is also provided, including: displaying a target application on a graphical user interface, wherein the language corresponding to the text of the target application is a first language; displaying the target application on a graphical user interface, wherein the language corresponding to the text of the target application is the first language; and displaying the target application after the language is changed on the graphical user interface, wherein the language corresponding to the target application after the language is changed is a second language.

[0009] According to another aspect of an embodiment of the present application, there is also provided an application updating device, which is applied to a server. The server includes at least an application container and a service grid container. The application container is provided with a program code corresponding to a target application. The service grid container is provided with a service process. The service process is used to obtain a text language from a language content management system. The device includes: a first acquisition module, which is used to obtain a language change instruction sent by a client, wherein the language change instruction is used to change the language of the text in the target application; a second acquisition module, which is used to obtain a target language corresponding to the language change instruction from the service grid container, wherein the target language is a text language obtained by the service process from the language content management system and stored in the service grid container; and an update module, which is used to change the language of the text in the target application in the application container based on the target language to obtain an updated application.

[0010] According to another aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned application program update method when running.

[0011] According to another aspect of an embodiment of the present application, an electronic device is also provided, which includes one or more processors; a memory for storing one or more programs, which, when the one or more programs are executed by the one or more processors, enables the one or more processors to implement the method for running the programs, wherein the programs are configured to execute the above-mentioned application program update method at runtime.

[0012] According to another aspect of an embodiment of the present application, there is also provided an application updating system, comprising: a processor; and a memory connected to the processor and used to store executable instructions of the processor; wherein the processor is configured to execute instructions to implement the application updating method as described above.

[0013] In an embodiment of the present application, a method for decoupling an application from a language content management system through a service grid container is adopted. After obtaining a language change instruction sent by a client for changing the language of text in a target application, a target language corresponding to the language change instruction is obtained from the service grid container, and the language of the text in the target application in the application container is changed based on the target language to obtain an updated target application, wherein the target language is the text language obtained by the service process from the language content management system and stored in the service grid container.

[0014] In the above process, the gridding of the client is realized by setting up a service grid container, the application and the language content management system are isolated, the isolation and protection of the data resources between the application and the language content management system are realized, and the problem of excessive useless memory space occupied by the service during text synchronization is avoided. In addition, the text language obtained from the language content management system is stored in the service grid container. In the process of updating the text language of the target application, the corresponding target language is directly obtained from the service grid container. Moreover, since there is isolation between containers, the upgrade of the service process in the service grid container is independent of the application, thereby avoiding the impact of the upgrade iteration of the service process on the application in the prior art and reducing the update cost of the application.

[0015] It can be seen that the solution provided by the present application achieves the purpose of changing the text of the target application, thereby realizing the technical effect of reducing the update cost of the application, and further solving the technical problem of high application update cost when updating the text language of the application in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0017] Figure 1 is a hardware structure block diagram of an electronic device for implementing an application program update method according to an embodiment of the present application;

[0018] Figure 2 is a schematic diagram of an optional electronic device according to an embodiment of the present application;

[0019] Figure 3 is a flow chart of a method for updating an application according to an embodiment of the present application;

[0020] Figure 4 is a schematic diagram of an optional graphical user interface of a client according to an embodiment of the present application;

[0021] Figure 5 is a schematic diagram of an optional container isolation according to an embodiment of the present application;

[0022] Figure 6 is a schematic diagram of an optional graphical user interface of a client according to an embodiment of the present application;

[0023] Figure 7 is an optional system interaction schematic diagram according to an embodiment of the present application;

[0024] Figure 8 is a schematic diagram of an optional container isolation mechanism according to an embodiment of the present application;

[0025] Fig. 9 is a schematic diagram of an optional memory access according to an embodiment of the present application;

[0026] Fig.10 is a flow chart of a method for updating an application according to an embodiment of the present application;

[0027] Fig.11 is a flow chart of a method for updating an application according to an embodiment of the present application;

[0028] Fig.12 is a schematic diagram of an application updating device according to an embodiment of the present application;

[0029] Fig.13 It is a structural block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0030] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings 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 should fall within the scope of protection of the present application.

[0031] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0032] Example 1

[0033] According to an embodiment of the present application, an embodiment of a method for updating an application is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0034] The method embodiment provided in the first embodiment of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 FIG. 1 shows a hardware structure block diagram of an electronic device (or mobile device) for implementing an application program update method. Figure 1 As shown, the electronic device 10 (or mobile device 10) may include one or more (102a, 102b, ..., 102n are used to illustrate) processors (the processor may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (BUS) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 1The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.

[0035] It should be noted that the one or more processors and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the electronic device 10 (or mobile device). As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).

[0036] The memory 104 can be used to store software programs and modules of application software, such as program instructions / data storage devices corresponding to the updating method of the application program in the embodiment of the present application. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, realizing the updating method of the above-mentioned application program. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the electronic device 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0037] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the electronic device 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0038] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the electronic device 10 (or mobile device).

[0039] Figure 1The hardware structure block diagram shown can be used not only as an exemplary block diagram of the above-mentioned electronic device 10 (or mobile device), but also as an exemplary block diagram of the above-mentioned server. In an optional embodiment, Figure 2 The block diagram shows the use of the above Figure 1 The electronic device 10 (or mobile device) shown is an embodiment of a transmitting end. Figure 2 As shown, the electronic device 10 (or mobile device) can be connected to one or more servers 208 via a data network connection or electronic connection. In an optional embodiment, the above-mentioned electronic device 10 (or mobile device) can be any mobile computing device, etc. The data network connection can be a local area network connection, a wide area network connection, an Internet connection, or other types of data network connections. The electronic device 10 (or mobile device) can be executed to connect to a network service performed by a server (e.g., a security server) or a group of servers. The network server 210 is a network-based user service, such as a social network, cloud resources, email, online payment or other online applications.

[0040] It should be noted that, in this embodiment, the server can execute the method provided in this embodiment, wherein the server at least includes an application container and a service grid container, the application container is provided with a program code corresponding to the target application, and the service grid container is provided with a service process, and the service process is used to obtain the text language from the language content management system.

[0041] Under the above operating environment, this application provides Figure 3 The update method of the application shown. Figure 3 is a flowchart of a method for updating an application according to Embodiment 1 of the present application, such as Figure 3 As shown, the method comprises the following steps:

[0042] Step S302: obtaining a language change instruction sent by the client, wherein the language change instruction is used to change the language of the text in the target application.

[0043] In step S302, the client is a client corresponding to the target application, wherein the text in the target application is displayed in a default language in the graphical user interface of the client, for example, in Figure 4 In the graphical user interface of the client shown in FIG. 1 , the text in the target application is displayed in Chinese. The text in the target application may be, but is not limited to, a title, a link, a web page content, etc. For example, in Figure 4 In the example, the texts in the target application are “content recommendation”, “video”, “featured topics”, “hot topics”, “digitalization”, “interests and skills” and other texts.

[0044] Optionally, a language change control is provided on the client. After the user clicks the language change control and selects the target language from the drop-down list of the language type corresponding to the language change control, the client automatically generates a language change instruction and sends the language change instruction to the server so that the server changes the language of the target application. In the process of generating the language change instruction, the client can encapsulate the relevant information of the target language selected by the user into the language change instruction. The relevant information can include but is not limited to the language identifier corresponding to the target language, and the language identifier can be the code of the language type corresponding to the target language.

[0045] Step S304: acquiring a target language corresponding to the language change instruction from the service grid container, wherein the target language is a text language acquired by the service process from the language content management system and stored in the service grid container.

[0046] In step S304, the language content management system may be, but is not limited to, a Medusa system. The service grid container may enable network, traffic management, and service governance to be sunk to the infrastructure and fully decoupled from the application, wherein the text language is stored in the service grid container.

[0047] Optional, Figure 5 A schematic diagram of an optional container isolation is shown. Figure 5 In the application container, the target application is set; the service grid container is set with the service process. Figure 5 It can be seen that the application container and the service grid container are isolated from each other.

[0048] It should be noted that, in actual applications, the application container can obtain the target language corresponding to the language change instruction from the service grid container without obtaining the target language from the language content management system. That is, the service grid container realizes the isolation between the target application and the language content management system, thereby avoiding the coupling between the fat client and the target application in the prior art, and the problem of low efficiency of the target application startup caused by synchronizing the text language from the language content management system when the target application starts.

[0049] In addition, since the application container and the service grid container are isolated from each other, the memory used by the target application and the memory used by the service process are independent of each other. Therefore, when the service process in the service grid container is upgraded, or the text language in the service grid container is changed, only the memory corresponding to the service process will be used, and the application container will not be affected. This achieves the independence of the upgrade of the service process and the target application, avoids the version fragmentation problem in the prior art that the iterative upgrade of the rich client requires the cooperation of the business party to upgrade, and reduces the upgrade cost of the service process.

[0050] Step S306: change the language of the text in the target application in the application container based on the target language to obtain an updated target application.

[0051] In step S306, after obtaining the target language from the service grid container, the application container can update the target application to change the text language in the target application. For example, if the target language is English, the text in the target application will be changed to English. Figure 4 The graphical user interface shown changes to Figure 6 The graphical user interface shown.

[0052] Based on the scheme defined in the above steps S302 to S306, it can be known that in an embodiment of the present application, a method of decoupling an application from a language content management system through a service grid container is adopted. After obtaining a language change instruction sent by a client for changing the language of a text in a target application, a target language corresponding to the language change instruction is obtained from the service grid container, and the language of the text in the target application in the application container is changed based on the target language to obtain an updated target application, wherein the target language is a text language obtained by the service process from the language content management system and stored in the service grid container.

[0053] It is easy to notice that by setting up a service grid container to achieve the gridding of the client, the application and the language content management system are isolated, the isolation and protection of the data resources between the application and the language content management system are achieved, and the problem of excessive useless memory space occupied by the service during text synchronization is avoided. In addition, the service grid container stores the text language obtained from the language content management system. In the process of updating the text language of the target application, the corresponding target language is directly obtained from the service grid container. Moreover, since there is isolation between containers, the upgrade of the service process in the service grid container is independent of the application, thereby avoiding the impact of the upgrade iteration of the service process on the application in the prior art and reducing the update cost of the application.

[0054] It can be seen that the solution provided by the present application achieves the purpose of changing the text of the target application, thereby realizing the technical effect of reducing the update cost of the application, and further solving the technical problem of high application update cost when updating the text language of the application in the prior art.

[0055] In an optional embodiment, when detecting that the target application is started for the first time, the server controls the application container and the service grid container to start simultaneously. Figure 7 The system interaction diagram shown in Figure 1 is as follows: Figure 7 The diagram shows the deployment of application containers and service grid containers in multiple servers, as well as the interaction between the client and the language content management system. Figure 7 It can be seen that the server is equipped with an application container and a service grid container, the service grid container is mounted on the application container, the application is equipped with the program code corresponding to the target application, and the service grid container is equipped with a service process, which can realize function point expansion, metadata storage, and synchronization of full files or incremental files. In addition, the application container and the service grid container communicate through the application programming interface, and the two application programming interfaces communicate through the remote procedure call system (i.e., gRPC), that is, the application container and the service grid container communicate through the remote procedure call system. In addition, the application container and the service grid container can also communicate through HTTP 2.0 (Hypertext Transfer Protocol 2.0).

[0056] It should be noted that the application programming interface between the application container and the service grid container can be a lightweight application programming interface, which can enable users to easily implement development in multiple languages. In addition, when the target application is started, the service process in the service grid container is started synchronously with the target application in the application container, but the startup of the service process is independent of the startup of the target application, thereby avoiding the high upgrade cost problem in the prior art due to the mutual coupling between the target application and the service process.

[0057] Further, after the control service grid container is started, the server controls the service grid container to poll the language content management system, obtains the text resource package and the metadata corresponding to the text resource package from the language content management system, and then controls the service grid container to perform integrity detection on the text resource package based on the metadata to obtain a detection result. Wherein, when the detection result indicates that the text resource package is in a complete state, the server controls the service grid container to parse the text resource package to obtain the target language, and stores the target language in the memory of the service grid container. Wherein, the above detection result is one of the following: a complete state and an incomplete state.

[0058] Optional, such as Figure 7 As shown, the service grid container obtains the text resource package from the language content management system through the application programming interface in a long polling manner. The language content management system sends the source file corresponding to the text resource package and the metadata corresponding to the text resource package according to the request of the service grid container. After receiving the metadata, the service grid container performs integrity detection on the text resource package based on the metadata, wherein the metadata contains relevant information of the text resource package, for example, the file identifier and file size corresponding to the text resource package. The service grid container can detect whether the file identifier and file size of the text resource package are the same as the metadata. If they are the same, the text resource package is considered to be in a complete state, otherwise, the text resource package is considered to be in an incomplete state.

[0059] When determining that the text resource package is in a complete state, the server reversely parses the text resource package to obtain the target language, and loads the resource data corresponding to the target language into the heap memory corresponding to the service grid container, thereby completing the startup of the service grid container.

[0060] It should be noted that the server will only start successfully and be able to normally handle external business traffic after the target application in the application container and the service process in the service grid container have all been started. For example, the server can receive user client-based query instructions after the target application in the application container and the service process in the service grid container have all been started.

[0061] In addition, it should be noted that Figure 7 As shown, the administrator can update the language and / or text in the language content management system. When adding text to the language content management system, the administrator can enter the newly added text into the language content management system, translate the newly added text based on the language content management system, and then generate a source file corresponding to the newly added text. After receiving the data sending request from the service grid container, the language content management system can send the source file and the metadata corresponding to the source file to the service grid container.

[0062] In an optional embodiment, after receiving the language change instruction sent by the client, the server obtains the target language corresponding to the language change instruction from the service grid container. Specifically, the server detects whether the target language corresponding to the language change instruction exists in the service grid container, and when the target language exists in the service grid container, obtains the target language from the service grid container; when the target language does not exist in the service grid container, the server controls the service grid container to obtain the target language from the language content management system, and stores the target language in the service grid container, so that the application container obtains the target language from the service grid container.

[0063] Optional, Figure 8 shows an alternative container isolation mechanism, consisting of Figure 8 It can be seen that the application container and the service grid container are isolated from each other, and the application container and the service grid container communicate with each other through gRPC. The application container is provided with a target application, which can implement a remote monitoring proxy service, which stores a resource sequence and has a certain disaster recovery mechanism. The service grid container is provided with remote monitoring software, which can initialize the service grid container. It also has a listener and a refresh thread to monitor the service requests sent by the application container. In addition, the service grid container is also provided with a timer scheduler, and the timer scheduler is provided with a collection thread to collect metadata issued by the language content management system.

[0064] It should be noted that, since the memory in the service grid container stores the text language, the application container can directly obtain the target language from the heap memory of the service grid container. When the target language requested by the application container is not stored in the heap memory of the service grid container, the service grid container obtains the target language from the language content management system.

[0065] In addition, when an abnormality is detected in the service grid container, the server loads the text language stored in the service grid container into the local memory of the server, and controls the target application in the application container to load the target language in the local memory of the server into the memory of the application container, and changes the language of the text of the target application based on the target language.

[0066] Optional, in Figure 8 In the example, heap memory 1 is set in the application container, heap memory 2 is set in the service grid container, and the hard disk is set in the local server. When the service grid container sends an exception, for example, the operation logic of the service process in the service grid container is abnormal, or the communication between the service grid container and the application container is abnormal, the data in the heap memory of the service grid container will be loaded into the hard disk of the server, so that the application programming interface in the application container can obtain the text language from the hard disk of the server and load the text language into the heap memory of the application container to improve the stability of the application programming interface.

[0067] in addition, Fig. 9 A schematic diagram showing an optional memory access is shown, Fig. 9 It can be seen that the heap memory of the application container, the heap memory of the service grid container, and the server's hard disk are accessed in the form of key-value pairs. Fig. 9Among them, "Hello", "Bonjour", and "你好" respectively represent the texts corresponding to three different languages. en.K1, fr.K1, and zh.K1 respectively represent the identifiers corresponding to each language. K1 represents the text, and en, fr, and zh respectively correspond to different language types.

[0068] In another alternative embodiment, before changing the language of the text in the target application in the application container based on the target language to obtain the updated target application, the server also obtains the hot text language from the service mesh container and caches the hot text language in the memory of the application container, where the hot text language is a language with a usage frequency greater than a preset frequency.

[0069] It should be noted that since there is a process of serialization and deserialization for each request of the application programming interface, in this embodiment, a part of the heap memory is also set in the application container to cache the hot text language to improve the translation efficiency of the application programming interface.

[0070] In addition, when it is detected that the service process in the service mesh container is updated, the server determines the process version corresponding to the updated service process and declares the process version as a function in the application container.

[0071] It should be noted that since the application programming interface only exposes a simple key-value pair access method, if the service process undergoes a functional upgrade iteration, it does not involve an upgrade change of the application programming interface. It only needs to declare the process version corresponding to the service process through the IAC (Infrastructure as Code) file, without involving code changes, thereby reducing the upgrade iteration cost of the service process. It can also achieve hot updates of the service process without restarting the target application, further reducing the update cost of updating the service process.

[0072] As can be seen from the above content, with the popularization of cloud native, the cloud-oriented development model brings new challenges and requirements to the traditional development model. Services such as networks and traffic sink and are decoupled from application development. Some basic service components can also be decoupled from the application program through a grid-based solution, making the application program lighter and more convenient to iterate. Multilingual services can also be used as an internationalization basic ability to help applications quickly complete internationalization transformation through IAC declarations. In summary, the cloud native development model adopts a modular architecture, communicates through standard interfaces and protocols, grids the multilingual services provided by the language content management system, provides a more standard and convenient multilingual solution through the service process in the service mesh container, and provides a more stable service ability through resource isolation and protection between multiple containers, realizing independent upgrades from the application program.

[0073] It should be noted that cloud native redefines the entire software engineering process from the development state and delivery state, thereby promoting the upgrade of all systems related to the entire software engineering. Representative technologies of cloud native include containers, service mesh, microservices, immutable infrastructure and declarative application programming interfaces.

[0074] It can be seen that the solution provided by the present application realizes the sinking of internationalized content based on gridding, and at the same time provides a standard HTTP 2.0 interface to quickly realize the internationalization transformation of applications, interacts with applications through the HTTP 2.0 interface protocol, and defines a lightweight application programming interface, which can easily implement application programming interfaces in multiple development languages. Moreover, the solution provided by the present application can realize resource isolation between multiple containers, and the startup and update of multi-language service processes will not affect the application, that is, the upgrade of the service process is independent of the business, and the independent upgrade and iteration of the service process is realized. Finally, the solution provided by the present application realizes the gridding of multi-language rich clients, and through the isolation mechanism between containers and resources, the isolation and protection between the application and the service process are guaranteed, so that the change iteration cycle is decoupled from the application, and the independent hot update of the service process is realized.

[0075] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0076] Through the description of the above implementation methods, those skilled in the art can clearly understand that the update method of the application according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0077] Example 2

[0078] This application also provides Fig.10 In the embodiment, the client can execute the solution provided by the embodiment, wherein: Fig.10is a flowchart of a method for updating an application according to an embodiment of the present application, such as Fig.10 As shown, the method comprises the following steps:

[0079] Step S1002, responding to a language change instruction for changing the language of text of a target application.

[0080] In step S1002, the language change instruction includes at least relevant information of the target language selected by the user, and the relevant information may include but is not limited to the language identifier corresponding to the target language, and the language identifier may be the encoding of the language type corresponding to the target language, and the target language is the language corresponding to the text of the target application displayed on the graphical user interface of the desired client selected by the user, for example, Figure 6 in English.

[0081] Optionally, a language change control is provided on the client. After the user clicks the language change control and selects the target language from the drop-down list of the language type corresponding to the language change control, the client automatically generates a language change instruction and sends the language change instruction to the server so that the server changes the language of the target application.

[0082] Step S1004, sending a language change instruction to the server, and obtaining a target language returned by the server based on the language change instruction, wherein the server includes at least an application container and a service grid container, the application container is provided with a program code corresponding to the target application, the service grid container is provided with a service process, and the service process is used to obtain the target language from the language content management system based on the language change instruction.

[0083] In step S1004, after the client sends a language change instruction to the server, the server service grid container obtains the target language corresponding to the language change instruction, wherein the language content management system can be but is not limited to the Medusa system, and the service grid container can realize the sinking of network, traffic management and service governance to the infrastructure, which is fully decoupled from the application, wherein the service grid container stores the text language.

[0084] It should be noted that, in actual applications, the application container can obtain the target language corresponding to the language change instruction from the service grid container without obtaining the target language from the language content management system. That is, the service grid container realizes the isolation between the target application and the language content management system, thereby avoiding the coupling between the fat client and the target application in the prior art, and the problem of low efficiency of the target application startup caused by synchronizing the text language from the language content management system when the target application starts.

[0085] In addition, since the application container and the service grid container are isolated from each other, when the service process in the service grid container is upgraded, or the text language in the service grid container is changed, it will not affect the application container, thereby achieving the independence between the service process upgrade and the target application, avoiding the version fragmentation problem in the prior art due to the need for the business party to cooperate with the iterative upgrade of the rich client, and reducing the upgrade cost of the service process.

[0086] Step S1006, displaying the updated target application, wherein the updated target application is the target application after the target language is loaded.

[0087] In step S1006, after obtaining the target language from the service grid container, the application container can update the target application to change the text language in the target application. For example, if the target language is English, the text in the target application will be changed to English. Figure 4 The graphical user interface shown changes to Figure 6 The graphical user interface shown.

[0088] Based on the scheme defined in the above steps S1002 to S1006, it can be known that in an embodiment of the present application, a method of decoupling an application from a language content management system through a service grid container is adopted. After responding to a language change instruction for changing the language of a text of a target application, the client sends a language change instruction to the server, and obtains a target language returned by the server based on the language change instruction, and then displays an updated target application, wherein the updated target application is the target application after the target language is loaded, and the server includes at least an application container and a service grid container, wherein the application container is provided with a program code corresponding to the target application, and the service grid container is provided with a service process, and the service process is used to obtain the target language from the language content management system based on the language change instruction.

[0089] It is easy to notice that by setting up a service grid container to achieve the gridding of the client, the application and the language content management system are isolated, the isolation and protection of the data resources between the application and the language content management system are achieved, and the problem of excessive useless memory space occupied by the service during text synchronization is avoided. In addition, the service grid container stores the text language obtained from the language content management system. In the process of updating the text language of the target application, the corresponding target language is directly obtained from the service grid container. Moreover, since there is isolation between containers, the upgrade of the service process in the service grid container is independent of the application, thereby avoiding the impact of the upgrade iteration of the service process on the application in the prior art and reducing the update cost of the application.

[0090] It can be seen that the solution provided by the present application achieves the purpose of changing the text of the target application, thereby realizing the technical effect of reducing the update cost of the application, and further solving the technical problem of high application update cost when updating the text language of the application in the prior art.

[0091] In addition, it should be noted that, in this embodiment, the process of the server changing the language of the text of the target application based on the service grid container and the application container has been described in Example 1 and will not be repeated here.

[0092] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0093] Through the description of the above implementation methods, those skilled in the art can clearly understand that the update method of the application according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0094] Example 3

[0095] Under the above operating environment, this application provides Fig.11 The update method of the application shown. Fig.11 is a flowchart of a method for updating an application according to an embodiment of the present application, such as Fig.11 As shown, the method comprises the following steps:

[0096] Step S1102: displaying the target application on the graphical user interface, wherein the language corresponding to the text of the target application is the first language.

[0097] In step S1102, the client is the execution subject of the method provided in this embodiment, and the client is the client corresponding to the target application, wherein the text in the target application is displayed in a default language in the graphical user interface of the client, for example, in Figure 4 In the graphical user interface of the client shown in FIG. 1 , the text in the target application is displayed in Chinese (i.e., the first language). The text in the target application may be, but is not limited to, a title, a link, a web page content, etc. For example, in Figure 4 In the example, the texts in the target application are “content recommendation”, “video”, “featured topics”, “hot topics”, “digitalization”, “interests and skills” and other texts.

[0098] Step S1104, in response to a language change instruction for changing the language of the text of the target application, a language change instruction is sent to the server, wherein the server includes at least an application container and a service grid container, the application container is provided with a program code corresponding to the target application, the service grid container is provided with a service process, and the service process is used to obtain a second language from the language content management system based on the language change instruction.

[0099] In step S1104, the language change instruction includes at least relevant information of the second language selected by the user, and the relevant information may include but is not limited to a language identifier corresponding to the second language, and the language identifier may be a code of a language type corresponding to the second language, and the second language is the language corresponding to the text of the target application displayed on the graphical user interface of the desired client selected by the user, for example, Figure 6 in English.

[0100] Optionally, a language change control is provided on the client. After the user clicks the language change control and selects a second language from the drop-down list of the language type corresponding to the language change control, the client automatically generates a language change instruction and sends the language change instruction to the server so that the server changes the language of the target application. After the client sends the language change instruction to the server, the server service grid container obtains the second language corresponding to the language change instruction, wherein the language content management system may be, but is not limited to, the Medusa system, and the service grid container may realize the sinking of network, traffic management and service governance to the infrastructure, and is fully decoupled from the application, wherein the service grid container stores the text language.

[0101] It should be noted that, in actual applications, the application container can obtain the second language corresponding to the language change instruction from the service grid container without obtaining the second language from the language content management system, that is, the service grid container realizes the isolation between the target application and the language content management system, thereby avoiding the coupling between the fat client and the target application in the prior art, and the problem of low efficiency of the target application startup caused by synchronizing the text language from the language content management system when the target application starts.

[0102] In addition, since the application container and the service grid container are isolated from each other, when the service process in the service grid container is upgraded, or the text language in the service grid container is changed, it will not affect the application container, thereby achieving the independence between the service process upgrade and the target application, avoiding the version fragmentation problem in the prior art due to the need for the business party to cooperate with the iterative upgrade of the rich client, and reducing the upgrade cost of the service process.

[0103] Step S1106 , displaying the target application after the language change on the graphical user interface, wherein the language corresponding to the target application after the language change is the second language.

[0104] In step S1006, after obtaining the second language from the service grid container, the application container can update the target application to change the text language in the target application. For example, if the second language is English, the text in the target application will be changed to English. Figure 4 The graphical user interface shown changes to Figure 6 The graphical user interface shown.

[0105] Based on the scheme defined in the above steps S1102 to S1106, it can be known that in an embodiment of the present application, a method of decoupling an application from a language content management system through a service grid container is adopted, a target application is displayed on a graphical user interface, and then the client responds to a language change instruction for changing the language of the text of the target application, sends a language change instruction to the server, and displays the target application after the language change on the graphical user interface, wherein the language corresponding to the text of the target application is the first language, and the language corresponding to the target application after the language change is the second language, the server includes at least an application container and a service grid container, the application container is provided with a program code corresponding to the target application, the service grid container is provided with a service process, and the service process is used to obtain the second language from the language content management system based on the language change instruction.

[0106] It is easy to notice that by setting up a service grid container to achieve the gridding of the client, the application and the language content management system are isolated, the data resources between the application and the language content management system are isolated and protected, and the problem of excessive useless memory space occupied by the service during text synchronization is avoided. In addition, the service grid container stores the text language obtained from the language content management system. In the process of updating the text language of the target application, the corresponding second language is directly obtained from the service grid container. Moreover, since there is isolation between containers, the upgrade of the service process in the service grid container is independent of the application, thereby avoiding the impact of the upgrade iteration of the service process on the application in the prior art and reducing the update cost of the application.

[0107] It can be seen that the solution provided by the present application achieves the purpose of changing the text of the target application, thereby realizing the technical effect of reducing the update cost of the application, and further solving the technical problem of high application update cost when updating the text language of the application in the prior art.

[0108] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0109] Through the description of the above implementation methods, those skilled in the art can clearly understand that the update method of the application according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0110] Example 4

[0111] According to an embodiment of the present application, a device for implementing the above-mentioned application updating method is also provided, which is applied to a server, and the server at least includes an application container and a service grid container, the application container is provided with a program code corresponding to the target application, and the service grid container is provided with a service process, and the service process is used to obtain a text language from a language content management system, such as Fig.12 As shown, the device 120 includes: a first acquisition module 1201 , a second acquisition module 1203 and an update module 1205 .

[0112] Among them, the first acquisition module 1201 is used to obtain the language change instruction sent by the client, wherein the language change instruction is used to change the language of the text in the target application; the second acquisition module 1203 is used to obtain the target language corresponding to the language change instruction from the service grid container, wherein the target language is the text language obtained by the service process from the language content management system and stored in the service grid container; the update module 1205 is used to change the language of the text in the target application in the application container based on the target language to obtain an updated application.

[0113] It should be noted that the first acquisition module 1201, the second acquisition module 1203 and the update module 1205 correspond to steps S302 to S306 in Example 1, and the three modules and the corresponding steps implement the same examples and application scenarios, but are not limited to the contents disclosed in the above-mentioned Example 1. It should be noted that the above-mentioned modules, as part of the device, can be run in the electronic device 10 provided in Example 1.

[0114] Example 5

[0115] According to an embodiment of the present application, a system for implementing the above-mentioned application update method is also provided, and the system includes: a processor and a memory.

[0116] The memory is connected to the processor and is used to store executable instructions of the processor; the processor is configured to execute instructions to implement the application update method in the above embodiment.

[0117] It should be noted that, in the embodiment, a method of decoupling the application and the language content management system through a service grid container is adopted. After obtaining a language change instruction sent by the client for changing the language of the text in the target application, the target language corresponding to the language change instruction is obtained from the service grid container, and the language of the text in the target application in the application container is changed based on the target language to obtain an updated target application, wherein the target language is the text language obtained by the service process from the language content management system and stored in the service grid container.

[0118] It is easy to notice that by setting up a service grid container to achieve the gridding of the client, the application and the language content management system are isolated, the isolation and protection of the data resources between the application and the language content management system are achieved, and the problem of excessive useless memory space occupied by the service during text synchronization is avoided. In addition, the service grid container stores the text language obtained from the language content management system. In the process of updating the text language of the target application, the corresponding target language is directly obtained from the service grid container. Moreover, since there is isolation between containers, the upgrade of the service process in the service grid container is independent of the application, thereby avoiding the impact of the upgrade iteration of the service process on the application in the prior art and reducing the update cost of the application.

[0119] It can be seen that the solution provided by the present application achieves the purpose of changing the text of the target application, thereby realizing the technical effect of reducing the update cost of the application, and further solving the technical problem of high application update cost when updating the text language of the application in the prior art.

[0120] In addition, it should be noted that the processor in this embodiment can execute the method provided in Example 1, and the specific execution process will not be repeated here.

[0121] Example 6

[0122] The embodiment of the present application may provide an electronic device, which may be any computer terminal device in a computer terminal group. Optionally, in this embodiment, the electronic device may also be replaced by a terminal device such as a mobile terminal.

[0123] Optionally, in this embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.

[0124] In this embodiment, the electronic device can execute the following program codes of the following steps in the application update method: obtaining a language change instruction sent by the client, wherein the language change instruction is used to change the language of the text in the target application; obtaining a target language corresponding to the language change instruction from the service grid container, wherein the target language is the text language obtained by the service process from the language content management system and stored in the service grid container; and changing the language of the text in the target application in the application container based on the target language to obtain an updated target application.

[0125] Optionally, Fig.13 is a structural block diagram of an electronic device according to an embodiment of the present application. Fig.13As shown, the electronic device 10 may include: one or more (only one is shown in the figure) processors 1302 , a memory 1304 , and a peripheral interface 1306 .

[0126] Among them, the memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the update method and device of the application in the embodiment of the present application. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, the update method of the above-mentioned application is realized. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the electronic device 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0127] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: obtain a language change instruction sent by the client, wherein the language change instruction is used to change the language of the text in the target application; obtain the target language corresponding to the language change instruction from the service grid container, wherein the target language is the text language obtained by the service process from the language content management system and stored in the service grid container; based on the target language, change the language of the text in the target application in the application container to obtain an updated target application.

[0128] Optionally, the processor may further execute program code of the following steps: when detecting that the target application is started for the first time, controlling the application container and the service grid container to start simultaneously.

[0129] Optionally, the processor may also execute the following program code: after the control service grid container is started, the control service grid container performs a polling operation on the language content management system to obtain a text resource package and metadata corresponding to the text resource package from the language content management system; the control service grid container performs an integrity check on the text resource package based on the metadata to obtain a check result, wherein the check result is one of the following: a complete state and an incomplete state; when the check result indicates that the text resource package is in a complete state, the control service grid container performs a parsing operation on the text resource package to obtain a target language; and the target language is stored in the memory of the service grid container.

[0130] Optionally, the processor may also execute the program code of the following steps: detecting whether the target language corresponding to the language change instruction exists in the service grid container; when the target language exists in the service grid container, obtaining the target language from the service grid container; when the target language does not exist in the service grid container, controlling the service grid container to obtain the target language from the language content management system, and storing the target language in the service grid container, so that the application container obtains the target language from the service grid container.

[0131] Optionally, the processor may also execute the program code of the following steps: when an abnormality is detected in the service grid container, the text language stored in the service grid container is loaded into the local memory of the server; the target application in the application container is controlled to load the target language in the local memory of the server into the memory of the application container, and the language of the text of the target application is changed based on the target language.

[0132] Optionally, the application container and the service grid container communicate via a remote procedure call system.

[0133] Optionally, the processor may also execute the program code of the following steps: before changing the language of the text in the target application in the application container based on the target language to obtain the updated target application, obtaining the hot text language from the service grid container, wherein the hot text language is a language with a usage frequency greater than a preset frequency; and caching the hot text language in the memory of the application container.

[0134] Optionally, the processor may further execute program code of the following steps: upon detecting that a service process in the service grid container is updated, determining a process version corresponding to the updated service process; and performing a function declaration on the process version in the application container.

[0135] Optionally, the processor may also execute program code of the following steps: responding to a language change instruction for changing the language of the text of the target application; sending a language change instruction to a server, and obtaining a target language returned by the server based on the language change instruction, wherein the server includes at least an application container and a service grid container, the application container is provided with program code corresponding to the target application, the service grid container is provided with a service process, and the service process is used to obtain the target language from the language content management system based on the language change instruction; and displaying an updated target application, wherein the updated target application is the target application after the target language is loaded.

[0136] Optionally, the processor may also execute program code of the following steps: displaying a target application on a graphical user interface, wherein the language corresponding to the text of the target application is a first language; in response to a language change instruction for changing the language of the text of the target application, sending a language change instruction to a server, wherein the server includes at least an application container and a service grid container, wherein the application container is provided with a program code corresponding to the target application, and the service grid container is provided with a service process, wherein the service process is used to obtain a second language from a language content management system based on the language change instruction; and displaying the target application after the language change on the graphical user interface, wherein the language corresponding to the target application after the language change is the second language.

[0137] It can be understood by those skilled in the art that Fig.13 The structure shown is for illustration only, and the electronic device may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a handheld computer, a mobile Internet device (Mobile Internet Devices, MID), a PAD, and other terminal devices. Fig.13 The structure of the electronic device is not limited. Fig.13 More or fewer components (such as network interfaces, display devices, etc.) shown in, or having Fig.13 Different configurations shown.

[0138] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0139] Example 7

[0140] The embodiment of the present application also provides a computer-readable storage medium. Optionally, in this embodiment, the computer-readable storage medium can be used to store the program code executed by the application program update method provided in the above embodiment.

[0141] Optionally, in this embodiment, the computer-readable storage medium may be located in any one of the computer terminals in a computer terminal group in a computer network, or in any one of the mobile terminals in a mobile terminal group.

[0142] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for executing the following steps: obtaining a language change instruction sent by the client, wherein the language change instruction is used to change the language of text in a target application; obtaining a target language corresponding to the language change instruction from a service grid container, wherein the target language is a text language obtained by the service process from a language content management system and stored in the service grid container; and changing the language of text in a target application in an application container based on the target language to obtain an updated target application.

[0143] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for executing the following steps: when it is detected that the target application is started for the first time, controlling the application container and the service grid container to start simultaneously.

[0144] Optionally, in this embodiment, the computer-readable storage medium is configured to store program codes for executing the following steps: after the control service grid container is started, the control service grid container performs a polling operation on the language content management system to obtain a text resource package and metadata corresponding to the text resource package from the language content management system; the control service grid container performs an integrity check on the text resource package based on the metadata to obtain a check result, wherein the check result is one of the following: a complete state and an incomplete state; when the check result indicates that the text resource package is in a complete state, the control service grid container parses the text resource package to obtain a target language; and stores the target language in the memory of the service grid container.

[0145] Optionally, in this embodiment, the computer-readable storage medium is configured to store program codes for executing the following steps: detecting whether a target language corresponding to the language change instruction exists in the service grid container; when the target language exists in the service grid container, obtaining the target language from the service grid container; when the target language does not exist in the service grid container, controlling the service grid container to obtain the target language from the language content management system and storing the target language in the service grid container, so that the application container obtains the target language from the service grid container.

[0146] Optionally, in this embodiment, the computer-readable storage medium is configured to store program codes for executing the following steps: when an abnormality is detected in the service grid container, loading the text language stored in the service grid container into the local memory of the server; controlling the target application in the application container to load the target language in the local memory of the server into the memory of the application container, and changing the language of the text of the target application based on the target language.

[0147] Optionally, the application container and the service grid container communicate via a remote procedure call system.

[0148] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for executing the following steps: before changing the language of the text in the target application in the application container based on the target language to obtain the updated target application, obtaining a hot text language from the service grid container, wherein the hot text language is a language with a usage frequency greater than a preset frequency; and caching the hot text language in the memory of the application container.

[0149] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for executing the following steps: when it is detected that a service process in the service grid container is updated, determining a process version corresponding to the updated service process; and performing a function declaration on the process version in the application container.

[0150] Optionally, in this embodiment, the computer-readable storage medium is configured to store program codes for executing the following steps: responding to a language change instruction for changing the language of the text of the target application; sending a language change instruction to a server, and obtaining a target language returned by the server based on the language change instruction, wherein the server includes at least an application container and a service grid container, the application container is provided with a program code corresponding to the target application, the service grid container is provided with a service process, and the service process is used to obtain the target language from the language content management system based on the language change instruction; and displaying an updated target application, wherein the updated target application is the target application after the target language is loaded.

[0151] Optionally, in this embodiment, the computer-readable storage medium is configured to store program codes for executing the following steps: displaying a target application on a graphical user interface, wherein the language corresponding to the text of the target application is a first language; in response to a language change instruction for changing the language of the text of the target application, sending a language change instruction to a server, wherein the server includes at least an application container and a service grid container, the application container is provided with a program code corresponding to the target application, the service grid container is provided with a service process, and the service process is used to obtain a second language from a language content management system based on the language change instruction; displaying the target application after the language change on the graphical user interface, wherein the language corresponding to the target application after the language change is the second language.

[0152] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0153] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0154] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0155] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0156] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0157] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.

[0158] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for updating an application program, It is characterized in that Applied in a server, the server at least comprising an application container and a service grid container, the application container being provided with a program code corresponding to a target application, the service grid container being provided with a service process, the service process being used to obtain a text language from a language content management system, the method comprising: Acquire a language change instruction sent by a client, wherein the language change instruction is used to change the language of text in the target application; Acquire a target language corresponding to the language change instruction from the service grid container, wherein the target language is a text language acquired by the service process from the language content management system and stored in the service grid container, and resource data corresponding to the target language is loaded into a heap memory corresponding to the service grid container; Changing the language of text in the target application in the application container based on the target language to obtain an updated target application; The method further comprises: When an abnormality occurs in the service grid container, loading the text language stored in the service grid container into the local memory of the server; The target application in the application container is controlled to load the target language in the local memory of the server into the memory of the application container, and the language of the text of the target application is changed based on the target language.

2. The method according to claim 1, It is characterized in that The method further comprises: When it is detected that the target application is started for the first time, the application container and the service grid container are controlled to start simultaneously.

3. The method according to claim 2, It is characterized in that After controlling the service grid container to start, the method further includes: Controlling the service grid container to perform a polling operation on the language content management system, and obtaining a text resource package and metadata corresponding to the text resource package from the language content management system; Controlling the service grid container to perform integrity detection on the text resource package based on the metadata to obtain a detection result, wherein the detection result is one of the following: a complete state and an incomplete state; When the detection result indicates that the text resource package is in the complete state, controlling the service grid container to parse the text resource package to obtain the target language; The target language is stored in the memory of the service grid container.

4. The method according to claim 1, It is characterized in that Acquiring a target language corresponding to the language change instruction from the service grid container includes: Detecting whether there is a target language corresponding to the language change instruction in the service grid container; When the target language exists in the service grid container, obtaining the target language from the service grid container; When the target language does not exist in the service grid container, the service grid container is controlled to obtain the target language from the language content management system, and the target language is stored in the service grid container, so that the application container obtains the target language from the service grid container.

5. The method according to claim 4, It is characterized in that The application container communicates with the service grid container via a remote procedure call system.

6. The method according to claim 1, It is characterized in that Before changing the language of the text in the target application in the application container based on the target language to obtain an updated target application, the method further includes: Acquire a hot text language from the service grid container, wherein the hot text language is a language with a usage frequency greater than a preset frequency; The hot text language is cached in the memory of the application container.

7. The method according to claim 1, It is characterized in that The method further comprises: When detecting that a service process in the service grid container is updated, determining a process version corresponding to the updated service process; A function declaration is performed on the process version in the application container.

8. A method for updating an application program, It is characterized in that include: responding to a language change instruction to change the language of text in a target application; Sending the language change instruction to the server, and obtaining the target language returned by the server based on the language change instruction, wherein the server at least includes an application container and a service grid container, wherein the application container is provided with a program code corresponding to the target application, wherein the service grid container is provided with a service process, wherein the service process is used to obtain the target language from a language content management system based on the language change instruction, and wherein the resource data corresponding to the target language is loaded into a heap memory corresponding to the service grid container, wherein the server is further used to load the text language stored in the service grid container into the local memory of the server when an abnormality is detected in the service grid container; controlling the target application in the application container to load the target language in the local memory of the server into the memory of the application container, and changing the language of the text of the target application based on the target language; The updated target application is displayed, wherein the updated target application is the target application after the target language is loaded.

9. A method for updating an application program, It is characterized in that include: Displaying a target application on a graphical user interface, wherein a language corresponding to a text of the target application is a first language; In response to a language change instruction for changing the language of the text of the target application, the language change instruction is sent to a server, wherein the server includes at least an application container and a service grid container, the application container is provided with a program code corresponding to the target application, the service grid container is provided with a service process, the service process is used to obtain a second language from a language content management system based on the language change instruction, and resource data corresponding to the second language is loaded into a heap memory corresponding to the service grid container, wherein the server is further used to load the text language stored in the service grid container into a local memory of the server when an abnormality is detected in the service grid container; control the target application in the application container to load the target language in the local memory of the server into the memory of the application container, and change the language of the text of the target application based on the target language; The target application after the language change is displayed on the graphical user interface, wherein the language corresponding to the target application after the language change is the second language.

10. An application program update device, It is characterized in that Applied in a server, the server at least includes an application container and a service grid container, the application container is provided with a program code corresponding to a target application, the service grid container is provided with a service process, the service process is used to obtain a text language from a language content management system, the device includes: A first acquisition module, configured to acquire a language change instruction sent by a client, wherein the language change instruction is used to change the language of the text in the target application; a second acquisition module, configured to acquire a target language corresponding to the language change instruction from the service grid container, wherein the target language is a text language acquired by the service process from the language content management system and stored in the service grid container, and resource data corresponding to the target language is loaded into a heap memory corresponding to the service grid container; An updating module, configured to change the language of text in a target application in the application container based on the target language to obtain an updated application; The device is also used to load the text language stored in the service grid container into the local memory of the server when an abnormality is detected in the service grid container; control the target application in the application container to load the target language in the local memory of the server into the memory of the application container, and change the language of the text of the target application based on the target language.

11. A computer-readable storage medium, It is characterized in that A computer program is stored in a computer-readable storage medium, wherein the computer program is configured to execute the method for updating the application program according to any one of claims 1 to 9 when running.

12. An electronic device, It is characterized in that The electronic device includes one or more processors; A memory for storing one or more programs, which, when executed by the one or more processors, enables the one or more processors to run the programs, wherein the program is configured to execute the method for updating the application program described in any one of claims 1 to 9 at runtime.

13. An application updating system, It is characterized in that include: processor; as well as A memory connected to the processor, and used to store executable instructions of the processor; wherein the processor is configured to execute the instructions to implement the application update method as described in any one of claims 1 to 9.

Citation Information

Patent Citations

  • H5 page multilingual render method and device

    CN108984170A

  • Language switching method and device, electronic device and readable storage medium

    CN109783172A

  • Message queue proxy grid under container cloud and method

    CN111049915A

  • Method and device for executing internationalized business, and computer readable storage medium

    CN111177318A

  • Configuration method and device for multi-language game resources

    CN111273978A