A data distribution method and apparatus

By caching preferred browser patches on the distribution node, the problems of delayed communication between the client and the server and long transfer time for polyfill files are solved, which improves web page access speed and saves network resources.

CN114995833BActive Publication Date: 2025-07-11DOUYIN VISION CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210391950.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-14
Publication Date
2025-07-11
Estimated Expiration
2042-04-14

AI Technical Summary

Technical Problem

The communication delay between the client and the server is large, and the large size of the polyfill file leads to a long transmission time, which affects the speed of web page access.

Method used

By deploying the distribution node, obtaining the browser attribute information of the client, determining the browser distribution, sending preferred browser patches to the distribution node cache, and sending them to the client when matching the request, reducing the frequency of requesting patches from the server.

Benefits of technology

It effectively reduces the time for clients to obtain browser patches, improves web access speed, reduces the sending of useless patches, and avoids waste of network resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114995833B_ABST
    Figure CN114995833B_ABST
Patent Text Reader

Abstract

The present disclosure provides a data distribution method and apparatus. In the embodiments of the present disclosure, by deploying distribution nodes to perform regional distribution of browser patches, the time consumed by the client to obtain browser patches can be effectively reduced, and the web page access speed can be improved. Moreover, based on the browser attribute information, the browser distribution in the target area is determined, and the preferred browser patches of the distribution nodes are determined according to the browser distribution. The distribution nodes preferentially cache the preferred browser patches, reducing the probability of the distribution nodes requesting patches from the server, improving the page access speed, and also being able to reduce the sending of useless patches and avoid wasting network resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technologies, and in particular, to a data distribution method and apparatus. Background Art

[0002] A shim Polyfill is a patch file for browsers on a client side, which is used to inject unsupported application programming interfaces into the browser, so that the browser can access corresponding services of a web page.

[0003] Generally, the polyfill file of a website is cached by a server deployed in a central computer room and distributed by the server. When the physical distance between the client and the server is relatively far, the communication latency is relatively large. Moreover, the polyfill file usually contains all possible application programming interface patches, and the file size is relatively large, resulting in a longer transmission time and slower access speed of the client to the web page. Summary of the Invention

[0004] The embodiments of the present disclosure provide at least a data distribution method and apparatus.

[0005] In a first aspect, the embodiments of the present disclosure provide a data distribution method, including:

[0006] Obtaining browser attribute information of multiple clients in a target area corresponding to multiple distribution nodes respectively;

[0007] For each distribution node, determining the browser distribution in the target area corresponding to the distribution node based on the browser attribute information;

[0008] Determining a preferred browser patch corresponding to the distribution node based on the browser distribution;

[0009] Sending the preferred browser patch to the distribution node, so that the distribution node caches the preferred browser patch and, when receiving a service request sent by a client whose browser attribute information matches the preferred browser patch, sends the preferred browser patch to the client.

[0010] In an optional implementation, the determining the browser distribution in the target area corresponding to the distribution node based on the browser attribute information includes:

[0011] Determining version information corresponding to browsers of multiple clients in the target area based on the browser attribute information;

[0012] Determining the browser distribution in the target area based on the number of clients corresponding to each version information in the target area.

[0013] In an alternative embodiment, determining the preferred browser patch corresponding to the distribution node based on the browser distribution includes:

[0014] Based on the ratio of the number of browsers corresponding to each version information in the browser distribution to the total number of browsers, filter out the preferred browsers from the browsers corresponding to each version information;

[0015] Determine the browser patch required by the preferred browser as the preferred browser patch corresponding to the distribution node.

[0016] In an alternative embodiment, determining the browser patch required by the preferred browser includes:

[0017] Based on the attribute information of the preferred browser, determine the first feature supported by the preferred browser;

[0018] Based on the first feature, determine the second feature that the preferred browser lacks to access the target service;

[0019] Based on the second feature, determine the browser patch required by the preferred browser.

[0020] In an alternative embodiment, the method further includes:

[0021] In response to a browser patch acquisition request sent by the distribution node, generate a new browser patch that matches the target browser attribute information indicated by the browser patch acquisition request;

[0022] Send the generated new browser patch to the distribution node, so that when the distribution node receives a service request sent by a client whose browser attribute information matches the new browser patch, the distribution node sends the new browser patch to the client.

[0023] In an alternative embodiment, the method further includes:

[0024] Send the preferred browser patch and / or the new browser patch sent to each distribution node to the global cache database, so that when the distribution node receives a service request sent by a client whose browser attribute information matches the target browser patch stored in the global cache database, the distribution node obtains the target browser patch from the global cache database and sends the target browser patch to the client.

[0025] In a second aspect, an embodiment of the present disclosure further provides a data distribution device, including:

[0026] An acquisition module, configured to acquire browser attribute information of multiple clients in a target area corresponding to multiple distribution nodes respectively;

[0027] A first determination module, configured to, for each distribution node, determine the browser distribution in the target area corresponding to the distribution node based on the browser attribute information;

[0028] A second determination module, configured to determine a preferred browser patch corresponding to the distribution node based on the browser distribution;

[0029] A sending module, configured to send the preferred browser patch to the distribution node, so that the distribution node caches the preferred browser patch, and when receiving a service request sent by a client whose browser attribute information matches the preferred browser patch, send the preferred browser patch to the client.

[0030] In an optional implementation manner, the first determination module is specifically configured to:

[0031] Based on the browser attribute information, determine the version information corresponding to the browsers of multiple clients in the target area respectively;

[0032] Based on the number of clients corresponding to each version information in the target area, determine the browser distribution in the target area.

[0033] In an optional implementation manner, the second determination module is specifically configured to:

[0034] Based on the ratio of the number of browsers corresponding to each version information in the browser distribution to the total number of browsers, screen out the preferred browsers from the browsers corresponding to each version information;

[0035] Determine the browser patch required by the preferred browser as the preferred browser patch corresponding to the distribution node.

[0036] In an optional implementation manner, the second determination module is further configured to:

[0037] Based on the attribute information of the preferred browser, determine the first features supported by the preferred browser;

[0038] Based on the first features, determine the second features missing for the preferred browser to access the target service;

[0039] Based on the second features, determine the browser patch required by the preferred browser.

[0040] In an optional implementation manner, the device further includes a generation module, configured to:

[0041] In response to the browser patch acquisition request sent by the distribution node, an additional browser patch that matches the target browser attribute information indicated by the browser patch acquisition request is generated.

[0042] The generated additional browser patch is sent to the distribution node, so that when the distribution node receives a service request sent by a client whose browser attribute information matches the additional browser patch, the distribution node sends the additional browser patch to the client.

[0043] In an optional implementation manner, the device further includes a cache module, which is used for:

[0044] Send the preferred browser patch and / or the additional browser patch sent to each distribution node to the global cache database, so that when the distribution node receives a service request sent by a client whose browser attribute information matches the target browser patch stored in the global cache database, the distribution node obtains the target browser patch from the global cache database and sends the target browser patch to the client.

[0045] In a third aspect, an embodiment of the present disclosure further provides an electronic device, including: a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the electronic device runs, the processor communicates with the memory through the bus. When the machine-readable instructions are executed by the processor, the steps in the above first aspect, or any possible implementation manner in the first aspect are executed.

[0046] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is run by a processor, the steps in the above first aspect, or any possible implementation manner in the first aspect are executed.

[0047] The data distribution method and device provided by the embodiments of the present disclosure obtain browser attribute information of multiple clients in the target areas respectively corresponding to multiple distribution nodes; for each distribution node, based on the browser attribute information, determine the browser distribution in the target area corresponding to the distribution node; based on the browser distribution, determine the preferred browser patch corresponding to the distribution node; send the preferred browser patch to the distribution node, so that the distribution node caches the preferred browser patch, and when receiving a service request sent by a client whose browser attribute information matches the preferred browser patch, send the preferred browser patch to the client. By deploying distribution nodes and distributing browser patches regionally, the embodiments of the present disclosure can effectively reduce the time consumed by clients to obtain browser patches, improve the web page access speed. Moreover, by determining the browser distribution in the target area based on browser attribute information and determining the preferred browser patch of the distribution node according to the browser distribution, the distribution node preferentially caches the preferred browser patch, reduces the probability of the distribution node requesting patches from the server, improves the page access speed, and can also reduce the sending of useless patches, avoiding wasting network resources.

[0048] To make the above objects, features, and advantages of the present disclosure more obvious and understandable, the following specifically enumerates preferred embodiments and, in conjunction with the accompanying drawings, provides detailed descriptions as follows. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] To more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following briefly introduces the accompanying drawings required for use in the embodiments. The accompanying drawings are incorporated into the specification and constitute a part of this specification. These drawings show embodiments that conform to the present disclosure and, together with the specification, are used to illustrate the technical solutions of the present disclosure. It should be understood that the following drawings only show certain embodiments of the present disclosure and should not be regarded as limiting the scope. For those of ordinary skill in the art, without creative efforts, other relevant drawings can also be obtained based on these drawings.

[0050] Figure 1 Shows a schematic diagram of a data distribution system provided by an embodiment of the present disclosure;

[0051] Figure 2 Shows a flowchart of a data distribution method provided by an embodiment of the present disclosure;

[0052] Figure 3 Shows a schematic diagram of a data distribution device provided by an embodiment of the present disclosure;

[0053] Figure 4 Shows a schematic diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0054] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure. Apparently, the described embodiments are only some, rather than all, of the embodiments of the present disclosure. Components of the embodiments of the present disclosure described and illustrated in the accompanying drawings herein may be arranged and designed in a variety of different configurations. Therefore, the detailed description of the embodiments of the present disclosure provided in the accompanying drawings is not intended to limit the scope of the claimed present disclosure, but merely represents selected embodiments of the present disclosure. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present disclosure without creative efforts fall within the scope of protection of the present disclosure.

[0055] It should be noted that like reference numerals and letters denote like items in the following drawings. Therefore, once an item is defined in one drawing, it does not require further definition and explanation in subsequent drawings.

[0056] As used herein, the term "and / or" merely describes an associated relationship and indicates that three relationships may exist. For example, A and / or B may represent three cases: A alone, both A and B present, and B alone. Additionally, the term "at least one" as used herein means any one of a plurality or any combination of at least two of a plurality. For example, including at least one of A, B, and C may represent including any one or more elements selected from the set consisting of A, B, and C.

[0057] To solve the technical problems of large communication delay between the client and the server and long patch transmission time, the present disclosure provides a data distribution method and apparatus. By deploying distribution nodes to distribute browser patches regionally, it can effectively reduce the time consumed by the client to obtain browser patches, improve the web page access speed. Moreover, based on browser attribute information, it determines the browser distribution in the target area, and determines the preferred browser patches of the distribution nodes according to the browser distribution, enabling the distribution nodes to preferentially cache the preferred browser patches, reducing the probability of the distribution nodes requesting patches from the server, further improving the page access speed, and also being able to reduce the sending of useless patches and avoid wasting network resources.

[0058] For ease of understanding of this embodiment, a data distribution system disclosed in the embodiments of the present disclosure will be introduced in detail first. Refer to Figure 1As shown in the figure, it is a schematic diagram of a data distribution system provided by an embodiment of the present disclosure. The data distribution system provided by the embodiment of the present disclosure includes multiple distribution nodes, a global cache database, and a server. Communication can be carried out between the distribution nodes, the global cache database, and the server, and the distribution nodes can also communicate with the client. When the client accesses the target website, it can send a request to the distribution node. The distribution node locally caches multiple browser patches, and can select the corresponding browser patch based on the browser attribute information corresponding to the client, and send the browser patch to the client so that the client can access the target website. The server can generate the patches required by the distribution nodes and send them to the distribution nodes. The global cache database can be used as the cache database of all content distribution nodes and also caches multiple browser patches. In order to better explain the generation of browser patches by the server and their cache distribution, the embodiment of the present disclosure provides a data distribution method, and its execution subject can be the above-mentioned server.

[0059] See Figure 2 As shown in the figure, it is a flowchart of the data distribution method provided by the embodiment of the present disclosure. The method includes steps S201 to S204, where:

[0060] S201. Obtain the browser attribute information of multiple clients in the target area corresponding to each distribution node.

[0061] Among them, the distribution nodes can be deployed in multiple regions, and the region to which the distribution node belongs is the above-mentioned target area. When the client accesses the website, it can send the access request to the distribution node in the area to which the client belongs, and can obtain the browser attribute information of multiple clients in the target area corresponding to each distribution node. Among them, the browser attribute information of multiple clients in the target area can be obtained by sampling survey on the basis of user consent. The above browser attribute information can include at least one of information such as the version information of the browser, the browser identification information, the application program interface required by the browser, the patch required by the browser, and the interface supported by the browser.

[0062] S202. For each distribution node, determine the browser distribution in the target area corresponding to the distribution node based on the browser attribute information.

[0063] In this step, for each distribution node, the number of browsers of each version and the total number of browser attribute information obtained in the browser attribute information corresponding to the distribution node can be determined, and based on this, the browser distribution in the target area can be determined. The browser distribution can include the usage ratio of browsers of each version in the corresponding target area, that is, the ratio of the number of browsers corresponding to each version information to the total number of browsers.

[0064] Exemplarily, the version information of each browser can be determined based on the browser attribute information, and then, based on the number of browsers corresponding to each version information, the distribution of browsers in the target area can be determined.

[0065] S203. Determine the preferred browser patch corresponding to the distribution node based on the browser distribution.

[0066] In this step, the server can determine the preferred browser from multiple clients according to the browser distribution. Specifically, based on the ratio of the number of browsers corresponding to each version information in the browser distribution to the total number of browsers, the browser with the above ratio greater than or equal to the preset ratio can be determined as the preferred browser. After that, the browser patch corresponding to the preferred browser can be determined as the preferred browser patch.

[0067] Among them, the browser patch corresponding to the preferred browser can be determined according to the version information of the browser. Exemplarily, according to the version information of the browser, the first features supported by the browser can be determined, and then, based on the first features supported by the browser and the features required to access the target, the second features missing for the preferred browser to access the target service can be determined. By packaging the patch files corresponding to each second feature, the browser patch that needs to be installed by the browser under this version information can be generated.

[0068] S204. Send the preferred browser patch to the distribution node, so that the distribution node caches the preferred browser patch and, when receiving a service request sent by a client whose browser attribute information matches the preferred browser patch, sends the preferred browser patch to the client.

[0069] In this way, by sending different preferred browser patches to the corresponding distribution nodes, the distribution nodes can cache the preferred browser patches. When receiving a request from a client, they can first search for the browser patch matching the client in the local cache. Since there are relatively many browsers corresponding to the preferred browser patches in the target area where the distribution nodes are located, the possibility of directly finding it in the local cache is relatively high, which can greatly reduce the frequency of the distribution nodes requesting browser patches from the server, effectively reduce network communication, and improve the speed of the client accessing the target service.

[0070] When the browser patch matching the browser attribute information cannot be found at the distribution node, a browser patch acquisition request can be sent to the server. The server responds to the browser patch acquisition request, generates a new browser patch matching the target browser attribute information based on the target browser attribute information indicated by the browser patch acquisition request, and sends the new browser patch to the distribution node. In this way, the distribution node can send the received new browser patch to the client with matching browser information.

[0071] After sending the preferred browser patches and / or new browser patches of each distribution node to the corresponding distribution node, the above patches can also be sent to the global cache database. When the distribution node queries the browser patch, it can first query from the local cache and the cloud disk cache. If not found, it can then query from the global cache database. The global cache database can include the browser patches corresponding to all distribution nodes. If still not found, a browser patch acquisition request can be sent to the server again. In this way, the probability of the server generating duplicate browser patches can be reduced, and computing resources can be saved.

[0072] The data distribution method provided by the embodiments of the present disclosure obtains the browser attribute information of multiple clients in the target area corresponding to multiple distribution nodes respectively; for each distribution node, based on the browser attribute information, determines the browser distribution in the target area corresponding to the distribution node; based on the browser distribution, determines the preferred browser patch corresponding to the distribution node; and sends the preferred browser patch to the distribution node, so that the distribution node caches the preferred browser patch, and in the case of receiving a service request sent by a client whose browser attribute information matches the preferred browser patch, sends the preferred browser patch to the client. By deploying distribution nodes in the embodiments of the present disclosure to distribute browser patches by region, the time consumed by the client to obtain browser patches can be effectively reduced, and the web page access speed can be improved. Moreover, based on the browser attribute information, the browser distribution in the target area is determined, and the preferred browser patch of the distribution node is determined according to the browser distribution, so that the distribution node preferentially caches the preferred browser patch, reduces the probability of the distribution node requesting patches from the server, improves the page access speed, and can also reduce the sending of useless patches and avoid wasting network resources.

[0073] Those skilled in the art can understand that in the above method of the specific embodiment, the writing order of each step does not mean a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of each step should be determined according to its function and possible internal logic.

[0074] Based on the same inventive concept, embodiments of the present disclosure also provide a data distribution device corresponding to the data distribution method. Since the principle of problem-solving of the device in the embodiments of the present disclosure is similar to that of the above-mentioned data distribution method in the embodiments of the present disclosure, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be elaborated.

[0075] Refer to Figure 3 As shown, it is a schematic diagram of a data distribution device provided by an embodiment of the present disclosure. The device includes:

[0076] An acquisition module 310, configured to acquire browser attribute information of multiple clients in a target area corresponding to multiple distribution nodes respectively;

[0077] A first determination module 320, configured to, for each distribution node, determine the browser distribution in the target area corresponding to the distribution node based on the browser attribute information;

[0078] A second determination module 330, configured to determine a preferred browser patch corresponding to the distribution node based on the browser distribution;

[0079] A sending module 340, configured to send the preferred browser patch to the distribution node, so that the distribution node caches the preferred browser patch, and when receiving a service request sent by a client whose browser attribute information matches the preferred browser patch, send the preferred browser patch to the client.

[0080] The data distribution device provided by the embodiments of the present disclosure can effectively reduce the time consumed by the client to obtain the browser patch and improve the web page access speed by deploying distribution nodes to distribute browser patches regionally. Moreover, based on the browser attribute information, the browser distribution in the target area is determined, and the preferred browser patch of the distribution node is determined according to the browser distribution, so that the distribution node preferentially caches the preferred browser patch, reduces the probability of the distribution node requesting patches from the server, improves the page access speed, and can also reduce the sending of useless patches and avoid wasting network resources.

[0081] In an optional implementation manner, the first determination module 320 is specifically configured to:

[0082] Based on the browser attribute information, determine the version information corresponding to the browsers of multiple clients in the target area respectively;

[0083] Based on the number of clients corresponding to each version information in the target area, determine the browser distribution in the target area.

[0084] In an optional implementation manner, the second determination module 330 is specifically configured to:

[0085] Based on the ratio of the number of browsers corresponding to each version information to the total number of browsers in the browser distribution situation, filter out the preferred browsers from the browsers corresponding to each version information;

[0086] Determine that the browser patch required by the preferred browser is the preferred browser patch corresponding to the distribution node.

[0087] In an optional implementation manner, the second determination module 330 is further configured to:

[0088] Based on the attribute information of the preferred browser, determine the first feature supported by the preferred browser;

[0089] Based on the first feature, determine the second feature that the preferred browser lacks when accessing the target service;

[0090] Based on the second feature, determine the browser patch required by the preferred browser.

[0091] In an optional implementation manner, the device further includes a generation module, configured to:

[0092] In response to the browser patch acquisition request sent by the distribution node, generate a new browser patch that matches the target browser attribute information indicated by the browser patch acquisition request;

[0093] Send the generated new browser patch to the distribution node, so that when the distribution node receives a service request sent by a client whose browser attribute information matches the new browser patch, the distribution node sends the new browser patch to the client.

[0094] In an optional implementation manner, the device further includes a cache module, configured to:

[0095] Send the preferred browser patch and / or the new browser patch sent to each distribution node to the global cache database, so that when the distribution node receives a service request sent by a client whose browser attribute information matches the target browser patch stored in the global cache database, the distribution node obtains the target browser patch from the global cache database and sends the target browser patch to the client.

[0096] For the processing flow of each module in the device and the interaction flow between each module, reference may be made to the relevant descriptions in the above method embodiments, which will not be elaborated here.

[0097] Corresponding to Figure 1 in the data distribution method, the embodiments of the present disclosure further provide an electronic device 400, asFigure 4 As shown in the figure, it is a schematic structural diagram of an electronic device 400 provided by an embodiment of the present disclosure, including:

[0098] A processor 41, a memory 42, and a bus 43; the memory 42 is used to store execution instructions, including an internal memory 421 and an external memory 422; here, the internal memory 421 is also called the main memory, which is used to temporarily store the operation data in the processor 41 and the data exchanged with the external memory 422 such as a hard disk. The processor 41 exchanges data with the external memory 422 through the internal memory 421. When the electronic device 400 runs, the processor 41 communicates with the memory 42 through the bus 43, so that the processor 41 executes the following instructions:

[0099] Obtain the browser attribute information of multiple clients in the target area corresponding to multiple distribution nodes respectively;

[0100] For each distribution node, based on the browser attribute information, determine the browser distribution in the target area corresponding to the distribution node;

[0101] Based on the browser distribution, determine the preferred browser patch corresponding to the distribution node;

[0102] Send the preferred browser patch to the distribution node, so that the distribution node caches the preferred browser patch, and in the case of receiving a service request sent by a client whose browser attribute information matches the preferred browser patch, send the preferred browser patch to the client.

[0103] In an alternative embodiment, in the instructions executed by the processor 41, the determining the browser distribution in the target area corresponding to the distribution node based on the browser attribute information includes:

[0104] Based on the browser attribute information, determine the version information corresponding to the browsers of multiple clients in the target area respectively;

[0105] Based on the number of clients corresponding to each version information in the target area, determine the browser distribution in the target area.

[0106] In an alternative embodiment, in the instructions executed by the processor 41, the determining the preferred browser patch corresponding to the distribution node based on the browser distribution includes:

[0107] Based on the ratio of the number of browsers corresponding to each version information in the browser distribution to the total number of browsers, screen out the preferred browsers from the browsers corresponding to each version information;

[0108] The browser patch required to determine the preferred browser is the preferred browser patch corresponding to the distribution node.

[0109] In an alternative embodiment, among the instructions executed by the processor 41, determining the browser patch required for the preferred browser includes:

[0110] Based on the attribute information of the preferred browser, determining a first feature supported by the preferred browser;

[0111] Based on the first feature, determining a second feature missing for the preferred browser to access the target service;

[0112] Based on the second feature, determining the browser patch required for the preferred browser.

[0113] In an alternative embodiment, among the instructions executed by the processor 41, there are further included:

[0114] In response to a browser patch acquisition request sent by the distribution node, based on the target browser attribute information indicated by the browser patch acquisition request, generating a new browser patch that matches the target browser attribute information;

[0115] Sending the generated new browser patch to the distribution node, so that when the distribution node receives a service request sent by a client whose browser attribute information matches the new browser patch, the distribution node sends the new browser patch to the client.

[0116] In an alternative embodiment, among the instructions executed by the processor 41, there are further included:

[0117] Sending the preferred browser patch and / or the new browser patch sent to each distribution node to the global cache database, so that when the distribution node receives a service request sent by a client whose browser attribute information matches the target browser patch stored in the global cache database, the distribution node obtains the target browser patch from the global cache database and sends the target browser patch to the client.

[0118] The embodiments of the present disclosure further provide a computer-readable storage medium, on which a computer program is stored. When the computer program is run by a processor, it executes the steps of the data distribution method described in the above method embodiments. Among them, the storage medium may be a volatile or non-volatile computer-readable storage medium.

[0119] Embodiments of the present disclosure also provide a computer program product, which carries program codes, and the instructions included in the program codes can be used to execute the steps of the data distribution method described in the foregoing method embodiments. For details, refer to the foregoing method embodiments and will not be elaborated herein.

[0120] Among them, the above computer program product can be specifically implemented in the form of hardware, software, or a combination thereof. In an alternative embodiment, the computer program product is specifically embodied as a computer storage medium. In another alternative embodiment, the computer program product is specifically embodied as a software product, such as a Software Development Kit (SDK), etc.

[0121] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the above-described systems and devices can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein. In several embodiments provided by the present disclosure, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of the units is only a logical functional division, and there may be other division methods in actual implementation. For another 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 displayed or discussed couplings or direct couplings or communication connections to each other can be through some communication interfaces, and the indirect couplings or communication connections of the devices or units can be in electrical, mechanical, or other forms.

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

[0123] In addition, in each embodiment of the present disclosure, the functional units can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit.

[0124] When the above-mentioned functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present disclosure, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs.

[0125] Finally, it should be noted that the above-mentioned embodiments are only specific implementation manners of the present disclosure, used to illustrate the technical solutions of the present disclosure, rather than limiting them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: any person skilled in the art within the technical scope disclosed by the present disclosure can still modify the technical solutions recorded in the foregoing embodiments, or can easily think of changes, or perform equivalent replacements on some of the technical features; and these modifications, changes, or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should all be covered by the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be subject to the protection scope of the claims.

Claims

1. A data distribution method, characterized in that, The method includes: Obtaining browser attribute information of multiple clients in the target area corresponding to multiple distribution nodes respectively; For each distribution node, based on the browser attribute information, determining the browser distribution in the target area corresponding to the distribution node; Based on the browser distribution, determining the preferred browser patch corresponding to the distribution node; Sending the preferred browser patch to the distribution node, so that the distribution node caches the preferred browser patch, and in the case of receiving a service request sent by a client whose browser attribute information matches the preferred browser patch, sending the preferred browser patch to the client; Wherein, the determining the browser distribution in the target area corresponding to the distribution node based on the browser attribute information includes: Based on the browser attribute information, determining the version information corresponding to the browsers of multiple clients in the target area respectively; Based on the number of clients corresponding to each version information in the target area, determining the browser distribution in the target area.

2. The method according to claim 1, characterized in that, The determining the preferred browser patch corresponding to the distribution node based on the browser distribution includes: Based on the ratio of the number of browsers corresponding to each version information in the browser distribution to the total number of browsers, screening out the preferred browsers from the browsers corresponding to each version information; Determining the browser patch required by the preferred browser as the preferred browser patch corresponding to the distribution node.

3. The method according to claim 1, wherein Determining the browser patch required by the preferred browser includes: Based on the attribute information of the preferred browser, determining the first feature supported by the preferred browser; Based on the first feature, determining the second feature missing for the preferred browser to access the target service; Based on the second feature, determining the browser patch required by the preferred browser.

4. The method according to claim 1, wherein The method further includes: In response to a browser patch acquisition request sent by the distribution node, generating a new browser patch that matches the target browser attribute information indicated by the browser patch acquisition request; Sending the generated new browser patch to the distribution node, so that the distribution node, in the case of receiving a service request sent by a client whose browser attribute information matches the new browser patch, sends the new browser patch to the client.

5. The method according to claim 4, wherein The method further includes: Sending the preferred browser patch and / or the new browser patch sent to each distribution node to the global cache database, so that the distribution node, in the case of receiving a service request sent by a client whose browser attribute information matches the target browser patch stored in the global cache database, obtains the target browser patch from the global cache database and sends the target browser patch to the client.

6. A data distribution device, characterized in that, It includes: An acquisition module, configured to obtain browser attribute information of multiple clients in the target area corresponding to multiple distribution nodes respectively; A first determination module, configured to determine, for each distribution node, the browser distribution in the target area corresponding to the distribution node based on the browser attribute information; A second determination module, configured to determine the preferred browser patch corresponding to the distribution node based on the browser distribution; A sending module, configured to send the preferred browser patch to the distribution node, so that the distribution node caches the preferred browser patch, and when receiving a service request sent by a client whose browser attribute information matches the preferred browser patch, send the preferred browser patch to the client. Wherein, the first determination module is specifically configured to: Determine the version information corresponding to the browsers of multiple clients in the target area based on the browser attribute information; Determine the browser distribution in the target area based on the number of clients corresponding to each version information in the target area.

7. An electronic device, characterized in that, Includes: A processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the electronic device runs, the processor communicates with the memory through the bus. When the machine-readable instructions are executed by the processor, the steps of the data distribution method according to any one of claims 1 to 5 are executed.

8. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium. When the computer program is run by the processor, the steps of the data distribution method according to any one of claims 1 to 5 are executed.

Citation Information

Patent Citations

  • Mobile browser feature detection and result statistics method

    CN104375931A

  • Webpage loading method and device, computer readable storage medium and computer equipment

    CN112214703A