CN113590410A - Resource request method, system, device and medium - Google Patents

Resource request method, system, device and medium Download PDF

Info

Publication number
CN113590410A
CN113590410A CN202110682183.XA CN202110682183A CN113590410A CN 113590410 A CN113590410 A CN 113590410A CN 202110682183 A CN202110682183 A CN 202110682183A CN 113590410 A CN113590410 A CN 113590410A
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.)
Granted
Application number
CN202110682183.XA
Other languages
Chinese (zh)
Other versions
CN113590410B (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

Images

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: triggering and loading resources in response to the current page, 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 loading requests according to the resources to be loaded contained in each combination; and sending the generated plurality of loading requests to a server. The invention also discloses a system, a computer device and a readable storage medium. The scheme provided by the invention generates the shortest time-consuming request based on the browser concurrency threshold value, so that the operation and maintenance management platform can have higher response speed under the browser and reach the optimal state under the current version browser.

Description

Resource request method, system, device 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 display and centralized management, intelligent prediction and operation and maintenance simplification of a plurality of sets of storage equipment. The operation and maintenance platform does not need to log in a plurality of storage devices respectively, and a set of interfaces can easily monitor, configure and manage the plurality of sets of storage devices. The operation and maintenance platform uses a humanized GUI management interface, and a user can use a browser to perform graphical storage monitoring management. The global operation state of all the devices can be checked, such as the information of the overall capacity condition, the operation state of each device, fault alarm information, hard disk fault prediction and the like.
The intelligent unified storage management platform realizes the asset collection management, manages all asset devices in a centralized manner, and can further manage the assets of each device in detail by clicking a mouse, such as checking the assets, adding the assets, modifying the assets, deleting the assets and the like. All users are managed in a unified mode, different roles are allocated to administrator users, the administrator and the equipment are flexibly associated, and unified allocation management of user permissions is achieved.
The management platform is used as a uniform access entrance, can perform fine operation management on each storage subsystem, and meets the storage configuration requirements of advanced users. The Dashboard is a short-term intelligent Dashboard (intelligent Dashboard), is a module which is owned by a general intelligent management platform and realizes data visualization, and is a data virtualization tool for showing measurement information and key service indicators (KPI) status to users. The key feature is to obtain real-time data from a variety of data sources and to be a customized interactive interface. And a rich and interactive visual interface is used for providing better use experience for data.
The Dashboard can view the global operation states of all the devices, such as device profiles, storage connection states, storage alarm information, health states, and capacity of each device, and performance information such as IOPS, bandwidth and time delay. However, as the dashboards become more and more functional, the RESTFul request resources loaded by the web pages become more and more. Due to the concurrency limit of the client, the browser cannot open a connection for each asset to request loading, and the concurrency threshold value is set for different versions of different browsers due to the fact that the concurrency causes too much overhead of port number and thread switching, the concurrency causes concurrency threshold value control and BAN of the server, and the like. This causes concurrent resources to be placed on a pipeline with a concurrent threshold size for sequential execution, which affects the performance of the dashboard request, and the most intuitive effect is that the page response speed of the operation and maintenance platform becomes slower and slower as the number of information displays becomes larger.
Disclosure of Invention
In view of the above, in order to overcome at least one aspect of the above problems, an embodiment of the present invention provides a resource request method, including the following steps:
triggering and loading resources in response to the current page, 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 loading requests according to the resources to be loaded contained in each combination;
and sending the generated plurality of 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, where the number of combinations is equal to the number of concurrency of the browser, further includes:
acquiring the quantity of resources to be loaded;
judging whether the quantity of the resources to be loaded is greater than a concurrency threshold value of the server or not;
and in response to the fact that the number of the resources to be loaded is not larger than the concurrency threshold value, grouping the resources to be loaded according to a resource integration strategy to obtain a combination which is the same as the concurrency number of the browser.
In some embodiments, further comprising:
responding to the situation that the number of the resources to be loaded is larger than the concurrency threshold value, and calculating the request sending times according to the concurrency threshold value and the number 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 number of the concurrency 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 every time according to the concurrency number and the concurrency threshold.
In some embodiments, further comprising:
responding to the server receiving the loading requests, and calling corresponding interfaces to acquire the resources to be loaded;
and the server converts the resources to be loaded into a preset format and returns the preset format to the browser.
In some embodiments, further comprising:
and the browser analyzes the received content and then loads the content to a 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 includes:
acquiring the type, the attribute and/or the corresponding system of the resource to be loaded;
and grouping the resources to be loaded according to the types and the attributes of the resources to be loaded and/or a corresponding system.
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 and 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 generating module is configured to respectively 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.
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 operable on the processor, wherein the processor executes the program to perform any of the steps of the resource request method described above.
Based on the same inventive concept, according to another aspect of the present invention, an embodiment of the present invention further provides a computer-readable storage medium storing a computer program which, when executed by a processor, performs the steps of any of the resource request methods described above.
The invention has one of the following beneficial technical effects: the scheme provided by the invention generates the shortest time-consuming request based on the browser concurrency threshold value, so that the operation and maintenance management platform can have higher response speed under the browser and reach the optimal state under the current version browser.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
Fig. 1 is a flowchart illustrating a resource request method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a resource request system according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a computer device provided in 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 are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
In the embodiment of the present invention, the management platform may be a B/S architecture, where B is Browser and S is Server. Can be simply divided into a foreground and a backend. The foreground adopts technologies such as javascript and angularjs, and tomcat container and springmvc technologies used by background services.
After the browser inputs the URL, the loading process of the web page is that static resources such as css and pictures of the current page are requested, and a plurality of AJAX requests are initiated to the server to obtain corresponding resources. The Dashboard as the home page of the management software needs to display more information and further needs to initiate more requests.
When the page is not loaded completely, the page presents the style in loading, and the common processing mode of the page is to display a chrysanthemum and block the page at the bottom layer. The webpage does not support the operation of the user in the loading process. This approach serves several purposes: 1. preventing the user from repeatedly clicking on a request that results in duplication. 2. Unprocessed requests are prevented from accumulating, resulting in a page that is continuously unresponsive.
When the Dashboard page is in a loading state for a long time, the user experience is very poor, generally, the Dashboard page returns to the best state within 1000ms in a normal state, and returns to the best state within 3000ms in an abnormal state such as network timeout.
Therefore, in order to make the operation and maintenance management platform respond faster under the browser, an embodiment of the present invention provides a resource request method, as shown in fig. 1, which may include the steps of:
s1, responding to the current page triggering and loading the resource, and acquiring the concurrency number of the browser;
s2, grouping the resources to be loaded according to the 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 generates the shortest time-consuming request based on the browser concurrency threshold value, so that the operation and maintenance management platform can have higher response speed under the browser and reach the optimal state under the current version browser.
In some embodiments, grouping the resources to be loaded according to a resource integration policy to obtain a plurality of combinations, where the number of combinations is equal to the number of concurrency of the browser, further includes:
acquiring the quantity of resources to be loaded;
judging whether the quantity of the resources to be loaded is greater than a concurrency threshold value of the server or not;
and in response to the fact that the number of the resources to be loaded is not larger than the concurrency threshold value, grouping the resources to be loaded according to a resource integration strategy to obtain a combination which is the same as the concurrency number of the browser.
Specifically, since the server also has a concurrency handling threshold, when the amount of requests received by the server is greater than the threshold, the request is prohibited by the server. Therefore, after triggering the loading of the resources, it may be determined whether the number of the resources to be loaded is greater than a concurrency threshold of the server, and if not, the resources to be loaded may be directly grouped according to the resource integration policy to obtain a combination the same as the concurrency number of the browser, and then a corresponding loading request is generated based on the request to be loaded in each combination and sent to the server. The number of the loading requests generated in the way is equal to the number of the concurrent loading requests of the browser, 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, it sets a limit threshold for request concurrency based on various factors: 1. excessive concurrency for the client operating system involves port count and thread switching overhead. HTTP/1.1 has Keep Alive, support and multiplex the existing connection, after returning back to requesting, multiplex the connection request much faster. 3. Sending all requests to the server together would also likely trigger concurrency threshold control by the server to be BAN. Therefore, when the number of the loaded request resources exceeds the browser concurrency threshold value N, the browser only sends N concurrent requests to the server, the exceeded requests enter a staged state and are suspended by the browser to wait, and the requests can be sent to the server after the previous requests are finished. The concurrency limit of the browser causes concurrent requests to be put on a pipeline with the width of N to be executed in sequence, and the concurrent interface 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 combination with the same concurrency number as 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 Chrome browser as an example, the concurrency threshold is 6, and assuming that the total number of resources to be loaded on the Dashboard page is 30, 30 resources to be loaded may be integrated into 6 groups, and then each group generates a corresponding load request to be concurrently uploaded to the server. The server calls a corresponding interface to obtain the resources to be loaded according to the resources to be loaded carried in the received 6 loading requests, and because the total number of the resources to be loaded carried in the 6 loading requests does not exceed the concurrency threshold value of the server, the server can call the interface corresponding to each resource to be loaded concurrently, assuming that the response time of each interface is 200ms, and when the browser sends all the requests, the response time of the page is 200 ms.
In some embodiments, further comprising:
responding to the situation that the number of the resources to be loaded is larger than the concurrency threshold value, and calculating the request sending times according to the concurrency threshold value and the number 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 number of the concurrency 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 every 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 falling at the server side, 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 generating corresponding loading requests by the multiple combinations respectively, and finally dividing the loading requests into multiple times and sending the multiple times of loading requests to the server.
For example, the concurrency threshold of the server is 40, and the number of resources to be loaded is 70, and the number of sending times obtained by calculation may be 2 times, that is, a value obtained by rounding up the number of resources to be loaded at the concurrency threshold is used as the number of sending times, for example, 40 resources may be requested for the first time, 30 resources may be requested for the second time, and the number of requests sent each time is equal to the number of concurrency of the browser. 70 resources to be loaded can be grouped according to a resource integration policy, the number of the resources to be loaded in each combination can be different, as long as the total number of the resources to be loaded carried in the request sent for the first time is 40, and the total number of the 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 loading requests, and calling corresponding interfaces to acquire the resources to be loaded;
and the server converts the resources to be loaded into a preset format and returns the preset format to the browser.
In some embodiments, further comprising:
and the browser analyzes the received content and then loads the content to a corresponding position of the page.
Specifically, after receiving a plurality of loading requests, the server may concurrently acquire resources to be loaded in the loading requests, and then normalize the return value and the response into a json format, where the normalization is key: and in the object form, after the foreground acquires the response, extracting corresponding information according to a specific key.
In some embodiments, grouping the resources to be loaded according to a resource integration policy to obtain a plurality of combinations further includes:
acquiring the type, the attribute and/or the corresponding system of the resource to be loaded;
and grouping the resources to be loaded according to the types and the attributes of the resources to be loaded and/or a corresponding system.
Specifically, the resources to be loaded may be integrated according to the same type of function, the same storage device, or other similar attributes. For example, the server requests resources according to the same-class function integration, such as resource integration of alarm information and storage health; or integrating the resources to be loaded according to the same storage device, such as respectively integrating distributed storage, unified storage and a switch; or request resources are integrated according to other similar attributes, such as information integration acquired by one-time joint query of the database.
The scheme provided by the invention generates the shortest time-consuming request based on the browser concurrency threshold value, so that the operation and maintenance management platform can have higher response speed under the browser and reach the optimal state under the current version browser.
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 400, as shown in fig. 2, including:
an obtaining module 401 configured to respond to a current page trigger to load a resource, and obtain a concurrency number of a browser;
a grouping module 402 configured to group resources to be loaded according to a resource integration policy to obtain a plurality of combinations, where the number of the combinations is equal to the number of concurrency of the browser;
a generating module 403, configured to generate loading requests according to the resources to be loaded included in each combination respectively;
a sending module 404 configured to send the generated plurality of loading requests to a server.
The scheme provided by the invention generates the shortest time-consuming request based on the browser concurrency threshold value, so that the operation and maintenance management platform can have higher response speed under the browser and reach the optimal state under the current version browser.
In some embodiments, grouping the resources to be loaded according to a resource integration policy to obtain a plurality of combinations, where the number of combinations is equal to the number of concurrency of the browser, further includes:
acquiring the quantity of resources to be loaded;
judging whether the quantity of the resources to be loaded is greater than a concurrency threshold value of the server or not;
and in response to the fact that the number of the resources to be loaded is not larger than the concurrency threshold value, grouping the resources to be loaded according to a resource integration strategy to obtain a combination which is the same as the concurrency number of the browser.
In some embodiments, further comprising:
responding to the situation that the number of the resources to be loaded is larger than the concurrency threshold value, and calculating the request sending times according to the concurrency threshold value and the number 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 number of the concurrency 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 every time according to the concurrency number and the concurrency threshold.
In some embodiments, further comprising:
responding to the server receiving the loading requests, and calling corresponding interfaces to acquire the resources to be loaded;
and the server converts the resources to be loaded into a preset format and returns the preset format to the browser.
In some embodiments, further comprising:
and the browser analyzes the received content and then loads the content to a 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 includes:
acquiring the type, the attribute and/or the corresponding system of the resource to be loaded;
and grouping the resources to be loaded according to the types and the attributes of the resources to be loaded and/or a corresponding system.
The scheme provided by the invention generates the shortest time-consuming request based on the browser concurrency threshold value, so that the operation and maintenance management platform can have higher response speed under the browser and reach the optimal state under the current version browser.
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, comprising:
at least one processor 520; and
a memory 510, the memory 510 storing a computer program 511 executable on the processor, the processor 520 executing the program to perform the steps of:
triggering and loading resources in response to the current page, 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 loading requests according to the resources to be loaded contained in each combination;
and sending the generated plurality of 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, where the number of combinations is equal to the number of concurrency of the browser, further includes:
acquiring the quantity of resources to be loaded;
judging whether the quantity of the resources to be loaded is greater than a concurrency threshold value of the server or not;
and in response to the fact that the number of the resources to be loaded is not larger than the concurrency threshold value, grouping the resources to be loaded according to a resource integration strategy to obtain a combination which is the same as the concurrency number of the browser.
In some embodiments, further comprising:
responding to the situation that the number of the resources to be loaded is larger than the concurrency threshold value, and calculating the request sending times according to the concurrency threshold value and the number 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 number of the concurrency 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 every time according to the concurrency number and the concurrency threshold.
In some embodiments, further comprising:
responding to the server receiving the loading requests, and calling corresponding interfaces to acquire the resources to be loaded;
and the server converts the resources to be loaded into a preset format and returns the preset format to the browser.
In some embodiments, further comprising:
and the browser analyzes the received content and then loads the content to a 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 includes:
acquiring the type, the attribute and/or the corresponding system of the resource to be loaded;
and grouping the resources to be loaded according to the types and the attributes of the resources to be loaded and/or a corresponding system.
The scheme provided by the invention generates the shortest time-consuming request based on the browser concurrency threshold value, so that the operation and maintenance management platform can have higher response speed under the browser and reach the optimal state under the current version browser.
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, where the computer-readable storage medium 601 stores computer program instructions 610, and the computer program instructions 610, when executed by a processor, perform the following steps:
triggering and loading resources in response to the current page, 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 loading requests according to the resources to be loaded contained in each combination;
and sending the generated plurality of 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, where the number of combinations is equal to the number of concurrency of the browser, further includes:
acquiring the quantity of resources to be loaded;
judging whether the quantity of the resources to be loaded is greater than a concurrency threshold value of the server or not;
and in response to the fact that the number of the resources to be loaded is not larger than the concurrency threshold value, grouping the resources to be loaded according to a resource integration strategy to obtain a combination which is the same as the concurrency number of the browser.
In some embodiments, further comprising:
responding to the situation that the number of the resources to be loaded is larger than the concurrency threshold value, and calculating the request sending times according to the concurrency threshold value and the number 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 number of the concurrency 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 every time according to the concurrency number and the concurrency threshold.
In some embodiments, further comprising:
responding to the server receiving the loading requests, and calling corresponding interfaces to acquire the resources to be loaded;
and the server converts the resources to be loaded into a preset format and returns the preset format to the browser.
In some embodiments, further comprising:
and the browser analyzes the received content and then loads the content to a 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 includes:
acquiring the type, the attribute and/or the corresponding system of the resource to be loaded;
and grouping the resources to be loaded according to the types and the attributes of the resources to be loaded and/or a corresponding system.
The scheme provided by the invention generates the shortest time-consuming request based on the browser concurrency threshold value, so that the operation and maintenance management platform can have higher response speed under the browser and reach the optimal state under the current version browser.
Finally, it should be noted that, as will be understood by those skilled in the art, all or part of the processes of the methods of the above embodiments may be implemented by a computer program, which may be stored in a computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above.
Further, it should be appreciated that the computer-readable storage media (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 disclosed embodiments of the present invention.
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 present 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 of the invention 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 numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled 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 instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (10)

1. A resource request method, comprising the steps of:
triggering and loading resources in response to the current page, 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 loading requests according to the resources to be loaded contained in each combination;
and sending the generated plurality of loading requests to a server.
2. The method of claim 1, wherein the resources to be loaded are grouped according to a resource consolidation policy to obtain a number of combinations, wherein the number of combinations is equal to the number of concurrency of the browser, further comprising:
acquiring the quantity of resources to be loaded;
judging whether the quantity of the resources to be loaded is greater than a concurrency threshold value of the server or not;
and in response to the fact that the number of the resources to be loaded is not larger than the concurrency threshold value, grouping the resources to be loaded according to a resource integration strategy to obtain a combination which is the same as the concurrency number of the browser.
3. The method of claim 2, further comprising:
responding to the situation that the number of the resources to be loaded is larger than the concurrency threshold value, and calculating the request sending times according to the concurrency threshold value and the number 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 number of the concurrency of the browser multiplied by the request sending times.
4. The method of claim 3, wherein sending the generated plurality of load requests to a server, further comprises:
and determining the loading request sent to the server every time according to the concurrency number and the concurrency threshold.
5. The method of claim 1, further comprising:
responding to the server receiving the loading requests, and calling corresponding interfaces to acquire the resources to be loaded;
and the server converts the resources to be loaded into a preset format and returns the preset format to the browser.
6. The method of claim 5, further comprising:
and the browser analyzes the received content and then loads the content to a corresponding position of the page.
7. The method of claim 1, wherein the resources to be loaded are grouped according to a resource consolidation policy to obtain a plurality of combinations, further comprising:
acquiring the type, the attribute and/or the corresponding system of the resource to be loaded;
and grouping the resources to be loaded according to the types and the attributes of the resources to be loaded and/or a corresponding system.
8. A resource request system, comprising:
the acquisition module is configured to respond to the current page trigger and 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 generating module is configured to respectively 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.
9. A computer device, comprising:
at least one processor; and
memory storing a computer program operable on the processor, wherein the processor executes the program to perform the steps of the method according to any of claims 1-7.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, is adapted to carry out the steps of the method according to any one of claims 1 to 7.
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 true CN113590410A (en) 2021-11-02
CN113590410B 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前端性能优化算法", 计算机应用与软件, no. 12 *

Also Published As

Publication number Publication date
CN113590410B (en) 2023-12-22

Similar Documents

Publication Publication Date Title
CN108874640B (en) Cluster performance evaluation method and device
US10013267B1 (en) Pre-triggers for code execution environments
US10394477B2 (en) Method and system for memory allocation in a disaggregated memory architecture
CN106302565B (en) Scheduling method and system of service server
US7631034B1 (en) Optimizing node selection when handling client requests for a distributed file system (DFS) based on a dynamically determined performance index
US10552247B2 (en) Real-time monitoring alert chaining, root cause analysis, and optimization
CN113285883A (en) Access request current limiting method and device, electronic equipment and storage medium
DE102016125848A1 (en) Container application with dynamic subpack loader
US10200252B1 (en) Systems and methods for integrated modeling of monitored virtual desktop infrastructure systems
WO2015149505A1 (en) Sdn application integration, management and control method, system and device
CN112364110A (en) Metadata management method, device and equipment and computer storage medium
CN113094136A (en) Page display control method and device, storage medium and electronic equipment
US11073970B2 (en) Dashboard generation based on user interaction
CN111124609B (en) Data acquisition method and device, data acquisition equipment and storage medium
CN106411639A (en) Method and system for monitoring access data
JP2011197847A (en) System structure management device, system structure management method, and program
CN112698952A (en) Unified management method and device for computing resources, computer equipment and storage medium
CN113282392A (en) Interface service calling method and device, electronic equipment and storage medium
US20200092395A1 (en) Overload management of a transaction processing server
CN107332703B (en) Method and device for checking multi-application logs
US20190281134A1 (en) Sandboxing requests for web services
CN109286532B (en) Management method and device for alarm information in cloud computing system
US20180121329A1 (en) Uninstrumented code discovery
CN107046581A (en) A kind of monitoring method, device and the server of service operation state
CN113590410A (en) Resource request method, system, device and medium

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