CN111614494A - Network resource simulation method and device, electronic equipment and computer readable storage medium - Google Patents

Network resource simulation method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN111614494A
CN111614494A CN202010390414.5A CN202010390414A CN111614494A CN 111614494 A CN111614494 A CN 111614494A CN 202010390414 A CN202010390414 A CN 202010390414A CN 111614494 A CN111614494 A CN 111614494A
Authority
CN
China
Prior art keywords
resource
static
network
resources
incremental
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
CN202010390414.5A
Other languages
Chinese (zh)
Other versions
CN111614494B (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202010390414.5A priority Critical patent/CN111614494B/en
Publication of CN111614494A publication Critical patent/CN111614494A/en
Application granted granted Critical
Publication of CN111614494B publication Critical patent/CN111614494B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5041Network service management, e.g. ensuring proper service fulfilment according to agreements characterised by the time relationship between creation and deployment of a service
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application discloses a simulation method and device of network resources, electronic equipment and a computer readable storage medium, and relates to the technical field of computer simulation. The specific implementation scheme is as follows: receiving an access request for an emulation service for a network resource; if the static resource corresponding to the access request is an inventory resource, accessing the static resource through a static resource library of the network resource; if the static resource corresponding to the access request is an incremental resource, accessing the static resource through a preset incremental resource library; the inventory resource is a static resource which is already existed in a static resource library of the network resource when the simulation service is deployed, and the incremental resource is a static resource which is related to a simulation process of the simulation service after the simulation service is deployed and is not newly added to the network resource in the static resource library. The method and the device can reduce the complexity of deploying the simulation service.

Description

Network resource simulation method and device, electronic equipment and computer readable storage medium
Technical Field
The present invention relates to computer simulation technologies in the field of computer technologies, and in particular, to a method and an apparatus for simulating network resources, an electronic device, and a computer-readable storage medium.
Background
In Web (Web) services, a Web page is generally rendered by using static resources such as pictures, videos, fonts and the like, and particularly for a large website, more static resources need to be deployed, and meanwhile, the updating speed of the static resources is very high, so that the deployment of simulation services is complex.
Disclosure of Invention
The application provides a simulation method and device of network resources, electronic equipment and a computer readable storage medium, which are used for solving the problem that the existing simulation service is complex to deploy.
In a first aspect, an embodiment of the present application provides a method for simulating a network resource, including:
receiving an access request for an emulation service for a network resource;
if the static resource corresponding to the access request is an inventory resource, accessing the static resource through a static resource library of the network resource;
if the static resource corresponding to the access request is an incremental resource, accessing the static resource through a preset incremental resource library;
wherein the stock resource is a static resource already existing in a static resource library of the network resource, and the incremental resource is a static resource associated with a simulation process of the simulation service and not existing in the static resource library.
In a second aspect, an embodiment of the present application provides an apparatus for simulating a network resource, including:
a receiving module for receiving an access request for a simulation service of a network resource;
the first access module is used for accessing the static resource through a static resource library of the network resource if the static resource corresponding to the access request is a stock resource;
the second access module is used for accessing the static resource through a preset incremental resource library if the static resource corresponding to the access request is an incremental resource;
wherein the stock resource is a static resource already existing in a static resource library of the network resource, and the incremental resource is a static resource associated with a simulation process of the simulation service and not existing in the static resource library.
In a third aspect, an embodiment of the present application provides an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of the above.
In a fourth aspect, an embodiment of the present application provides a non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of the above.
One embodiment in the above application has the following advantages or benefits: the method comprises the steps of receiving an access request of a simulation service aiming at network resources; if the static resource corresponding to the access request is an inventory resource, accessing the static resource through a static resource library of the network resource; and if the static resource corresponding to the access request is an incremental resource, accessing the static resource through a preset incremental resource library. According to the method and the device, the stock resources are accessed through the static resource library accessing the network resources, the increment resources are accessed through the access of the preset increment resource library, normal access to the stock resources in the static resources can be realized without deploying all the static resources, and the complexity of deploying the simulation service is reduced.
Other effects of the above-described alternative will be described below with reference to specific embodiments.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
FIG. 1 is a flow diagram of a method of simulating network resources according to an embodiment of the present application;
FIG. 2A is a scene diagram of a simulation method of network resources in the related art;
FIG. 2B is a scenario diagram of a simulation method of a network resource according to an embodiment of the present application;
FIG. 3 is a schematic structural diagram of an apparatus for simulating network resources according to an embodiment of the present application
Fig. 4 is a block diagram of an electronic device for implementing the method for simulating a network resource according to the embodiment of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The application provides a simulation method of network resources.
In one embodiment, the simulation method of the network resource comprises the following steps:
step S101: an access request for an emulation service of a network resource is received.
The technical scheme in the embodiment can be applied to off-line environment construction, on-line simulation environment, on-line sandbox environment, product/research and development personnel experiment environment and the like.
Taking a website as an example, the website is a real network resource, and for some purposes or needs, it may be necessary to deploy a simulated website online, which is a simulation service for the website, and in order to ensure the accuracy of the simulation result, the static resource of the simulated website needs to be consistent with the real website.
In practice, the user may access the emulation service by accessing the service address of the emulation service through a browser.
Step S102: and if the static resource corresponding to the access request is the stock resource, accessing the static resource through the static resource library of the network resource.
The stock resource in this embodiment refers to a static resource existing in a static resource pool of the network resource. In other words, real network resources may run on these static resources, and the static resources that are called by the emulation service are consistent with the static resources of the real network resources when the same process is performed, which are referred to as inventory resources.
Because the stock resources needed to be used in the simulation service are consistent with the static resources in the network resources, the static resources can be directly accessed through the static resource library accessing the network resources, and thus the static resources do not need to be additionally deployed.
For a large website, the amount of static resources is very large, including a plurality of static resources such as pictures and videos, and the capacity may be as high as several dozen of Gigabytes (GB), if these stock resources are deployed alone, not only a large amount of hardware resources need to be consumed, but also a large amount of time needs to be consumed, which may cause a reduction in deployment efficiency, and if the static resource library of network resources is directly utilized, these stock resources do not need to be deployed, which can not only ensure synchronization with real network resources, but also reduce deployment time and resource occupation, and reduce workload.
In an optional specific embodiment, the static repository includes a CDN (Content delivery network) and a back source address, where the step S102 specifically includes:
if the valid cached static resources exist in the CDN of the network resources, accessing the cached static resources in the CDN;
and if the CDN of the network resource does not have an effective cached static resource, accessing the static resource at the back source address.
That is to say, if the static resource that needs to be called in the simulation service is an inventory resource, an effective cache resource in the CDN is accessed first, and if there is no effective cache resource in the CDN, specifically, if there is no cache resource in the CDN or the cache resource in the CDN is expired, the static resource is obtained through a source return address of the static resource.
Therefore, the CDN or the return source address can access the stock resources, and the simulation service of the network resources and the consistency of the static resources in the network resources can be ensured.
Step S103: and if the static resource corresponding to the access request is an incremental resource, accessing the static resource through a preset incremental resource library.
The incremental resource in this embodiment refers to a resource that is relied on by the simulation service in the simulation process and does not exist in the static resource library of the network resource.
It can be understood that the simulation service of the network resource and the network resource themselves are operated independently, so that after the deployment of the simulation service is completed, the simulation process is to operate some services that have not been provided by the network resource to determine whether the services can operate normally, and the static resources that are relied on by the operation process of the services that have not been provided by the network resource do not exist in the static resource library of the network resource, which is referred to as incremental resources herein.
Generally, the number of the incremental resources is much smaller than the stock resources, so in actual implementation, if the static resource needs to be accessed, it may be first retrieved whether the static resource exists in the incremental resource library, if so, the static resource is directly accessed, and if the static resource does not exist in the incremental resource library, it is indicated that the static resource is the stock resource, and the static resource may be accessed by executing step S102. Thus, the access time is reduced, and the processing efficiency is improved.
According to the method and the device, the stock resources are accessed through the static resource library accessing the network resources, the increment resources are accessed through the access of the preset increment resource library, normal access to the stock resources in the static resources can be realized without deploying all the static resources, and the complexity of deploying the simulation service is reduced.
In an alternative embodiment, the step 103 further includes: and deploying the incremental resource library.
In this embodiment, an incremental resource library needs to be deployed first, and the newly added static resources in the incremental resource library include static resources that are dependent on the simulation process.
It can be understood that, during the running process of the simulation service, due to some test requirements, some specific static resources need to be provided, and the static resources are deployed in the incremental resource library to be called when needed, so that the simulation process is completed.
In this embodiment, an incremental resource library is deployed to store these static resources with differences, thereby ensuring the reliability and effectiveness of the simulation service.
Optionally, after deploying the incremental repository, the method further includes:
and adding the static resources which are changed in the simulation process as the static resources in the incremental resource library.
In order to ensure the consistency between the simulation service and the network resource, in this embodiment, the static resource in the incremental resource library is also updated according to the static resource change in the simulation process.
It can be understood that when the deployment of the simulation service is completed and the simulation is not performed yet, the static resources in the simulation service and the network resources are consistent, but some static resources may be changed as the simulation service is performed, and in this embodiment, the static resources that are changed are further updated to the incremental resource library, so as to ensure the validity of the operation result of the simulation service.
Referring to fig. 2A, fig. 2A is a scene diagram of a simulation method of network resources in the related art. The user 201A refers to a person who uses the simulation service of the network resource, such as a technician, a product developer, and the like, and when using the simulation service of the network resource, the user 201A accesses the simulation data 203A through the browser 202A and loads a page.
Here, the simulation data 203A refers to data involved in simulation service processes, and when accessing the data, pages generated according to the simulation data 203A are loaded, and the pages may include some static resources, so that when loading the pages, corresponding static resources need to be loaded.
In the related art, a resource library including all static resources needs to be deployed, and when a static resource needs to be loaded, the required static resource is obtained by accessing an address of the resource library, that is, the simulated static resource address 204A shown in fig. 2A.
Referring to fig. 2B, fig. 2B is a scenario diagram of a simulation method for network resources according to an embodiment of the present application. Similarly to the related art shown in fig. 2A, the user 201B also refers to a person of the simulation service using the network resource, and when using the simulation service accessing the network resource, the user 201B accesses the simulation data 203B through the browser 202B and loads a page.
Unlike the related art shown in fig. 2A, in the embodiment, if a static resource needs to be loaded in the page, the static resource simulation apparatus 204B is further accessed to obtain the required static resource through the static resource simulation apparatus 204B.
Specifically, when the static resource is obtained by the static resource simulation apparatus 204B, it is first determined whether the static resource is an inventory resource or an incremental resource, where the inventory resource refers to a static resource that already exists in a static resource library of the simulated network resource, and the incremental resource refers to a static resource that is associated with the simulation process of the simulation service and does not exist in the static resource library.
If the static resource is an incremental resource, the static resource is accessed by directly accessing a pre-deployed incremental resource library through an incremental static resource address 205B, the incremental resource library is a pre-deployed resource library including all incremental resources, the incremental static resource address 205B refers to an address of the resource library accessing the incremental resource, and the incremental resource has smaller capacity relative to all the static resources, so that the deployment speed is high, and the deployment difficulty is relatively smaller.
If the static resource is an inventory resource, the static resource is accessed through a cache resource in the CDN206B accessing the network resource, the CDN206B refers to the CDN206B accessing the network resource, and since the inventory resource of the simulation service is consistent with the static resource of the simulated network resource, the static resource required in the simulation process can be directly obtained in the same manner as the static resource is obtained by the network resource. If the static resource is not cached in the CDN206B or the cached static resource has expired, the static resource is accessed through the back-to-source address 207B of the static resource of the network resource.
A CDN (content delivery network) refers to a virtual network deployed on the basis of the internet formed by placing node servers at various locations in the network, and can direct a user request to an optimal node according to network traffic, connection of nodes, load, distance from a user, response time, and other factors, so as to improve access speed. Back to the source address refers to the source address of the data sent to the CDN. Therefore, when valid cache data exist in the CDN, the static resource is directly obtained through the CDN, and if valid cache data do not exist in the CDN, that is, if cache data do not exist or exist in the CDN, but the cache data are out of date, the required static resource is directly obtained through the source address, which can improve the speed of obtaining the static resource.
Compared with the related technology, the method and the device can realize the simulation of the network resources by using the simulation service basically consistent with the real network resources, and all static resources do not need to be deployed in the simulation process, so that a large amount of deployment time and hardware resources are saved.
Referring to fig. 3, an embodiment of the present application further provides a simulation apparatus 300 for network resources, including:
a receiving module 301, configured to receive an access request for an emulation service of a network resource;
a first accessing module 302, configured to access, if a static resource corresponding to the access request is an inventory resource, the static resource through a static resource library of the network resource;
a second access module 303, configured to access the static resource through a preset incremental resource library if the static resource corresponding to the access request is an incremental resource;
wherein the stock resource is a static resource already existing in a static resource library of the network resource, and the incremental resource is a static resource associated with a simulation process of the simulation service and not existing in the static resource library.
Optionally, the method further includes: and the deployment module is used for deploying the incremental resource library, wherein the newly added static resources in the incremental resource library comprise static resources which change in the simulation process.
Optionally, the method further includes: and the adding module is used for adding the static resources added by the network resources relative to the simulation service into the newly added static resources in the incremental resource library.
Optionally, the static repository includes a content delivery network CDN and a back source address, and the first access module 302 includes:
the first access sub-module is used for accessing the cached static resource in the CDN if the effective cached static resource exists in the CDN of the network resource;
and the second access submodule is used for accessing the static resource at the back source address if no effective cached static resource exists in the CDN of the network resource.
The simulation apparatus for network resources of this embodiment can implement the steps of the simulation method embodiment for network resources, so that at least all the technical effects can be achieved, and details are not described here.
According to an embodiment of the present application, an electronic device and a readable storage medium are also provided.
Fig. 4 is a block diagram of an electronic device according to an embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.
As shown in fig. 4, the electronic apparatus includes: one or more processors 401, memory 402, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input/output apparatus (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). In fig. 4, one processor 401 is taken as an example.
Memory 402 is a non-transitory computer readable storage medium as provided herein. The memory stores instructions executable by at least one processor to cause the at least one processor to perform the method for simulating network resources provided herein. The non-transitory computer readable storage medium of the present application stores computer instructions for causing a computer to perform the method of simulating a network resource provided by the present application.
The memory 402, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules (e.g., the receiving module 301, the first accessing module 302, and the second accessing module 303 shown in fig. 3) corresponding to the simulation method of the network resource in the embodiment of the present application. The processor 401 executes various functional applications of the server and data processing by running non-transitory software programs, instructions, and modules stored in the memory 402, that is, implements the simulation method of the network resource in the above method embodiment.
The memory 402 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created from use of the electronic device of the simulation apparatus of the network resource, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 402 may optionally include memory located remotely from the processor 401, which may be connected to the electronics of the emulation device of the network resource via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device of the simulation method of network resources may further include: an input device 403 and an output device 404. The processor 401, the memory 402, the input device 403 and the output device 404 may be connected by a bus or other means, and fig. 4 illustrates an example of a connection by a bus.
The input device 403 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic equipment of the emulation device of the network resource, such as a touch screen, keypad, mouse, track pad, touch pad, pointer stick, one or more mouse buttons, track ball, joystick, or like input device. The output devices 404 may include a display device, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibrating motors), among others. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device can be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
According to the technical scheme of the embodiment of the application, the inventory resources are accessed through the static resource library accessing the network resources, the increment resources are accessed through the preset increment resource library, normal access to the inventory resources in the static resources can be realized without deploying all the static resources, and the complexity of deploying the simulation service is reduced.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, and the present invention is not limited thereto as long as the desired results of the technical solutions disclosed in the present application can be achieved.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A method for simulating a network resource, comprising:
receiving an access request for an emulation service for a network resource;
if the static resource corresponding to the access request is an inventory resource, accessing the static resource through a static resource library of the network resource;
if the static resource corresponding to the access request is an incremental resource, accessing the static resource through a preset incremental resource library;
wherein the stock resource is a static resource already existing in a static resource library of the network resource, and the incremental resource is a static resource associated with a simulation process of the simulation service and not existing in the static resource library.
2. The method for simulating a network resource of claim 1, wherein before accessing the static resource through the predetermined incremental resource pool, the method further comprises:
deploying an incremental resource library, wherein static resources in the incremental resource library comprise static resources on which a simulation process depends.
3. The method for simulating a network resource of claim 2, wherein after deploying the incremental resource repository, further comprising:
and adding the static resources which are changed in the simulation process as the static resources in the incremental resource library.
4. The method of claim 1, wherein the static repository includes a Content Delivery Network (CDN) and a back-to-source address, and wherein accessing the static resource through the static repository of network resources comprises:
if the valid cached static resources exist in the CDN of the network resources, accessing the cached static resources in the CDN;
and if the CDN of the network resource does not have an effective cached static resource, accessing the static resource at the back source address.
5. An apparatus for simulating a network resource, comprising:
a receiving module for receiving an access request for a simulation service of a network resource;
the first access module is used for accessing the static resource through a static resource library of the network resource if the static resource corresponding to the access request is a stock resource;
the second access module is used for accessing the static resource through a preset incremental resource library if the static resource corresponding to the access request is an incremental resource;
wherein the stock resource is a static resource already existing in a static resource library of the network resource, and the incremental resource is a static resource associated with a simulation process of the simulation service and not existing in the static resource library.
6. The apparatus for simulating a network resource of claim 5, further comprising:
and the deployment module is used for deploying the incremental resource library, wherein the newly added static resources in the incremental resource library comprise static resources which change in the simulation process.
7. The apparatus for simulating a network resource of claim 6, further comprising:
and the adding module is used for adding the static resources added by the network resources relative to the simulation service into the newly added static resources in the incremental resource library.
8. The apparatus for emulating a network resource of claim 5, wherein the static repository comprises a Content Delivery Network (CDN) and a back source address, the first accessing module comprising:
the first access sub-module is used for accessing the cached static resource in the CDN if the effective cached static resource exists in the CDN of the network resource;
and the second access submodule is used for accessing the static resource at the back source address if no effective cached static resource exists in the CDN of the network resource.
9. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-4.
10. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-4.
CN202010390414.5A 2020-05-08 2020-05-08 Network resource simulation method and device, electronic equipment and computer readable storage medium Active CN111614494B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010390414.5A CN111614494B (en) 2020-05-08 2020-05-08 Network resource simulation method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010390414.5A CN111614494B (en) 2020-05-08 2020-05-08 Network resource simulation method and device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111614494A true CN111614494A (en) 2020-09-01
CN111614494B CN111614494B (en) 2023-04-07

Family

ID=72203166

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010390414.5A Active CN111614494B (en) 2020-05-08 2020-05-08 Network resource simulation method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111614494B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107454050A (en) * 2016-06-01 2017-12-08 腾讯科技(深圳)有限公司 A kind of method and device for accessing Internet resources
CN107465722A (en) * 2017-07-04 2017-12-12 阿里巴巴集团控股有限公司 The implementation method and device of web access
CN108932332A (en) * 2018-07-05 2018-12-04 麒麟合盛网络技术股份有限公司 The loading method and device of static resource
CN110515927A (en) * 2019-08-28 2019-11-29 中国工商银行股份有限公司 Data processing method and its system, electronic equipment and medium
CN110858197A (en) * 2018-08-21 2020-03-03 北京京东尚科信息技术有限公司 Method and device for synchronizing data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107454050A (en) * 2016-06-01 2017-12-08 腾讯科技(深圳)有限公司 A kind of method and device for accessing Internet resources
CN107465722A (en) * 2017-07-04 2017-12-12 阿里巴巴集团控股有限公司 The implementation method and device of web access
CN108932332A (en) * 2018-07-05 2018-12-04 麒麟合盛网络技术股份有限公司 The loading method and device of static resource
CN110858197A (en) * 2018-08-21 2020-03-03 北京京东尚科信息技术有限公司 Method and device for synchronizing data
CN110515927A (en) * 2019-08-28 2019-11-29 中国工商银行股份有限公司 Data processing method and its system, electronic equipment and medium

Also Published As

Publication number Publication date
CN111614494B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
US20210208951A1 (en) Method and apparatus for sharing gpu, electronic device and readable storage medium
JP2022023769A (en) Method for allocating server resource, device, electronic device, computer readable storage medium and computer program
JP7170768B2 (en) Development machine operation task processing method, electronic device, computer readable storage medium and computer program
CN111666585A (en) Method and device for accessing sub-application, electronic equipment and readable storage medium
CN110704162B (en) Method, device and equipment for sharing container mirror image by physical machine and storage medium
JP7194214B2 (en) Data processing method and device, electronic device, storage medium, and computer program for mini appli
CN109656646B (en) Remote desktop control method, device, equipment and virtualization chip
CN112000394A (en) Method, apparatus, device and storage medium for accessing an applet
CN111767089A (en) Method, device and equipment for loading file and storage medium
CN110752968B (en) Performance benchmark test method and device, electronic equipment and storage medium
CN114090223A (en) Memory access request scheduling method, device, equipment and storage medium
CN111459813B (en) Test processing method and device
CN111885114A (en) Method, device and storage medium for upgrading application program interface module in gateway
CN111563253B (en) Intelligent contract operation method, device, equipment and storage medium
CN113254043A (en) Web front-end project processing method and device, electronic equipment and storage medium
CN111767059B (en) Deployment method and device of deep learning model, electronic equipment and storage medium
US20210263912A1 (en) Method for data processing based on smart contract and device
CN111796851A (en) Client base library updating method and device, electronic equipment and storage medium
US10542111B2 (en) Data communication in a clustered data processing environment
CN111966471A (en) Access method, device, electronic equipment and computer storage medium
CN111614494B (en) Network resource simulation method and device, electronic equipment and computer readable storage medium
CN110908675A (en) Operating environment acquisition method and device and electronic equipment
CN115576565A (en) Application program deployment method and device, electronic equipment and storage medium
CN114661274A (en) Method and device for generating intelligent contract
CN116685946A (en) Reloading of updated shared libraries without stopping execution of an application

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