CN113590410B - Resource request method, system, equipment and medium - Google Patents

Resource request method, system, equipment and medium Download PDF

Info

Publication number
CN113590410B
CN113590410B CN202110682183.XA CN202110682183A CN113590410B CN 113590410 B CN113590410 B CN 113590410B CN 202110682183 A CN202110682183 A CN 202110682183A CN 113590410 B CN113590410 B CN 113590410B
Authority
CN
China
Prior art keywords
resources
loaded
browser
concurrency
combinations
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110682183.XA
Other languages
Chinese (zh)
Other versions
CN113590410A (en
Inventor
刘宝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jinan Inspur Data Technology Co Ltd
Original Assignee
Jinan Inspur Data Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jinan Inspur Data Technology Co Ltd filed Critical Jinan Inspur Data Technology Co Ltd
Priority to CN202110682183.XA priority Critical patent/CN113590410B/en
Publication of CN113590410A publication Critical patent/CN113590410A/en
Application granted granted Critical
Publication of CN113590410B publication Critical patent/CN113590410B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • G06F11/3093Configuration details thereof, e.g. installation, enabling, spatial arrangement of the probes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/328Computer systems status display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Databases & Information Systems (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a resource request method, which comprises the following steps: responding to the current page trigger to load resources, and acquiring the concurrency number of the browser; grouping the resources to be loaded according to a resource integration strategy to obtain a plurality of combinations, wherein the number of the combinations is equal to the concurrency number of the browser; respectively generating a loading request according to the resources to be loaded contained in each combination; and sending the generated multiple loading requests to a server. The invention also discloses a system, computer equipment and a readable storage medium. The scheme provided by the invention is based on the browser concurrency threshold, and generates the shortest time-consuming request, so that the operation and maintenance management platform can respond faster under the browser and reach the optimal under the browser of the current version.

Description

Resource request method, system, equipment and medium
Technical Field
The present invention relates to the field of operation and maintenance management, and in particular, to a resource request method, system, device, and storage medium.
Background
The intelligent unified storage management platform realizes information presentation and centralized management, intelligent prediction and operation and maintenance simplification of a plurality of sets of storage equipment. The operation and maintenance platform can easily monitor, configure and manage multiple sets of storage devices without logging in multiple storage devices respectively. The operation and maintenance platform uses a humanized GUI management interface, and a user can use a browser to carry out graphical storage monitoring management. The global running states of all the devices, such as the total capacity condition, the running states of all the devices, fault alarm information, hard disk fault prediction and the like, can be checked.
The intelligent unified storage management platform realizes asset aggregation management, centrally manages all asset devices, and can further perform detailed management on the assets of each device through mouse clicking, such as operations of checking the assets, adding the assets, modifying the assets, deleting the assets and the like. And the unified management is carried out on all the users, different roles are allocated for the users of the administrator, and the administrator and the equipment are flexibly associated, so that the unified allocation management of the user rights is realized.
The management platform is used as a unified access entry, can carry out fine operation management on each storage subsystem, and meets the storage configuration requirements of advanced users. The Dashboard is a short for intelligent dashboards (Intelligence Dashboard), is a module for realizing data visualization, which is owned by a general intelligent management platform, and is a data virtualization tool for displaying the current situation of measurement information and key business indexes (KPIs) to users. The key features are that real-time data is obtained from various data sources and a customized interactive interface. And provides a better use experience for the data with a rich, interactive visual interface.
The dashboards can be used to view the global operating status of all devices, such as device profile, storage connection status, storage alarm information, health status, and capacity of each device, and performance information such as IOPS, bandwidth, and latency. However, as the dashboard becomes more and more functional, the more resources are requested by the RESTFul that is accompanied by the loading of the web page. Due to concurrency limitation of the client, the browser cannot open a connection to request loading for each asset, and the reasons that the concurrency causes excessive port number and thread switching are considered, the concurrency quantity is large, the concurrency threshold of the server is controlled, the concurrency threshold of the BAN is controlled, and the like are considered, and the concurrency thresholds are set for different versions of different browsers. The concurrency resources are put on a pipeline with the concurrency threshold value to be sequentially executed, the performance of the dashboard requests is affected, and the most intuitive effect is that the page response speed of the operation and maintenance platform is slower and slower as the number of information presentation is increased.
Disclosure of Invention
In view of this, in order to overcome at least one aspect of the above-mentioned problems, an embodiment of the present invention provides a resource request method, including the following steps:
responding to the current page trigger to load resources, and acquiring the concurrency number of the browser;
grouping resources to be loaded according to a resource integration strategy to obtain a plurality of combinations, wherein the number of the combinations is equal to the concurrency number of the browser;
respectively generating a loading request according to the resources to be loaded contained in each combination;
and sending the generated multiple loading requests to a server.
In some embodiments, grouping the resources to be loaded according to a resource integration policy to obtain a plurality of combinations, wherein the number of combinations is equal to the concurrency of the browser, further comprising:
acquiring the number of resources to be loaded;
judging whether the number of the resources to be loaded is larger than a concurrency threshold of the server;
and in response to the number of the resources to be loaded not being greater than the concurrency threshold, grouping the resources to be loaded according to a resource integration strategy to obtain the combination with the same concurrency as that of the browser.
In some embodiments, further comprising:
responding to the quantity of the resources to be loaded being larger than the concurrency threshold, and calculating the request sending times according to the concurrency threshold and the quantity of the resources to be loaded;
and grouping the resources to be loaded according to the request sending times and a resource integration strategy to obtain a plurality of combinations, wherein the number of the combinations is equal to the concurrence number of the browser multiplied by the request sending times.
In some embodiments, sending the generated plurality of load requests to a server further comprises:
and determining the loading request sent to the server each time according to the concurrency number and the concurrency threshold.
In some embodiments, further comprising:
responding to the server receiving the plurality of loading requests, and calling corresponding interfaces to acquire the resources to be loaded;
and the server converts the resource to be loaded into a preset format and returns the resource to the browser.
In some embodiments, further comprising:
and the browser analyzes the received content and loads the content to the corresponding position of the page.
In some embodiments, grouping the resources to be loaded according to a resource integration policy to obtain a plurality of combinations further comprises:
acquiring the type, attribute and/or corresponding system of the resource to be loaded;
and grouping the resources to be loaded according to the types, the attributes and/or the corresponding systems of the resources to be loaded.
Based on the same inventive concept, according to another aspect of the present invention, an embodiment of the present invention further provides a resource request system, including:
the acquisition module is configured to respond to the current page trigger to load resources and acquire the concurrency number of the browser;
the grouping module is configured to group the resources to be loaded according to a resource integration strategy to obtain a plurality of combinations, wherein the number of the combinations is equal to the concurrency number of the browser;
the generation module is configured to generate loading requests according to the resources to be loaded contained in each combination;
and the sending module is configured to send the generated plurality of loading requests to a server.
Based on the same inventive concept, according to another aspect of the present invention, an embodiment of the present invention further provides a computer apparatus, including:
at least one processor; and
a memory storing a computer program executable on the processor, wherein the processor performs the steps of any one of the resource request methods described above when the program is executed.
Based on the same inventive concept, according to another aspect of the present invention, there is also provided a computer-readable storage medium storing a computer program which, when executed by a processor, performs the steps of any one of the resource request methods described above.
The invention has one of the following beneficial technical effects: the scheme provided by the invention is based on the browser concurrency threshold, and generates the shortest time-consuming request, so that the operation and maintenance management platform can respond faster under the browser and reach the optimal under the browser of the current version.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are necessary for the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention and that other embodiments may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a resource request method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a resource request system according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a computer device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computer-readable storage medium according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention will be described in further detail with reference to the accompanying drawings.
It should be noted that, in the embodiments of the present invention, all the expressions "first" and "second" are used to distinguish two entities with the same name but different entities or different parameters, and it is noted that the "first" and "second" are only used for convenience of expression, and should not be construed as limiting the embodiments of the present invention, and the following embodiments are not described one by one.
In the embodiment of the invention, the management platform can be a B/S architecture, wherein B is Browser, namely a Browser, and S is Server, namely a Server. Can be simply divided into a foreground and a back end. The foreground adopts javascript, angulajs and other technologies, and the background service adopts tomcat container and springmvc technologies.
When the browser inputs the URL, the loading flow of the web page is that requesting the css, the picture and other static resources of the current page, and a plurality of AJAX requests are initiated to the server to acquire corresponding resources. The Dashboard is used as a home page of the management software, and needs to display more information and further needs to initiate more requests.
When the page is not loaded, the page presents a style in loading, and the page is usually processed in a way of displaying a chrysanthemum turn and shielding the underlying page. In the loading process, the web page does not support the operation of the user. This way of treatment has several purposes: 1. preventing the user from repeatedly clicking to generate repeated requests. 2. The pending requests are prevented from accumulating, resulting in a sustained unresponsiveness of the page.
When the Dashboard is in the loading state for a long time, the user experience is very poor, and generally, the Dashboard returns to the best within 1000ms in the normal state, and returns to the best within 3000ms in the abnormal state such as the occurrence of network timeout.
Therefore, in order to enable the operation and maintenance management platform to respond faster under the browser, the embodiment of the invention provides a resource request method, as shown in fig. 1, which may include the steps of:
s1, responding to the current page trigger to load resources, and acquiring the concurrency number of the browser;
s2, grouping the resources to be loaded according to a resource integration strategy to obtain a plurality of combinations, wherein the number of the combinations is equal to the concurrency number of the browser;
s3, respectively generating loading requests according to the resources to be loaded contained in each combination;
s4, sending the generated multiple loading requests to a server.
The scheme provided by the invention is based on the browser concurrency threshold, and generates the shortest time-consuming request, so that the operation and maintenance management platform can respond faster under the browser and reach the optimal under the browser of the current version.
In some embodiments, grouping the resources to be loaded according to a resource integration policy to obtain a plurality of combinations, wherein the number of combinations is equal to the concurrency of the browser, further comprising:
acquiring the number of resources to be loaded;
judging whether the number of the resources to be loaded is larger than a concurrency threshold of the server;
and in response to the number of the resources to be loaded not being greater than the concurrency threshold, grouping the resources to be loaded according to a resource integration strategy to obtain the combination with the same concurrency as that of the browser.
Specifically, since the server also has a concurrent processing threshold, when the amount of requests received by the server is greater than the threshold, the request is caused to be prohibited by the server. Therefore, after the resources are triggered to be loaded, whether the number of the resources to be loaded is larger than the concurrency threshold of the server can be judged, if not, the resources to be loaded can be grouped directly according to the resource integration strategy to obtain the combination with the same concurrency number as that of the browser, and then the corresponding loading requests are generated based on the requests to be loaded in each combination and sent to the server. The number of the loading requests generated in the method is equal to the concurrency number of the browsers, and the loading requests can be simultaneously sent to the server, so that the response speed is increased.
It should be noted that, for the browser, the constraint threshold for request concurrency is set based on various factors: 1. excessive concurrency involves port count and thread switching overhead for the client operating system. HTTP/1.1 has Keep Alive, support multiplexing the existing connection, after waiting for the request to return, multiplexing the connection request again can be very fast. 3. Sending all requests to the server together will likely also trigger concurrency threshold control of the server by the BAN. Therefore, when the number of the loaded request resources exceeds the browser concurrency threshold value N, the browser only sends N concurrency requests to the server, and the exceeding requests enter a state of state to be hung by the browser and can be sent to the server after the previous requests are ended. The concurrency limit of the browser enables concurrent requests to be sequentially executed on a pipeline with the width of N, and the concurrent interfaces provided by the server side cannot be utilized to the maximum extent. In the embodiment of the invention, if the number of the resources to be loaded does not exceed the concurrency threshold of the server, the resources to be loaded are integrated into the same combination with the concurrency number of the browser, so that the loading of the page can be realized only by the response time of one interface.
For example, taking the latest version of the Chrome browser as an example, the concurrency threshold is 6, assuming that the total number of resources to be loaded by the Dashboard page is 30, the 30 resources to be loaded can be integrated into 6 groups, and then each group generates a corresponding loading request and uploads the corresponding loading request to the server. The server calls corresponding interfaces according to the resources to be loaded carried in the 6 loading requests to acquire, and as the total number of the resources to be loaded carried in the 6 loading requests does not exceed the concurrency threshold of the server, the server can call the interfaces corresponding to each resource to be loaded concurrently, and the response time of the page is 200ms when the browser sends all the requests assuming that the response time of each interface is 200ms.
In some embodiments, further comprising:
responding to the quantity of the resources to be loaded being larger than the concurrency threshold, and calculating the request sending times according to the concurrency threshold and the quantity of the resources to be loaded;
and grouping the resources to be loaded according to the request sending times and a resource integration strategy to obtain a plurality of combinations, wherein the number of the combinations is equal to the concurrence number of the browser multiplied by the request sending times.
In some embodiments, sending the generated plurality of load requests to a server further comprises:
and determining the loading request sent to the server each time according to the concurrency number and the concurrency threshold.
Specifically, if the number of resources to be loaded exceeds a concurrency threshold of the server, in order to prevent the request BAN from being dropped at the server, the request sending times are calculated according to the concurrency threshold and the number of the resources to be loaded, and then the resources to be loaded are grouped according to the request sending times and a resource integration strategy to obtain a plurality of combinations. And then respectively generating corresponding loading requests by a plurality of combinations, and finally dividing the loading requests into a plurality of times and sending the plurality of times to a server.
For example, the concurrency threshold of the server is 40, and the number of resources to be loaded is 70, where the calculated number of times of transmission may be 2, that is, the value obtained by taking the value that the number of resources to be loaded is at the concurrency threshold and rounded up is used as the number of times of transmission, for example, 40 resources may be requested for the first time, 30 resources may be requested for the second time, and of course, the number of requests sent each time is equal to the concurrency number of the browser. The 70 resources to be loaded may be grouped according to a resource integration policy, and the number of resources to be loaded in each combination may be different, as long as the total number of resources to be loaded carried in the request sent for the first time is 40, and the total number of resources to be loaded carried in the request sent for the second time is 30.
In some embodiments, further comprising:
responding to the server receiving the plurality of loading requests, and calling corresponding interfaces to acquire the resources to be loaded;
and the server converts the resource to be loaded into a preset format and returns the resource to the browser.
In some embodiments, further comprising:
and the browser analyzes the received content and loads the content to the corresponding position of the page.
Specifically, after receiving a plurality of loading requests, the server may simultaneously obtain resources to be loaded in the loading requests, and normalize the return value and the response to json format, where the normalization is key: in the form of an object, the foreground extracts corresponding information according to a specific key after obtaining a response.
In some embodiments, grouping the resources to be loaded according to a resource integration policy to obtain a plurality of combinations further comprises:
acquiring the type, attribute and/or corresponding system of the resource to be loaded;
and grouping the resources to be loaded according to the types, the attributes and/or the corresponding systems of the resources to be loaded.
Specifically, the resources to be loaded may be integrated according to the same kind of function, the same storage device, or other similar attributes. For example, the service end requests resources according to the same type of functions, such as integrating the alarm information and the resources for storing health; or integrating the resources to be loaded according to the same storage equipment, such as integrating distributed storage, unified storage and a switch respectively; or integrating the requested resources according to other similar attributes, such as information integration obtained through one-time joint query of the database.
The scheme provided by the invention is based on the browser concurrency threshold, and generates the shortest time-consuming request, so that the operation and maintenance management platform can respond faster under the browser and reach the optimal under the browser of the current version.
Based on the same inventive concept, according to another aspect of the present invention, there is also provided a resource request system 400, as shown in fig. 2, including:
an obtaining module 401, configured to respond to the current page trigger to load the resource, and obtain the concurrency number of the browser;
a grouping module 402 configured to group the resources to be loaded according to a resource integration policy to obtain a plurality of combinations, wherein the number of combinations is equal to the concurrency number of the browser;
a generating module 403 configured to generate a loading request according to the resources to be loaded contained in each combination, respectively;
and a sending module 404 configured to send the generated plurality of loading requests to a server.
The scheme provided by the invention is based on the browser concurrency threshold, and generates the shortest time-consuming request, so that the operation and maintenance management platform can respond faster under the browser and reach the optimal under the browser of the current version.
In some embodiments, grouping the resources to be loaded according to a resource integration policy to obtain a plurality of combinations, wherein the number of combinations is equal to the concurrency of the browser, further comprising:
acquiring the number of resources to be loaded;
judging whether the number of the resources to be loaded is larger than a concurrency threshold of the server;
and in response to the number of the resources to be loaded not being greater than the concurrency threshold, grouping the resources to be loaded according to a resource integration strategy to obtain the combination with the same concurrency as that of the browser.
In some embodiments, further comprising:
responding to the quantity of the resources to be loaded being larger than the concurrency threshold, and calculating the request sending times according to the concurrency threshold and the quantity of the resources to be loaded;
and grouping the resources to be loaded according to the request sending times and a resource integration strategy to obtain a plurality of combinations, wherein the number of the combinations is equal to the concurrence number of the browser multiplied by the request sending times.
In some embodiments, sending the generated plurality of load requests to a server further comprises:
and determining the loading request sent to the server each time according to the concurrency number and the concurrency threshold.
In some embodiments, further comprising:
responding to the server receiving the plurality of loading requests, and calling corresponding interfaces to acquire the resources to be loaded;
and the server converts the resource to be loaded into a preset format and returns the resource to the browser.
In some embodiments, further comprising:
and the browser analyzes the received content and loads the content to the corresponding position of the page.
In some embodiments, grouping the resources to be loaded according to a resource integration policy to obtain a plurality of combinations further comprises:
acquiring the type, attribute and/or corresponding system of the resource to be loaded;
and grouping the resources to be loaded according to the types, the attributes and/or the corresponding systems of the resources to be loaded.
The scheme provided by the invention is based on the browser concurrency threshold, and generates the shortest time-consuming request, so that the operation and maintenance management platform can respond faster under the browser and reach the optimal under the browser of the current version.
Based on the same inventive concept, according to another aspect of the present invention, as shown in fig. 3, an embodiment of the present invention further provides a computer apparatus 501, including:
at least one processor 520; and
the memory 510, the memory 510 stores a computer program 511 executable on a processor, and the processor 520 executes the program to perform the steps of:
responding to the current page trigger to load resources, and acquiring the concurrency number of the browser;
grouping resources to be loaded according to a resource integration strategy to obtain a plurality of combinations, wherein the number of the combinations is equal to the concurrency number of the browser;
respectively generating a loading request according to the resources to be loaded contained in each combination;
and sending the generated multiple loading requests to a server.
In some embodiments, grouping the resources to be loaded according to a resource integration policy to obtain a plurality of combinations, wherein the number of combinations is equal to the concurrency of the browser, further comprising:
acquiring the number of resources to be loaded;
judging whether the number of the resources to be loaded is larger than a concurrency threshold of the server;
and in response to the number of the resources to be loaded not being greater than the concurrency threshold, grouping the resources to be loaded according to a resource integration strategy to obtain the combination with the same concurrency as that of the browser.
In some embodiments, further comprising:
responding to the quantity of the resources to be loaded being larger than the concurrency threshold, and calculating the request sending times according to the concurrency threshold and the quantity of the resources to be loaded;
and grouping the resources to be loaded according to the request sending times and a resource integration strategy to obtain a plurality of combinations, wherein the number of the combinations is equal to the concurrence number of the browser multiplied by the request sending times.
In some embodiments, sending the generated plurality of load requests to a server further comprises:
and determining the loading request sent to the server each time according to the concurrency number and the concurrency threshold.
In some embodiments, further comprising:
responding to the server receiving the plurality of loading requests, and calling corresponding interfaces to acquire the resources to be loaded;
and the server converts the resource to be loaded into a preset format and returns the resource to the browser.
In some embodiments, further comprising:
and the browser analyzes the received content and loads the content to the corresponding position of the page.
In some embodiments, grouping the resources to be loaded according to a resource integration policy to obtain a plurality of combinations further comprises:
acquiring the type, attribute and/or corresponding system of the resource to be loaded;
and grouping the resources to be loaded according to the types, the attributes and/or the corresponding systems of the resources to be loaded.
The scheme provided by the invention is based on the browser concurrency threshold, and generates the shortest time-consuming request, so that the operation and maintenance management platform can respond faster under the browser and reach the optimal under the browser of the current version.
Based on the same inventive concept, according to another aspect of the present invention, as shown in fig. 4, an embodiment of the present invention further provides a computer-readable storage medium 601, the computer-readable storage medium 601 storing computer program instructions 610, the computer program instructions 610 when executed by a processor performing the steps of:
responding to the current page trigger to load resources, and acquiring the concurrency number of the browser;
grouping resources to be loaded according to a resource integration strategy to obtain a plurality of combinations, wherein the number of the combinations is equal to the concurrency number of the browser;
respectively generating a loading request according to the resources to be loaded contained in each combination;
and sending the generated multiple loading requests to a server.
In some embodiments, grouping the resources to be loaded according to a resource integration policy to obtain a plurality of combinations, wherein the number of combinations is equal to the concurrency of the browser, further comprising:
acquiring the number of resources to be loaded;
judging whether the number of the resources to be loaded is larger than a concurrency threshold of the server;
and in response to the number of the resources to be loaded not being greater than the concurrency threshold, grouping the resources to be loaded according to a resource integration strategy to obtain the combination with the same concurrency as that of the browser.
In some embodiments, further comprising:
responding to the quantity of the resources to be loaded being larger than the concurrency threshold, and calculating the request sending times according to the concurrency threshold and the quantity of the resources to be loaded;
and grouping the resources to be loaded according to the request sending times and a resource integration strategy to obtain a plurality of combinations, wherein the number of the combinations is equal to the concurrence number of the browser multiplied by the request sending times.
In some embodiments, sending the generated plurality of load requests to a server further comprises:
and determining the loading request sent to the server each time according to the concurrency number and the concurrency threshold.
In some embodiments, further comprising:
responding to the server receiving the plurality of loading requests, and calling corresponding interfaces to acquire the resources to be loaded;
and the server converts the resource to be loaded into a preset format and returns the resource to the browser.
In some embodiments, further comprising:
and the browser analyzes the received content and loads the content to the corresponding position of the page.
In some embodiments, grouping the resources to be loaded according to a resource integration policy to obtain a plurality of combinations further comprises:
acquiring the type, attribute and/or corresponding system of the resource to be loaded;
and grouping the resources to be loaded according to the types, the attributes and/or the corresponding systems of the resources to be loaded.
The scheme provided by the invention is based on the browser concurrency threshold, and generates the shortest time-consuming request, so that the operation and maintenance management platform can respond faster under the browser and reach the optimal under the browser of the current version.
Finally, it should be noted that, as will be appreciated by those skilled in the art, all or part of the procedures in implementing the methods of the embodiments described above may be implemented by a computer program for instructing relevant hardware, and the program may be stored in a computer readable storage medium, and the program may include the procedures of the embodiments of the methods described above when executed.
Further, it should be appreciated that the computer-readable storage medium (e.g., memory) herein can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that as used herein, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The foregoing embodiment of the present invention has been disclosed with reference to the number of embodiments for the purpose of description only, and does not represent the advantages or disadvantages of the embodiments.
It will be appreciated by those of ordinary skill in the art that all or part of the steps of implementing the above embodiments may be implemented by hardware, or may be implemented by a program to instruct related hardware, and the program may be stored in a computer readable storage medium, where the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will appreciate that: the above discussion of any embodiment is merely exemplary and is not intended to imply that the scope of the disclosure of embodiments of the invention, including the claims, is limited to such examples; combinations of features of the above embodiments or in different embodiments are also possible within the idea of an embodiment of the invention, and many other variations of the different aspects of the embodiments of the invention as described above exist, which are not provided in detail for the sake of brevity. Therefore, any omission, modification, equivalent replacement, improvement, etc. of the embodiments should be included in the protection scope of the embodiments of the present invention.

Claims (8)

1. A resource request method, comprising the steps of:
responding to the current page trigger to load resources, and acquiring the concurrency number of the browser;
grouping resources to be loaded according to a resource integration strategy to obtain a plurality of combinations, wherein the number of the combinations is equal to the concurrency number of the browser;
respectively generating a loading request according to the resources to be loaded contained in each combination;
transmitting the generated plurality of loading requests to a server;
grouping the resources to be loaded according to a resource integration strategy to obtain a plurality of combinations, wherein the number of the combinations is equal to the concurrency number of the browser, and further comprising:
acquiring the number of resources to be loaded;
judging whether the number of the resources to be loaded is larger than a concurrency threshold of the server;
responding to the quantity of the resources to be loaded not greater than the concurrency threshold, and grouping the resources to be loaded according to a resource integration strategy to obtain a combination with the same concurrency as that of the browser;
responding to the quantity of the resources to be loaded being larger than the concurrency threshold, and calculating the request sending times according to the concurrency threshold and the quantity of the resources to be loaded;
and grouping the resources to be loaded according to the request sending times and a resource integration strategy to obtain a plurality of combinations, wherein the number of the combinations is equal to the concurrence number of the browser multiplied by the request sending times.
2. The method of claim 1, wherein sending the generated plurality of load requests to a server, further comprises:
and determining the loading request sent to the server each time according to the concurrency number and the concurrency threshold.
3. The method as recited in claim 1, further comprising:
responding to the server receiving the plurality of loading requests, and calling corresponding interfaces to acquire the resources to be loaded;
and the server converts the resource to be loaded into a preset format and returns the resource to the browser.
4. A method as recited in claim 3, further comprising:
and the browser analyzes the received content and loads the content to the corresponding position of the page.
5. The method of claim 1, wherein grouping the resources to be loaded according to a resource integration policy to obtain a plurality of combinations, further comprises:
acquiring the type, attribute and/or corresponding system of the resource to be loaded;
and grouping the resources to be loaded according to the types, the attributes and/or the corresponding systems of the resources to be loaded.
6. A resource request system, comprising:
the acquisition module is configured to respond to the current page trigger to load resources and acquire the concurrency number of the browser;
the grouping module is configured to group the resources to be loaded according to a resource integration strategy to obtain a plurality of combinations, wherein the number of the combinations is equal to the concurrency number of the browser;
the generation module is configured to generate loading requests according to the resources to be loaded contained in each combination;
a sending module configured to send the generated plurality of loading requests to a server;
the grouping module is further configured to:
acquiring the number of resources to be loaded;
judging whether the number of the resources to be loaded is larger than a concurrency threshold of the server;
responding to the quantity of the resources to be loaded not greater than the concurrency threshold, and grouping the resources to be loaded according to a resource integration strategy to obtain a combination with the same concurrency as that of the browser;
responding to the quantity of the resources to be loaded being larger than the concurrency threshold, and calculating the request sending times according to the concurrency threshold and the quantity of the resources to be loaded;
and grouping the resources to be loaded according to the request sending times and a resource integration strategy to obtain a plurality of combinations, wherein the number of the combinations is equal to the concurrence number of the browser multiplied by the request sending times.
7. A computer device, comprising:
at least one processor; and
a memory storing a computer program executable on the processor, wherein the processor performs the steps of the method of any one of claims 1-5 when the program is executed.
8. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor performs the steps of the method according to any one of claims 1-5.
CN202110682183.XA 2021-06-20 2021-06-20 Resource request method, system, equipment and medium Active CN113590410B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110682183.XA CN113590410B (en) 2021-06-20 2021-06-20 Resource request method, system, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110682183.XA CN113590410B (en) 2021-06-20 2021-06-20 Resource request method, system, equipment and medium

Publications (2)

Publication Number Publication Date
CN113590410A CN113590410A (en) 2021-11-02
CN113590410B true CN113590410B (en) 2023-12-22

Family

ID=78244157

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110682183.XA Active CN113590410B (en) 2021-06-20 2021-06-20 Resource request method, system, equipment and medium

Country Status (1)

Country Link
CN (1) CN113590410B (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102917067A (en) * 2012-10-24 2013-02-06 网宿科技股份有限公司 Method and device for increasing response speed based on self-adaption concurrency control of client
CN103581232A (en) * 2012-07-26 2014-02-12 中国移动通信集团公司 Web page transmission method, web page displaying device and system including device
CN104850560A (en) * 2014-02-18 2015-08-19 北京京东尚科信息技术有限公司 Method and system for loading business data in webpage in real time
WO2015153677A1 (en) * 2014-03-31 2015-10-08 Open Garden Inc. System and method for improving webpage loading speeds
CN105069058A (en) * 2015-07-24 2015-11-18 中国地质大学(武汉) Quick response method of network map request for high-frequency interaction environment
CN106528154A (en) * 2016-11-10 2017-03-22 北京红马科技有限公司 Online seat picking method, system and device
WO2018177014A1 (en) * 2017-03-31 2018-10-04 华为技术有限公司 Method and device for adjusting data sending rate of terminal
CN109165371A (en) * 2018-08-08 2019-01-08 杭州安恒信息技术股份有限公司 A kind of webpage static resource pre-add support method based on user behavior
WO2019169724A1 (en) * 2018-03-09 2019-09-12 平安科技(深圳)有限公司 Server concurrency control method and device, computer device, and storage medium
CN110888704A (en) * 2019-11-08 2020-03-17 北京浪潮数据技术有限公司 High-concurrency interface processing method, device, equipment and storage medium
CN111461864A (en) * 2020-03-31 2020-07-28 中国银行股份有限公司 Transaction processing method and device
CN111625742A (en) * 2020-05-07 2020-09-04 苏州浪潮智能科技有限公司 Network request scheduling method, device, system and medium for large screen system
CN111639278A (en) * 2020-05-26 2020-09-08 北京三快在线科技有限公司 Webpage loading method and device
CN112035203A (en) * 2020-08-28 2020-12-04 北京浪潮数据技术有限公司 Interface polling method, device, equipment and storage medium
CN112596820A (en) * 2020-12-30 2021-04-02 北京达佳互联信息技术有限公司 Resource loading method, device, equipment and storage medium

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581232A (en) * 2012-07-26 2014-02-12 中国移动通信集团公司 Web page transmission method, web page displaying device and system including device
CN102917067A (en) * 2012-10-24 2013-02-06 网宿科技股份有限公司 Method and device for increasing response speed based on self-adaption concurrency control of client
CN104850560A (en) * 2014-02-18 2015-08-19 北京京东尚科信息技术有限公司 Method and system for loading business data in webpage in real time
WO2015153677A1 (en) * 2014-03-31 2015-10-08 Open Garden Inc. System and method for improving webpage loading speeds
CN105069058A (en) * 2015-07-24 2015-11-18 中国地质大学(武汉) Quick response method of network map request for high-frequency interaction environment
CN106528154A (en) * 2016-11-10 2017-03-22 北京红马科技有限公司 Online seat picking method, system and device
WO2018177014A1 (en) * 2017-03-31 2018-10-04 华为技术有限公司 Method and device for adjusting data sending rate of terminal
WO2019169724A1 (en) * 2018-03-09 2019-09-12 平安科技(深圳)有限公司 Server concurrency control method and device, computer device, and storage medium
CN109165371A (en) * 2018-08-08 2019-01-08 杭州安恒信息技术股份有限公司 A kind of webpage static resource pre-add support method based on user behavior
CN110888704A (en) * 2019-11-08 2020-03-17 北京浪潮数据技术有限公司 High-concurrency interface processing method, device, equipment and storage medium
CN111461864A (en) * 2020-03-31 2020-07-28 中国银行股份有限公司 Transaction processing method and device
CN111625742A (en) * 2020-05-07 2020-09-04 苏州浪潮智能科技有限公司 Network request scheduling method, device, system and medium for large screen system
CN111639278A (en) * 2020-05-26 2020-09-08 北京三快在线科技有限公司 Webpage loading method and device
CN112035203A (en) * 2020-08-28 2020-12-04 北京浪潮数据技术有限公司 Interface polling method, device, equipment and storage medium
CN112596820A (en) * 2020-12-30 2021-04-02 北京达佳互联信息技术有限公司 Resource loading method, device, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种针对浏览器并发连接限制的Web前端性能优化算法;李雨晨;张大方;张继;曾彬;;计算机应用与软件(12);全文 *

Also Published As

Publication number Publication date
CN113590410A (en) 2021-11-02

Similar Documents

Publication Publication Date Title
US10404822B2 (en) Predictive rollup and caching for application performance data
US9825956B2 (en) Systems and methods for access permission revocation and reinstatement
US10013267B1 (en) Pre-triggers for code execution environments
US9542415B2 (en) Modifying information lifecycle management rules in a distributed system
US10419553B2 (en) Dynamic docker pool recycling
US10466866B2 (en) Displaying a complex service topology for monitoring
CN113285883A (en) Access request current limiting method and device, electronic equipment and storage medium
US10200252B1 (en) Systems and methods for integrated modeling of monitored virtual desktop infrastructure systems
US20180123922A1 (en) Correlating performance outliers and network performance impacting event metric
EP3316139B1 (en) Unified monitoring flow map
US20150332488A1 (en) Monitoring system performance with pattern event detection
CN108696400A (en) network monitoring method and device
US20180032905A1 (en) Adaptive Anomaly Grouping
US11265231B2 (en) Real-time ranking of monitored entities
US10713591B2 (en) Adaptive metric pruning
US20180316743A1 (en) Intelligent data transmission by network device agent
CN111124609B (en) Data acquisition method and device, data acquisition equipment and storage medium
TWI558132B (en) Methods for an automatic scaling of data consumers and apparatuses using the same
US9270617B2 (en) Load controller framework
CN110546615B (en) Super dynamic JAVA management extension
CN105049240B (en) A kind of message treatment method and server
CN105490835B (en) Information monitoring method and device
CN113590410B (en) Resource request method, system, equipment and medium
US20180121329A1 (en) Uninstrumented code discovery
CN111831503B (en) Monitoring method based on monitoring agent and monitoring agent device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant