Software version information synchronization method, system and device

Through the software version information synchronization system, the message queue is used to notify the query device to update the version information, which solves the problem that the terminal device cannot obtain the latest version information in time, and achieves timely synchronization of version information and consistency of response results.

CN116048601BActive Publication Date: 2024-10-11HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210535667.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-17
Publication Date
2024-10-11
Estimated Expiration
2042-05-17

AI Technical Summary

Technical Problem

In the existing technology, the terminal device cannot obtain the latest operating system version information in time, resulting in the inability to download updates in time, and the version information is inconsistently synchronized and the response results are inaccurate.

Method used

A software version information synchronization system is adopted, including a query device, a message queue and a packet issuing device. The packet issuing device sends incremental version information to the message queue. The message queue notifies the query device of version information changes. The query device pulls and stores the new version from the message queue. information to ensure that each query node basically synchronizes new data at the same time.

Benefits of technology

It enables terminal devices to query the latest version information in a timely manner, reduces the synchronization delay of version information, and ensures the accuracy of version query and the consistency of response results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116048601B_ABST
    Figure CN116048601B_ABST
Patent Text Reader

Abstract

The present application provides a method, system and device for synchronizing software version information, the system includes a query device, a message queue and a package sending device; the package sending device sends the received incremental version information to the message queue, the incremental version information is the version information corresponding to the newly released software version; after the message queue receives the incremental version information, it notifies the query device of the version information change; after the query device monitors the version information change in the message queue, it reads the incremental version information from the message queue and stores it. It can be seen that after the message queue receives the incremental version information, it notifies the query device to read the message in the message queue, so as to timely pull the new version information from the message queue, so that the user can query the new version information in time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of wireless communication technology, and in particular to a method, system and device for synchronizing software version information. Background Art

[0002] After the terminal device manufacturer releases the operating system, if there is a need to fix system bugs, upgrade system security patches, or add new system functions, the operating system version will be updated. The terminal device can download the new version of the operating system to implement the operating system update.

[0003] After a new version of the operating system is released, the version information of the new version is synchronized to the server. The server needs to reflect the latest version information in a timely manner so that the terminal device can query the latest version information and then download the latest version. However, with the current version information synchronization solution, the server cannot reflect the latest version information in a timely manner, resulting in the terminal device being unable to query the latest version information in a timely manner, and thus unable to download the latest version of the operating system. Summary of the invention

[0004] In view of this, the present application provides a method and system for synchronizing software version information to solve the above technical problems. The disclosed technical solutions are as follows:

[0005] In the first aspect, the present application provides a software version information synchronization system, including a query device, a message queue and a package sending device; the package sending device sends the received incremental version information to the message queue, and the incremental version information is the version information corresponding to the newly released software version; after the message queue receives the incremental version information, it notifies the query device of the version information change; after the query device monitors the version information change in the message queue, it reads the incremental version information from the message queue and stores it. It can be seen that after the message queue receives the incremental version information, it notifies the query device to read the message in the message queue, so as to timely pull the new version information from the message queue, so that the user can query the new version information in time.

[0006] In addition, in the scenario where the query device includes multiple query nodes, each query node can promptly monitor changes in version information in the message queue, and the time difference between each query node monitoring changes in version information is very small. Therefore, the time difference between each query node pulling new version information from the message queue is also very small. Each query node synchronizes new data basically at the same time, thereby achieving completely consistent response results for the same query request by each query node.

[0007] In a possible implementation of the first aspect, the query device monitors the version information change in the message queue, including: after the message queue receives the incremental version information, the message queue sends a version information change broadcast message; after the query device monitors the version information change broadcast message, the query device determines the version information change of the message queue. It can be seen that the message queue will broadcast the message after receiving the incremental version information, thereby realizing timely notification of the query device to read the incremental version information from the message queue.

[0008] In another possible implementation of the first aspect, the query device is also used to respond to a version query request sent by the terminal device, query version information matching the terminal device from the version information locally stored in the query device and send it to the terminal device, and the version query request includes information corresponding to the software version applicable to the terminal device.

[0009] In another possible implementation of the first aspect, the version query request includes the device type, device model, user type and current version information corresponding to the terminal device, and the user type includes internal test users and non-internal test users.

[0010] In yet another possible implementation manner of the first aspect, the version query request further includes geographical location information of the terminal device.

[0011] In another possible implementation of the first aspect, a database is further included for storing stock version information, where the stock version information is the version information corresponding to the existing software version; the contract issuing device also stores the incremental version information in the database; and the query device is also used to pull the stock version information from the database at startup. Persisting the incremental version information in the database can avoid the loss of version information. When the query device pulls the stock version information from the database at startup, it can avoid the partial loss of version information in the query device, resulting in inaccurate version query results, thereby improving the accuracy of version query.

[0012] In another possible implementation of the first aspect, the system further includes a downloading device, wherein the package sending device sends the software package of the newly released software version to the downloading device;

[0013] The downloading device responds to the software package download request sent by the terminal device and returns a software package matching the requested software version to the terminal device. The software package download request includes version information of the requested software version.

[0014] In another possible implementation of the first aspect, each device in the software version information synchronization system is deployed in a different server, so that the performance requirements of the server can be reduced.

[0015] On the second aspect, the present application also provides a software version information synchronization method, which is applied to a server, and a message queue and a query module are deployed in the server. The method includes: sending the received incremental version information to the message queue, the incremental version information is the version information corresponding to the newly released software version; after the message queue receives the incremental version information, notifying the query module of the version information change; after the query module monitors the version information change in the message queue, it reads the incremental version information from the message queue and stores it.

[0016] In a possible implementation of the second aspect, the query module monitors the version information change in the message queue, including: after the query module monitors the version information change broadcast message, it determines the version information change of the message queue, and the version information change broadcast message is generated and sent after the message queue receives the incremental version information.

[0017] In the third aspect, the present application also provides a software version information synchronization device, which is applied to a server, and the device includes: a packet sending module, which is used to send the received incremental version information to a message queue module, and the incremental version information is the version information corresponding to the newly released software version; the message queue module is used to notify the query device of the version information change after receiving the incremental version information; the query module is used to read the incremental version information from the message queue and store it after listening to the version information change in the message queue.

[0018] It should be understood that the description of technical features, technical solutions, beneficial effects or similar language in this application does not imply that all features and advantages can be realized in any single embodiment. On the contrary, it is understood that the description of features or beneficial effects means that specific technical features, technical solutions or beneficial effects are included in at least one embodiment. Therefore, the description of technical features, technical solutions or beneficial effects in this specification does not necessarily refer to the same embodiment. Furthermore, the technical features, technical solutions and beneficial effects described in the present embodiment can also be combined in any appropriate manner. Those skilled in the art will understand that the embodiment can be realized without one or more specific technical features, technical solutions or beneficial effects of a specific embodiment. In other embodiments, additional technical features and beneficial effects can also be identified in a specific embodiment that does not embody all embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0020] Figure 1 is a schematic diagram of a version information synchronization system provided in an embodiment of the present application;

[0021] Figure 2 to Figure 4 is a schematic diagram of a software update interface provided in an embodiment of the present application;

[0022] Figure 5 is a flow chart of a version information synchronization method provided in an embodiment of the present application;

[0023] Figure 6 It is a schematic diagram of a version information synchronization device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0024] The terms "first", "second", "third", etc. in the specification, claims and drawings of this application are used to distinguish different objects rather than to limit a specific order.

[0025] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0026] In the process of studying the scheme of the present application, the inventor discovered that after the new version of the software (such as the operating system software of the terminal device) is released, some terminal devices are unable to search for the latest version information in time. The inventor further discovered through research that: in the version information synchronization scheme in the related art, after the new version of the software is released, its version information is persistently stored in the database. The query cluster records the information that the new version needs to be synchronized in the record set. Then, each node in the query cluster queries the database at a preset time interval to see whether it contains the version information that needs to be synchronized with this node. If so, the version information of the new version is pulled from the database. In this way, the new version information cannot be synchronized to the version query node in time, which causes the terminal device to be unable to query the latest software version in time, and thus cannot download and update the latest software in time.

[0027] In addition, the inventors also found that in the version information synchronization scheme in the related art, the responses of various nodes in the query cluster to the same request are inconsistent, such as the response results returned by some nodes are the latest version information, while the response results returned by some nodes are still the old version information. The inventors further analyzed and found that the time interval for loading new version information of various nodes in the query cluster is the same, but the startup time of each node may be inconsistent. Accordingly, the loading time of the version information corresponding to each node may be inconsistent, resulting in inconsistent response results of different nodes to the same request.

[0028] In order to solve the above technical problems, the inventors proposed a software version information synchronization system, which includes a query cluster, a message queue, a database and a package server. After the package server releases a new version of the software, the new version information is sent to the message queue. After the query cluster monitors the data changes in the message queue, it pulls the new version information from the message queue. The query cluster can monitor the data change messages in the message queue in a timely manner, thereby pulling the new version information from the message queue in a timely manner. In turn, users can query the new version information in a timely manner.

[0029] See also Figure 1 , shows a schematic diagram of the structure of a software version information synchronization system provided by an embodiment of the present application, such as Figure 1 As shown, the system may include: a query cluster 11 , a message queue 12 , a database 13 , a packet sending server 14 and a download server 15 .

[0030] It is to be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the software version information synchronization system. In other embodiments, the software version information synchronization system may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0031] Figure 1 The components of the software version information synchronization system are deployed on independent physical machines, and the present application does not limit the deployment form of the components in the above system. In other embodiments of the present application, at least some of the devices in the system can be deployed in the same physical machine, for example, the message queue 12 and the packet server 14 are deployed in the same physical machine, and for example, the download server 15 and the packet server 14 are deployed in the same physical machine.

[0032] In another possible implementation, all components in the system are deployed in the same physical device, such as the query cluster 11, the message queue 12, the database 13, the packet sending server 14 and the download server 15 can be deployed in one server.

[0033] After receiving the new version of software released by the developer, the package server 14 pushes the version information of the new version of software to the message queue 12. For example, the version information includes the attribute information of the software, such as the applicable terminal type, user type (such as ordinary user, internal test user), online time, effective time, etc.

[0034] Terminal type refers to the type of terminal device, such as smartphones, tablets, smart TVs, smart wearable devices, etc.

[0035] User types can include internal test users and non-internal test users. Among them, the test that needs to be conducted among a small range of users before the new version of the software is officially released is called internal testing. Users who can participate in small-scale testing are internal test users. Users targeted by the officially released new version of the software are ordinary users.

[0036] For example, during the internal testing phase of a new version of software, the new version of software only needs to be pushed to internal testing users, that is, only internal testing users can query the software version in the internal testing phase, while ordinary users cannot query the software version in the internal testing phase. For the officially released new version of software, both internal testing users and ordinary users can query this version of software.

[0037] The launch time is the time when the software version is officially released. The expiration time is the time when the software version becomes invalid. For example, if the software version released in 2018 has an expiration time of 2022, the software version cannot be searched after 2022.

[0038] After receiving the new version information sent by the packet server 14, the message queue 12 broadcasts the data change message. After the subscriber (such as the query cluster) monitors the broadcast message, it determines the changed data in the message queue. In this application, the packet server 14 is the message publisher and the query cluster 11 is the message subscriber. The packet server 14 can publish the version information to the message queue 12, and the query cluster 11 reads the version information from the message queue 12.

[0039] Message queues are important components for exchanging information in distributed applications. Message queues can store messages until they are read.

[0040] In an exemplary embodiment, the message queue 12 may adopt message queues such as kafka, ActiveMQ, RabbitMQ, RocketMQ, etc., and the present application does not limit the type of the message queue.

[0041] Moreover, after the package issuing server 14 releases the new version of the software, the version information of the new version of the software is persistently stored in the database 13 .

[0042] When the query cluster 11 is started, the stock version information (i.e., all version information stored in the database) is pulled from the database 13 and loaded. Furthermore, the query cluster 11 can also listen to the data change broadcast message of the message queue 12. When the data change broadcast message is listened to, the changed data, i.e., the version information of the new version of the software, is pulled from the message queue. After the new version of the software is released through the message queue 12, the version information of the new version of the software is synchronized to the query cluster 11 in real time, so that users can query it in time.

[0043] The query cluster 11 receives and responds to the version query request sent by the terminal device 10 , and returns version information matching the version query request.

[0044] In an exemplary embodiment, the query cluster 11 may include multiple query nodes to balance the access load. Each query node may be an independent server, or at least two query nodes may be deployed in an independent server.

[0045] After the package issuing server 14 releases the new version of the software, it sends the new version of the software package to the download server 15 .

[0046] The user can check the updated software version through the terminal device 10 and download the checked new version software package from the download server 15 .

[0047] In some embodiments, the terminal device 10 may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, an ultra-mobile personal computer (UMPC), a handheld computer, a netbook, a personal digital assistant (PDA), a wearable electronic device, a smart watch, a smart speaker, a projector, etc. The present application does not limit the specific form of the terminal device.

[0048] Taking the terminal device as a mobile phone as an example, the terminal device's settings APP includes system and update items, such as Figure 2 As shown, the System and Updates page includes a Software Update item.

[0049] User clicks Figure 2 After clicking the control 100 on the right side of the software update item, enter Figure 3 In the page shown, the operating system name of the terminal device is Magic, the version number of the previous version is 4.0.0.190, and the version number of the new version is 4.0.0.196.

[0050] In one example, a user clicks Figure 2 After the control 100 in is activated, the terminal device will be triggered to send a version query request to the query cluster 11, and the query cluster 11 will return the latest version matching the terminal device in response to the version query request.

[0051] After checking the new version that the terminal device can update, the user can click Download Update 100 and enter the following Figure 4 The interface shown is as follows Figure 4The interface shown may include the download progress of the new version software package, the version number: 4.0.0.196, the size of the software package, such as 152MB, and the update log of the version. In addition, the background enters the download process of the new version software package, and the background software package download process is: the terminal device sends a download request to the download server 15, and the download server 15 returns the corresponding software package in response to the download request.

[0052] The following will be combined Figure 5 The version information synchronization method running in the above software version information synchronization system is described.

[0053] like Figure 5 As shown, the version information synchronization method provided in the embodiment of the present application may include:

[0054] S100, when each node of the query cluster is started, the existing version information is pulled from the database.

[0055] The stock version information refers to the version information of the existing software version (or old version software). Compared with the stock version information, the version information of the newly added version software can be called incremental version information.

[0056] For example, if the latest released software version is 4.0.0.190, the incremental version information is the version information corresponding to the software version 4.0.0.190, and the stock version information is the version information of the software version earlier than 4.0.0.190 in the database.

[0057] Version information is the attribute information of the software version, such as applicable terminal type (such as terminal device type and series model), user type (such as internal test users and ordinary users), online time, expiration time, etc. For the specific meaning of each attribute information, please refer to Figure 1 The relevant description contents in the corresponding embodiments will not be repeated here.

[0058] S101, after receiving a new version of software release operation from a software developer, the first terminal device sends the software package and version information of the new version of the software to a package issuing server.

[0059] In a possible implementation, the first terminal device may be a desktop computer, a laptop computer, an ultra-mobile personal computer (UMPC), a handheld computer, a netbook, a personal digital assistant (PDA), etc.

[0060] The first terminal device can communicate and interact with the package issuing server, so the software developer can upload the software package of the new version of the software and the version information of the new version of the software to the package issuing server through the first terminal device.

[0061] S102, the package sending server sends the software package of the new version of the software to the download server.

[0062] The package sending server sends the received software package of the new version software to the download server for storage, so that the second terminal device can download the software package of the new version software from the download server.

[0063] S103, the package issuing server stores the version information of the new version of the software persistently in the database.

[0064] Persistent storage is to store data in the database of the storage device to ensure that the data in the database will not be lost after the storage device loses power.

[0065] The database in this application can be deployed in a server, or called a database server. The sending server stores the version information of the new version of the software persistently in the database server to ensure that data will not be lost after the database server loses power.

[0066] Version information is attribute information corresponding to a software version, which may include version number, terminal type (including the type and model of the terminal device), user type, online time, and expiration time.

[0067] As mentioned above, for different types of terminal devices (such as tablets, mobile phones, smart TVs, etc.), and the same type of terminal devices with different models (such as different series of mobile phones), the corresponding software versions are different, and the version information corresponding to different versions of software is also different. Therefore, the version information of different software versions needs to be stored in the database separately.

[0068] The database assigns a data identifier (ID) to each piece of version information. The ID can uniquely identify the piece of version information, that is, the ID corresponds to the piece of version information one by one, wherein a piece of version information is the attribute information corresponding to a software version.

[0069] For example, version information can be stored in key-value format, where the key is the ID corresponding to the version information, and the value includes multiple fields, each field storing an item in the version information, such as the version number field, terminal type field, user type field, online time field, and expiration time field.

[0070] Of course, other forms may be used to store version information, as long as the correspondence between the version information and the ID corresponding to the version information can be recorded. This application does not limit the storage form of the version information in the database.

[0071] S104, the package sending server also pushes the version information of the new version of the software to the message queue.

[0072] The package sending server persists the version information of the new version of the software in the database. In addition, the package sending server also sends the version information to the message queue.

[0073] In one embodiment of the present application, the message queue adopts a publish / subscribe mode, which includes a topic, a publisher, and a subscriber. In the embodiment of the present application, the publisher is the packet sending server, and the subscriber is each query node in the query cluster.

[0074] Topic is the name of a category, and messages of the same type are published to the same topic. For example, the software version information for domestic users is published to topic1, and the software version information for European users is published to topic2. The domestic query cluster subscribes to messages from topic1, and the European query cluster subscribes to messages from topic2. For another example, create a Topic for the same series of terminal devices in China, and create different Topics for different terminal devices. In this way, the version information of the newly released software version can be published to the Topic that matches the software version.

[0075] In a possible implementation of the present application, the query node, as a message subscriber, can subscribe to all Topic types, or some Topic types, and the present application does not impose any restrictions on this.

[0076] For example, domestic query nodes subscribe to the topic corresponding to domestic software version information, and European query nodes subscribe to the topic corresponding to the European software version.

[0077] For example, in another scenario, multiple topics are created for domestic software version information. In this scenario, the query node subscribes to all topics corresponding to the domestic software versions.

[0078] After the message queue receives the new version information pushed by the packet sending server, the message queue will broadcast a data change message, which can be called a data change broadcast message. The data change broadcast message is used to inform message subscribers that the data in the message queue has changed.

[0079] S105, after querying the data change in the cluster monitoring message queue, pull and load the changed version information from the message queue, that is, the version information of the new version of the software.

[0080] Each node in the query cluster can listen to the data change broadcast message of the message queue. When the query node listens to the data change broadcast message, it pulls the corresponding data from the message queue, that is, the version information of the new version of the software. Using the topic example in S104, for example, if new version information is published to topic1, the message queue 12 broadcasts a broadcast message that the message of topic1 has changed. The query node subscribed to topic1 can receive the broadcast message and further pull the data in topic1.

[0081] After the query cluster receives the data change broadcast message of the subscribed Topic, it reads all the data in the message queue.

[0082] For example, in one example, there may be version information of multiple software versions in the message queue, such as version information of version 1 and version information of version 2, where version 1 information is written into the queue first and version 2 information is written into the queue later. In this case, according to the first-in-first-out read-write rule of the message queue, the query cluster first reads version 1 information from the message queue, and then reads version 2 information. For another example, there is only one version information of a software version in the message queue. In this case, after the query cluster receives the data change broadcast message of the subscribed Topic, it reads the version information in the message queue.

[0083] After the subscriber receives the data change broadcast message sent by the message queue, it reads the corresponding data from the message queue. At this point, the packet server completes the process of synchronizing the version information to each node in the query cluster. After that, the second terminal device can query the latest version information that matches its own attributes (such as device type, model, user type, current version, etc.) from the query cluster.

[0084] S106: After receiving the version query operation from the user, the second terminal device generates a version query request and sends it to the query cluster.

[0085] The second terminal device is a terminal device that has a need for software version update, for example, it may include a mobile phone, a tablet computer, a smart TV, a smart watch, a smart wearable device, etc.

[0086] In an exemplary embodiment, for example, the version query operation may be a user clicking Figure 2 Click on the Software Update option shown.

[0087] The human-computer interaction interface of the operating system of different terminal devices may be different. The corresponding version query operation of terminal devices produced by other manufacturers may be different. This application does not limit the version query operation.

[0088] In an exemplary embodiment, the version query request may include the terminal device type, model, user type, current version information, etc.

[0089] For example, the terminal device type may include a mobile phone, a tablet computer, a smart TV, a smart wearable device, etc. Furthermore, it may also include a model of the terminal device, such as a mobile phone model.

[0090] The user type may include an internal test user and a common user. The version information of the current version of the software installed in the second terminal device may include, for example, a version number.

[0091] In another exemplary embodiment, the version query request may further include the geographical location of the terminal device.

[0092] For example, in one possible implementation, different versions of software can be developed for different regions. For example, services or functions that match the characteristics of the northern region can be provided for northern cities, while services or functions that match the characteristics of the southern region can be provided for southern cities. In this application scenario, the version query request generated by the terminal device can carry the geographical location of the terminal device, so that the query cluster can query the software version that matches the geographical location.

[0093] S107, query the cluster to respond to the version query request, query the locally stored version information, obtain the version information matching the second terminal device, and send it to the second terminal device.

[0094] The query cluster includes multiple query nodes. The query cluster sends the received version query request to each query node according to the query load balancing rule to avoid excessive query load on a certain query node.

[0095] For example, in one application scenario, a software developer releases a new software version and publishes the version information of the software version to a message queue. After the query cluster pulls the version information of the new version of the software (i.e., the incremental version information) from the message queue, if the user of the second terminal device initiates a version query request at this time, the query cluster queries for the version information that matches the version query request based on the incremental version information and the existing version information.

[0096] For example, in another application scenario, after the query cluster pulls the existing version information from the database and there is no new version information in the message queue, the query cluster only stores the existing version information locally. If the user of the second terminal device initiates a version query request at this time, the query cluster only queries the version information that matches the version query request based on the locally stored existing version information.

[0097] In an exemplary embodiment, after receiving the version query request, the query node parses and obtains the attribute information corresponding to the terminal device that sent the request, such as the terminal type, the user type, and the software version currently installed on the terminal device, that is, the current version information. Further, the query node queries the locally stored version information based on the parsed attribute information of the terminal device to obtain the version information of the software version that matches the attribute information.

[0098] In one example, the terminal type includes the device type and series model. The user type may include an internal test user and a common user, such as an internal test user may be represented by a binary number "1", and a common user may be represented by a "0". The current version information may include the version number of the current version of the software.

[0099] As mentioned above, the version information of the software version includes information such as terminal type and user type. Therefore, the query node locally queries the terminal type and user type, which respectively match the terminal type and user type in the version query request and the new version information that matches the current version of the terminal device.

[0100] For example, the current version of the terminal device is 4.0.0.100, and the latest version in the query cluster is 4.0.0.150. There are multiple versions between 4.0.0.100 and 4.0.0.150, and one of these multiple versions is an important patch version 4.0.0.135 for 4.0.0.100. Therefore, it is necessary to download version 4.0.0.135 before updating the updated version. Therefore, the version information that matches the current version of the terminal device is the version information of 4.0.0.135, not the version information of the latest software version online.

[0101] For example, a first version information set (including multiple version information) whose terminal type is consistent with the terminal type in the version query request may be selected first, and further, a second version information set (including multiple version information) whose user type is consistent with the user type in the version query request may be selected from the first version information set. Finally, the version information with the latest online time may be selected from the second version information set, determined as the version information matching the terminal device, and the version information may be sent to the second terminal device.

[0102] S108: The second terminal device displays the received version information.

[0103] After receiving the version information sent by the query node, the second terminal device displays the version information on the corresponding display interface, for example, Figure 3 The interface shown shows at least part of the information of the new version of the software, such as the version number. Figure 3 After the control 102 shown, other information of the new version of the software may be displayed, such as update log, software package size and other information.

[0104] S109: After receiving the software package downloading operation from the user, the second terminal device pulls a matching software package from the download server.

[0105] In an exemplary embodiment, the software package download operation can be a user clicking Figure 3 The operation of the download update control 101 in the interface shown. After the user clicks the download update control 101, the second terminal device is triggered to send a download request to the download server.

[0106] The information returned by the query node to the second terminal device includes not only the matching version information but also a download link of the software package of the software version. The download link includes the storage address of the software package of the software version matching the second terminal device stored in the download server.

[0107] The second terminal device sends the generated software package download request to the download server based on the download link, that is, the second terminal device sends the software package download request to the download address.

[0108] After receiving the software package download request, the download server responds to the received software package download request and allows the second terminal device to download the software package. The second terminal device can install the software package after pulling the software package from the download server.

[0109] The software version information synchronization method provided by this implementation is that after the software developer releases the newly released software version to the package server, the package server sends the version information corresponding to the version to the message queue, and sends a broadcast message after the data in the message queue is changed. After the query cluster listens to the broadcast message of the message queue, it pulls the version information of the new version of the software from the message queue, and thus completes the process of synchronizing the new version information to the query cluster. Moreover, the delay of synchronizing the version information to the query cluster is reduced to seconds, which reduces the delay from the release of the new version of the software to the user being able to query the version information on the terminal device. At the same time, the package server synchronizes the new version information to the message queue, and the message queue can notify each query node to read the message through the broadcast mechanism. After receiving the broadcast message, each query node promptly reads the new version information from the message queue. The time difference between each query node receiving the broadcast message is very small, and the time difference between each query node obtaining the new version information is also very small, that is, each query node in the query cluster realizes the synchronization of new data at the same time, and realizes that the response results of each query node to the same query request are completely consistent.

[0110] On the other hand, the present application also provides an embodiment of a software version information synchronization device, such as Figure 6 As shown, the device may include: a query module 110 , a message queue module 120 , a database 130 , a packet sending module 140 and a downloading module 150 .

[0111] The packet sending module 140 is used to send the received incremental version information to the message queue module 120, where the incremental version information is the version information corresponding to the newly released software version.

[0112] The software developer releases the new software version to the package issuing module. For example, the software developer can release the new software version to the package issuing module through a terminal device.

[0113] At the same time, the package sending module 140 is also used to store the incremental version information in the database 130 .

[0114] In addition, the package sending module 140 is further configured to send the software package corresponding to the incremental version information to the downloading module 150 .

[0115] The message queue module 120 is used to notify the query device of the version information change after receiving the incremental version information.

[0116] The query module 110 is used to read and store the incremental version information from the message queue after monitoring the version information change in the message queue. In an exemplary embodiment, multiple query modules 110 may be included.

[0117] When the query module 110 is started, it is also used to pull the stock version information from the database 130 .

[0118] When the query module 110 receives the version information query request sent by the terminal device, the query module 110 locally queries the version information matching the version information query request and returns it to the terminal device.

[0119] After receiving the software package download request sent by the terminal device, the download module 150 searches for a software package that matches the software package download request and returns the software package to the terminal device.

[0120] The various modules in the software version information synchronization device provided in this embodiment can be deployed in the same server, and this application does not limit this.

[0121] The software version information synchronization device provided in this embodiment sends a broadcast message after the data in the message queue is changed. After the query module listens to the broadcast message of the message queue, it pulls the version information of the new version of the software from the message queue, thus completing the process of synchronizing the new version information to the query module. Moreover, the delay of synchronizing the version information to the query module is reduced to seconds, which reduces the delay from the release of the new version of the software to the user's ability to query the version information on the terminal device.

[0122] At the same time, the packet sending module synchronizes the new version information to the message queue. The message queue can notify each query module to read the message through the broadcast mechanism. After receiving the broadcast message, each query module promptly reads the new version information from the message queue. The time difference between each query node receiving the broadcast message is very small, and the time difference between each query node obtaining the new version information is also very small. That is, each query node synchronizes the new data at almost the same time, so that the response results of each query node to the same query request are completely consistent.

[0123] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0124] In the several embodiments provided in this embodiment, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as 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 an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0125] 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.

[0126] In addition, each functional unit in each embodiment of the present embodiment 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 integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0127] 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 this embodiment is essentially 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 several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the method described in each embodiment. The aforementioned storage medium includes: flash memory, mobile hard disk, read-only memory, random access memory, disk or optical disk and other media that can store program codes.

[0128] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A software version information synchronization system, characterized in that: include: Query clusters, message queues, package servers, download servers, and databases, where the database is used to store version information of all existing software versions; When each node of the query cluster is started, stock version information is pulled from the database, where the stock version information is version information corresponding to an existing software version; The package sending server receives new version software information sent by the first terminal device, wherein the new version software information includes a software package and version information of the new version software; The package sending server sends the received incremental version information to the message queue and stores it persistently in the database, and stores the software package of the new version software in the download server, wherein the incremental version information is the version information of the new version software; After receiving the incremental version information, the message queue sends a version information change broadcast message; After the query cluster monitors the version information change broadcast message, it reads the incremental version information from the message queue and stores it; The query cluster responds to the version query request sent by the second terminal device, queries the version information matching the second terminal device from the version information locally stored by the query cluster and sends the version information to the second terminal device, wherein the version query request is generated by the second terminal device after receiving the version query operation of the user; The download server responds to the software package download request sent by the second terminal device and returns a software package matching the software version requested for download to the second terminal device.

2. The software version information synchronization system according to claim 1, characterized in that: The version query request includes the device type, device model, user type and current version information corresponding to the terminal device, and the user type includes internal test users and non-internal test users.

3. The software version information synchronization system according to claim 2, characterized in that: The version query request also includes geographical location information of the terminal device.

4. The software version information synchronization system according to claim 1, characterized in that: The various devices in the software version information synchronization system are deployed in different servers respectively.

5. A method for synchronizing software version information, characterized in that: Applied to a server, wherein a message queue and a query cluster are deployed in the server, the method comprises: The query cluster pulls stock version information from the database, where the stock version information is version information corresponding to an existing software version; Receiving new version software information sent by the first terminal device, wherein the new version software information includes a software package and version information of the new version software; Sending the received incremental version information to the message queue, wherein the incremental version information is the version information corresponding to the newly released software version; After the message queue receives the incremental version information, sending a version information change broadcast message; After the query cluster monitors the version information change broadcast message, it reads the incremental version information from the message queue and stores it; Persistently storing the incremental version information in the database; The query cluster responds to the version query request sent by the second terminal device, queries the version information matching the second terminal device from the version information locally stored in the query cluster and sends it to the second terminal device. The version query request is generated by the second terminal device after receiving the user's version query operation.

6. The method according to claim 5, characterized in that The query cluster monitors the version information changes in the message queue, including: The query module determines that the version information of the message queue has been changed after monitoring the version information change broadcast message, and the version information change broadcast message is generated and sent by the message queue after receiving the incremental version information.

7. A software version information synchronization device, characterized in that: Applied to a server, the device comprises: A query module is used to pull stock version information from the database when starting up, where the stock version information is version information corresponding to the existing software version; A package sending module, configured to receive new version software information sent by the first terminal device, the new version software information including the software package and version information of the new version software, and send the received incremental version information to the message queue module, the incremental version information being the version information corresponding to the newly released software version; The message queue module is used to send a version information change broadcast message after receiving the incremental version information; The query module is used to read and store the incremental version information from the message queue after listening to the version information change broadcast message; The package sending module is used to persistently store the incremental version information in the database; The query module is used to respond to the version query request sent by the second terminal device, query the version information matching the second terminal device from the version information locally stored in the query cluster and send it to the second terminal device. The version query request is generated by the second terminal device after receiving the user's version query operation.