CN113055443B - Resource data deployment method, device, equipment and storage medium - Google Patents

Resource data deployment method, device, equipment and storage medium Download PDF

Info

Publication number
CN113055443B
CN113055443B CN202110194487.1A CN202110194487A CN113055443B CN 113055443 B CN113055443 B CN 113055443B CN 202110194487 A CN202110194487 A CN 202110194487A CN 113055443 B CN113055443 B CN 113055443B
Authority
CN
China
Prior art keywords
resource
address
data
resource address
returned
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110194487.1A
Other languages
Chinese (zh)
Other versions
CN113055443A (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 QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century 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 QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202110194487.1A priority Critical patent/CN113055443B/en
Publication of CN113055443A publication Critical patent/CN113055443A/en
Application granted granted Critical
Publication of CN113055443B publication Critical patent/CN113055443B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • 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/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • 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/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • 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)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention discloses a resource data deployment method, a device, equipment and a storage medium. The method comprises the following steps: the method comprises the steps of sending resource data to address generating equipment and receiving a resource address returned by the address generating equipment; the address generating device is used for generating a resource address for the resource data and storing the resource data into the resource address after generating the resource address for the resource data; performing resource inquiry on a resource address returned by the address generating equipment, and determining a resource data storage state of the resource address; and filtering out a normal resource address from the resource address returned by the address generating equipment according to the resource data storage state of the resource address, and uploading the normal resource address to the data server. The invention firstly inquires the resource, determines whether the resource address is normal, intercepts the abnormal resource address, uploads the normal resource address, ensures that the resource addresses stored in the data server are all normal resource addresses, and does not cause the problem of resource data loading failure.

Description

Resource data deployment method, device, equipment and storage medium
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a method, an apparatus, a device, and a storage medium for deploying resource data.
Background
With the rapid development of network technology, users can perform various operations through a network, wherein, the deployment of resource data through the network is a more common operation. For example: uploading the resource data to the network, generating a link address of the resource data, and uploading the link address of the resource data to the data server, so that the data server can provide the link address of the resource data for the user terminal, and the user terminal loads the resource data through the link address, thereby realizing the sharing of the resource data.
Currently, when resource data is deployed, the resource data is sent to CDN (Content Delivery Network ) devices through a configuration platform; the CDN equipment generates a link address of the resource data, returns the link address to the configuration platform, and stores the resource data to the link address; and the configuration platform uploads the link address returned by the CDN equipment to the data server so as to be used by the user side. However, since the CDN device does not support synchronous execution of the resource data storage and the link address return, and the resource data storage requires a certain time, the CDN device preferentially returns the link address to the configuration platform after generating the link address for the resource data, and then stores the resource data to the link address. However, in this process, the storage condition of the resource data is unknown, and if the storage of the resource data fails, the problem of failure in loading the resource data will occur when the user side loads the resource data by using the link address.
Disclosure of Invention
The embodiment of the invention aims to provide a resource data deployment method, device, equipment and storage medium, which are used for solving the problem that in the prior art, when a user side loads resource data by using a link address under the condition that the storage condition of the resource data is unknown, the loading failure of the resource data is easy to occur.
Aiming at the technical problems, the embodiment of the invention is solved by the following technical scheme:
in a first aspect of the present invention, there is provided a resource data deployment method, including: transmitting resource data to address generating equipment, and receiving a resource address returned by the address generating equipment; the address generating device is used for generating a resource address for the resource data and storing the resource data to the resource address after generating the resource address for the resource data; performing resource inquiry on a resource address returned by the address generating equipment, and determining a resource data storage state of the resource address; and filtering a normal resource address from the resource address returned by the address generating equipment according to the resource data storage state of the resource address, and uploading a preset data server so that the data server can send the normal resource address to a client.
Wherein the resource data storage state comprises: normal or abnormal state; the resource inquiry is carried out for the resource address returned by the address generating device, and the resource data storage state of the resource address is determined, which comprises the following steps: inquiring whether the resource address stores resource data or not; under the condition that the resource address stores the resource data, determining the resource data storage state of the resource address as a normal state; and determining the resource data storage state of the resource address as an abnormal state in the case that the resource address does not store the resource data.
Wherein the resource data storage state comprises: normal or abnormal state; the resource inquiry is carried out for the resource address returned by the address generating device, and the resource data storage state of the resource address is determined, which comprises the following steps: storing the resource address returned by the address generating device into a data stack; in the preset waiting time length, carrying out polling operation on the resource address stored in the data stack; the polling operation is used for executing the following operations for each resource address: inquiring whether the resource address stores resource data or not; deleting the resource address in the data stack if the resource address stores resource data; reserving the resource address in the data stack if the resource address does not store resource data; after the waiting time length is over, the resource data storage state of the resource address reserved in the data stack is determined to be an abnormal state, and the resource data storage state of the resource address deleted from the data stack is determined to be a normal state.
The storing the resource address returned by the address generating device in the data stack includes: intercepting a data message sent to the data server; attempting to extract a resource address in the data message; under the condition that the resource address is extracted from the data message, taking the resource address as the resource address returned by the address generating equipment, and storing the resource address into a data stack; and sending the data message to the data server under the condition that the resource address is not extracted from the data message.
The filtering the normal resource address and uploading the preset data server comprises the following steps: under the condition that part of the resource addresses extracted from the data message are abnormal resource addresses, generating a new data message according to the filtered normal resource addresses and sending the new data message to the data server; wherein, the normal resource address refers to a normal state resource address; the abnormal resource address refers to a resource address in an abnormal state; the method further comprises the steps of: and discarding the data message when all the resource addresses extracted from the data message are abnormal resource addresses.
Wherein the querying whether the resource address stores resource data includes: sending a resource query request to the resource address; receiving a query response message returned by the resource address; when the query response message is that resources exist, determining that the resource address stores resource data; and when the query response message is that no resource exists, determining that the resource address does not store resource data.
Wherein the method further comprises: filtering out abnormal resource addresses from the resource addresses returned by the address generating equipment according to the resource data storage state of the resource addresses; generating a resource address abnormality prompt according to the abnormal resource address, and displaying the resource address abnormality prompt in a preset display device.
Wherein the method further comprises: starting from resource inquiry aiming at the resource address returned by the address generating equipment, displaying a preset uploading waiting prompt in a preset display device; the display time length of the uploading waiting prompt is greater than or equal to the resource address uploading time length; and the resource address uploading duration starts from resource inquiry aiming at the resource address returned by the address generating equipment until the normal resource address is filtered out and a preset data server is uploaded.
In a second aspect of the present invention, there is also provided a resource data deployment apparatus, including: the sending and receiving module is used for sending the resource data to the address generating equipment and receiving the resource address returned by the address generating equipment; the address generating device is used for generating a resource address for the resource data and storing the resource data to the resource address after generating the resource address for the resource data; the inquiring and determining module is used for inquiring the resource for the resource address returned by the address generating equipment and determining the resource data storage state of the resource address; and the filtering and uploading module is used for filtering out a normal resource address from the resource addresses returned by the address generating equipment according to the resource data storage state of the resource addresses and uploading a preset data server so that the data server can send the normal resource address to the client.
In a third aspect of the embodiment of the present invention, there is also provided an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus; a memory for storing a computer program; a processor for carrying out the method steps of any one of claims 1-8 when executing a program stored on a memory.
In a fourth aspect of the present invention, there is also provided a computer readable storage medium having instructions stored therein which, when run on a computer, cause the computer to perform any of the above-described resource data deployment methods.
In a fifth aspect of the invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any of the resource data deployment methods described above.
According to the resource data deployment method, device, equipment and storage medium provided by the embodiment of the invention, after the resource address returned by the address generation equipment is searched, whether the resource address already stores the resource data is searched, whether the resource address is normal is determined, further, in the resource address returned by the address generation equipment, the abnormal resource address is intercepted, the normal resource address is uploaded, the resource address stored in the data server is ensured to be the normal resource address, and even if the time difference exists between the returned resource address of the address generation equipment and the stored resource data, the problem of resource data loading failure cannot occur under the condition that the storage condition of the resource data is unknown.
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.
FIG. 1 is a flow chart of a method of resource data deployment according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method of resource data deployment according to an embodiment of the present invention;
FIG. 3 is a flow chart of a method of resource data portions according to an embodiment of the invention;
FIG. 4 is a schematic diagram of a configuration interface according to an embodiment of the invention;
FIG. 5 is a schematic diagram of an upload wait hint in accordance with one embodiment of the present invention;
FIG. 6 is a diagram illustrating an exception hint for a resource address according to one embodiment of the present invention;
FIG. 7 is a block diagram of a resource data deployment apparatus according to an embodiment of the present invention;
fig. 8 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions of the embodiments of the present invention will be described below with reference to the accompanying drawings in the embodiments of the present invention.
The embodiment of the invention provides a resource data deployment method. The execution subject of the embodiment of the invention can be a configuration platform. The configuration platform is, for example, a background system of the resource platform. The resource platform includes, but is not limited to: a video platform.
As shown in fig. 1, a flowchart of a resource data deployment method according to an embodiment of the present invention is shown.
Step S101, resource data are sent to address generating equipment, and a resource address returned by the address generating equipment is received; the address generating device is used for generating a resource address for the resource data and storing the resource data to the resource address after generating the resource address for the resource data.
And the address generating device is used for generating a resource address for the resource data, returning the resource address to the configuration platform and storing the resource data to the resource address. Further, the types of address generating devices include, but are not limited to: CDN devices. The address generating device returns the resource address first, and then stores the resource data to the resource address.
Resource data including, but not limited to: video asset data, picture asset data, and text asset data.
The resource address refers to the link address. Further, the resource address may be a URL (Uniform Resource Locator ) address.
Specifically, at least one resource data is transmitted to the address generating device, and a resource address returned by the address generating device for each resource data is received.
Step S102, inquiring the resource of the resource address returned by the address generating equipment, and determining the resource data storage state of the resource address.
A resource data storage state, comprising: normal state or abnormal state.
The normal state means that the resource address stores the resource data.
An abnormal state refers to the resource address not storing resource data.
Specifically, a resource query is performed for each resource address returned by the address generating device. Further, for each resource address, inquiring whether the resource address stores resource data; under the condition that the resource address stores the resource data, determining the resource data storage state of the resource address as a normal state; and determining the resource data storage state of the resource address as an abnormal state in the case that the resource address does not store the resource data.
Step S103, filtering out a normal resource address from the resource addresses returned by the address generating equipment according to the resource data storage state of the resource addresses, and uploading a preset data server so that the data server can send the normal resource address to a client.
The state of the resource address includes: normal resource addresses and abnormal resource addresses.
The normal resource address refers to a normal state resource address.
The abnormal resource address refers to a resource address in an abnormal state.
And the data server is used for storing the resource address of the resource data. Of course, the data server may also record the location of the resource data in the page.
Specifically, the resource address in the normal state is filtered out from the resource addresses returned by the address generating device, and the resource address in the normal state is uploaded to the data server.
The user side sends a page loading request to the data server, and the data server determines the resource address corresponding to each resource data in the page according to the page corresponding to the page loading request. After receiving the resource addresses corresponding to the resource data in the page, the user side obtains the resource data from the network side according to the resource addresses and displays the resource data.
In this embodiment, after the resource address returned by the address generating device, the resource is firstly queried, whether the resource address already stores the resource data is queried, whether the resource address is normal is determined, and then in the resource address returned by the address generating device, the abnormal resource address is intercepted, the normal resource address is uploaded, so that the resource address stored in the data server is ensured to be the normal resource address, and even if the time difference exists between the returned resource address of the address generating device and the stored resource data, the problem of failure in loading the resource data cannot occur under the condition that the storage condition of the resource data is unknown.
In order to make the embodiments of the present invention more clear, a more specific resource data deployment method is provided below. As shown in fig. 2, a flowchart of a resource data deployment method according to an embodiment of the present invention is shown.
Step S201, resource data is sent to the address generating device, and the resource address returned by the address generating device is received.
Step S202, the resource address returned by the address generating device is stored in a data stack.
Because the address generating device returns the resource address faster, the resource inquiry can be performed on a plurality of resource addresses in a centralized way. Further, since the address generating device may store a plurality of resource data in parallel, in order to reduce the waiting time of the user, the present embodiment may send the plurality of resource data to the address generating device, and perform a centralized resource query on a plurality of resource addresses returned by the address generating device.
In this embodiment, each resource address returned by the address generating device may be stored in the data stack within a preset period of time.
In this embodiment, a data message sent to the data server may be intercepted; attempting to extract a resource address in the data message; under the condition that the resource address is extracted from the data message, taking the resource address as the resource address returned by the address generating equipment, and storing the resource address into a data stack; and sending the data message to the data server under the condition that the resource address is not extracted from the data message. Further, ajax (Asynchronous Javascript And XML And HTML, asynchronous JavaScript and XML or HTML) may be used to intercept data messages sent to the data server.
Further, since there may be multiple first interfaces connected to the address generating device by the configuration platform and the resource addresses need to be uploaded to the data server, in order to avoid identifying the resource address returned by the address generating device at each first interface, the data message sent to the data server may be intercepted at the second interface connected to the data server by the configuration platform, and the intercepting operation has global performance, does not miss the resource address, and has high efficiency.
In step S203, a polling operation is performed on the resource addresses stored in the data stack within a preset waiting time length, so as to determine a resource data storage status of each resource address.
The length of the waiting time is an empirical value or a value obtained by experiment. Further, the waiting time length is at least a time for the address generating device to store one resource data.
The polling operation is used for executing the following operation for each resource address:
step S1, inquiring whether the resource address stores resource data or not; if yes, executing step S2; if not, step S3 is performed.
It may be requested via HTTP (Hyper Text Transfer Protocol ) to query whether the resource address stores resource data.
In this embodiment, a resource acquisition request may be sent to a resource address; receiving resource data returned by the resource address, and if the resource data is returned, determining that the resource address stores the resource data; if the resource data is not returned, it is determined that the resource address does not store the resource data. Of course, to eliminate the problem of network failure, the resource acquisition request may be sent to the resource address multiple times, and if the resource data is not returned multiple times, it is determined that the resource address does not store the resource data. Further, the resource acquisition request may be a get request.
In this embodiment, a resource query request may also be sent to the resource address; receiving a query response message returned by the resource address; when the query response message is that resources exist, determining that the resource address stores resource data; and when the query response message is that no resource exists, determining that the resource address does not store resource data. Further, the resource query request may be an Option request. The Option request does not return the resource data, the request speed is high, the request time of the resource is greatly saved, and the request efficiency is improved.
And step S2, deleting the resource address in the data stack under the condition that the resource address stores resource data.
And step S3, reserving the resource address in the data stack under the condition that the resource address does not store resource data.
Step S204, after the waiting time is over, determining the resource data storage status of the resource address reserved in the data stack as an abnormal status, and determining the resource data storage status of the resource address deleted from the data stack as a normal status.
Step S205, according to the resource data storage state of the resource address, filtering out a normal resource address from the resource addresses returned by the address generating device and uploading a preset data server, so that the data server sends the normal resource address to a client.
The normal resource address refers to a normal state resource address.
The abnormal resource address refers to a resource address in an abnormal state.
If the resource address is extracted from the data message, generating a new data message according to the filtered normal resource address and sending the new data message to the data server under the condition that part of the resource address extracted from the data message is an abnormal resource address; and discarding the data message when all the resource addresses extracted from the data message are abnormal resource addresses.
The embodiment of the invention provides a method for uploading global asynchronous resource data and intercepting abnormal resource addresses, which can be applied to a web end. The method and the system can send resource data to the address generation equipment in batches, and utilize the stack to carry out screening and polling to determine whether a plurality of resource addresses returned by the address generation equipment are normal, intercept abnormal resource addresses and send the normal resource addresses to the data server, so that the problem that the user side obtains the abnormal resource addresses and causes abnormal resource data display is avoided, the display stability of the resource data is improved, and the user experience effect is improved. Particularly, when resource data is deployed in batches, the embodiment of the invention can avoid the situation of deploying the resource data one by one, namely: and sending one resource data to the address generating equipment, and identifying whether one resource address is normal or not, wherein other resource data to be deployed need to wait, so that the time for deploying the resource data is effectively shortened, and the efficiency of deploying the resource data is improved.
In the embodiment of the invention, the abnormal resource address can be prompted.
Specifically, according to the resource data storage state of the resource address, filtering out an abnormal resource address from the resource address returned by the address generating device; generating a resource address abnormality prompt according to the abnormal resource address, and displaying the resource address abnormality prompt in a preset display device.
And the resource address abnormality prompt is used for prompting that the unsuccessfully stored resource data exists.
The display device may be a display of the configuration platform.
Because the embodiment of the invention can perform resource inquiry on a plurality of resource addresses in a centralized way, a plurality of abnormal resource addresses can be simultaneously and wrongly prompted through the abnormal prompt of the resource addresses.
In the embodiment of the invention, a remedy policy can be executed for the abnormal resource address so as to upload the resource data corresponding to the abnormal resource address to the network.
Specifically, during or after displaying the resource address exception prompt, whether the preset retry security is triggered or not may be monitored; if so, the resource address is re-queried to avoid the problem that the time of the resource query is earlier than the time of the address generating equipment for storing the resource data.
In this embodiment, during or after displaying the resource address exception prompt, whether the preset re-upload button is triggered may also be monitored; if yes, acquiring a normal resource address, and downloading resource data from the normal resource address; matching the downloaded resource data with the resource data sent to the address generating equipment by using a preset resource matching algorithm; among the resource data transmitted to the address generating device, determining resource data in which a matching relationship does not exist; and sending the resource data without the matching relationship to the address generating device again, so that the address generating device generates a resource address again for the resource data without the matching relationship and returns the resource address to the configuration platform, and storing the resource data without the matching relationship into the newly generated resource address.
Further, when the resource data is video resource data and picture resource data, the resource matching algorithm may be an image recognition algorithm. When the resource data is text resource data, the resource matching algorithm may be a text matching algorithm.
In the embodiment of the invention, in order to enable a user to know the current stage, a preset uploading waiting prompt is displayed in a preset display device from resource inquiry aiming at a resource address returned by the address generating equipment.
And the display time length of the uploading waiting prompt is greater than or equal to the uploading time length of the resource address. The length of display time may be an empirical value or an experimental value. Further, the display time length is greater than or equal to the waiting time length described above. Thus, the resource inquiry can be strictly controlled within the waiting time length, and the problem that the resource inquiry is not finished and the display time length is finished can be avoided.
The uploading waiting prompt can display the countdown of the display time length and also can display preset contents.
And the resource address uploading duration starts from resource inquiry aiming at the resource address returned by the address generating equipment until the normal resource address is filtered out and a preset data server is uploaded.
The resource data deployment method according to the embodiment of the present invention is described below by taking picture resource data as an example.
As shown in fig. 3, a flow chart of a method of resource data part according to an embodiment of the invention is shown.
Step S301, a data message is sent to a second interface where the configuration platform is connected to the data server.
After the address generating device returns the resource address, the resource address may be configured with resource description data in a configuration interface of the configuration platform. The resource description data includes, but is not limited to: the size, format, requirements, etc. of the resource data.
Fig. 4 is a schematic diagram of a configuration interface (upload page) according to an embodiment of the present invention. Each row of data comprises: the resource data name, the resource address of the resource data, the upload button, the delete button and the resource description data. The upload button in the configuration page may control the upload of a single resource address and the delete button may prohibit the upload of a single resource address. The cancel button in the configuration page may prohibit the upload of all resource addresses in the configuration page, and the confirm button may control the upload of all resource addresses in the configuration page.
Step S302, intercepting the data message at a second interface connected with the data server by the configuration platform, and displaying an uploading waiting prompt of a preset display time length on the display device.
In this embodiment, the display time length is greater than or equal to the waiting time length. For example: the display time length was 30s.
Fig. 5 is a schematic diagram of an upload wait prompt according to an embodiment of the present invention. And displaying a word of 'information submission, please wait for the patience' in the uploading waiting prompt.
Step S303, analyzing the data message, and determining whether a resource address exists in the data message; if yes, go to step S304; if not, the flow is ended, but the process may also jump to step S302 to continue intercepting the data message.
Step S304, the resource address in the data message is extracted and stored in the data stack.
Step S305 polls the resource addresses in the data stack.
Step S306, inquiring whether the currently polled resource address stores resource data; if yes, step S307 is executed; if not, step S308 is performed.
In step S307, the resource address is deleted from the data stack.
Step S308, determining whether there is a resource address in the data stack; if yes, go to step S309; if not, the process is ended.
Step S309, determining whether the waiting time length is over; if yes, go to step S310; if not, step S305 is performed.
Step S310, displaying the resource address abnormality indication on the display device.
FIG. 6 is a diagram illustrating an exception hint for a resource address according to one embodiment of the present invention. And prompting the user that the picture production fails in the resource address abnormality prompt, and carrying out retry or re-uploading later, and giving an abnormal resource address.
The embodiment of the invention also provides a resource data deployment device. As shown in fig. 7, a structure diagram of a resource data deployment apparatus according to an embodiment of the present invention is shown.
The resource data deployment device comprises: a sending and receiving module 710, a query and determination module 720 and a filtering and uploading module 730.
A sending and receiving module 710, configured to send resource data to an address generating device, and receive a resource address returned by the address generating device; the address generating device is used for generating a resource address for the resource data and storing the resource data to the resource address after generating the resource address for the resource data.
And a query and determination module 720, configured to query a resource for a resource address returned by the address generating device, and determine a resource data storage state of the resource address.
And a filtering and uploading module 730, configured to filter a normal resource address from the resource addresses returned by the address generating device according to the resource data storage state of the resource address, and upload a preset data server, so that the data server sends the normal resource address to the client.
The functions of the apparatus according to the embodiments of the present invention have been described in the foregoing method embodiments, so that details of the descriptions of the embodiments of the present invention are not detailed, and reference may be made to the related descriptions in the foregoing embodiments, which are not repeated herein.
The embodiment of the invention also provides an electronic device, as shown in fig. 8, which comprises a processor 801, a communication interface 802, a memory 803 and a communication bus 804, wherein the processor 801, the communication interface 802 and the memory 803 complete communication with each other through the communication bus 804.
A memory 803 for storing a computer program.
The processor 801, when executing the program stored in the memory 803, implements the following steps: transmitting resource data to address generating equipment, and receiving a resource address returned by the address generating equipment; the address generating device is used for generating a resource address for the resource data and storing the resource data to the resource address after generating the resource address for the resource data; performing resource inquiry on a resource address returned by the address generating equipment, and determining a resource data storage state of the resource address; and filtering a normal resource address from the resource address returned by the address generating equipment according to the resource data storage state of the resource address, and uploading a preset data server so that the data server can send the normal resource address to a client.
Wherein the resource data storage state comprises: normal or abnormal state; the resource inquiry is carried out for the resource address returned by the address generating device, and the resource data storage state of the resource address is determined, which comprises the following steps: inquiring whether the resource address stores resource data or not; under the condition that the resource address stores the resource data, determining the resource data storage state of the resource address as a normal state; and determining the resource data storage state of the resource address as an abnormal state in the case that the resource address does not store the resource data.
Wherein the resource data storage state comprises: normal or abnormal state; the resource inquiry is carried out for the resource address returned by the address generating device, and the resource data storage state of the resource address is determined, which comprises the following steps: storing the resource address returned by the address generating device into a data stack; in the preset waiting time length, carrying out polling operation on the resource address stored in the data stack; the polling operation is used for executing the following operations for each resource address: inquiring whether the resource address stores resource data or not; deleting the resource address in the data stack if the resource address stores resource data; reserving the resource address in the data stack if the resource address does not store resource data; after the waiting time length is over, the resource data storage state of the resource address reserved in the data stack is determined to be an abnormal state, and the resource data storage state of the resource address deleted from the data stack is determined to be a normal state.
The storing the resource address returned by the address generating device in the data stack includes: intercepting a data message sent to the data server; attempting to extract a resource address in the data message; under the condition that the resource address is extracted from the data message, taking the resource address as the resource address returned by the address generating equipment, and storing the resource address into a data stack; and sending the data message to the data server under the condition that the resource address is not extracted from the data message.
The filtering the normal resource address and uploading the preset data server comprises the following steps: under the condition that part of the resource addresses extracted from the data message are abnormal resource addresses, generating a new data message according to the filtered normal resource addresses and sending the new data message to the data server; wherein, the normal resource address refers to a normal state resource address; the abnormal resource address refers to a resource address in an abnormal state; the method further comprises the steps of: and discarding the data message when all the resource addresses extracted from the data message are abnormal resource addresses.
Wherein the querying whether the resource address stores resource data includes: sending a resource query request to the resource address; receiving a query response message returned by the resource address; when the query response message is that resources exist, determining that the resource address stores resource data; and when the query response message is that no resource exists, determining that the resource address does not store resource data.
Wherein the method further comprises: filtering out abnormal resource addresses from the resource addresses returned by the address generating equipment according to the resource data storage state of the resource addresses; generating a resource address abnormality prompt according to the abnormal resource address, and displaying the resource address abnormality prompt in a preset display device.
Wherein the method further comprises: starting from resource inquiry aiming at the resource address returned by the address generating equipment, displaying a preset uploading waiting prompt in a preset display device; the display time length of the uploading waiting prompt is greater than or equal to the resource address uploading time length; and the resource address uploading duration starts from resource inquiry aiming at the resource address returned by the address generating equipment until the normal resource address is filtered out and a preset data server is uploaded.
The communication bus mentioned by the above terminal may be a peripheral component interconnect standard (Peripheral Component Interconnect, abbreviated as PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated as EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the terminal and other devices.
The memory may include random access memory (Random Access Memory, RAM) or non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processing, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In yet another embodiment of the present invention, a computer readable storage medium is provided, in which instructions are stored, which when executed on a computer, cause the computer to perform the resource data deployment method according to any of the above embodiments.
In yet another embodiment of the present invention, a computer program product containing instructions that, when run on a computer, cause the computer to perform the resource data deployment method of any of the above embodiments is also provided.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present invention, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), etc.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (11)

1. A method for deploying resource data, comprising:
transmitting resource data to address generating equipment, and receiving a resource address returned by the address generating equipment; the address generating device is used for generating a resource address for the resource data, and storing the resource data to the resource address after generating the resource address for the resource data, wherein the resource address is obtained by intercepting a data message sent to a data server and extracting the data message;
performing resource inquiry on a resource address returned by the address generating equipment, and determining a resource data storage state of the resource address;
and filtering a normal resource address from the resource address returned by the address generating equipment according to the resource data storage state of the resource address, and uploading a preset data server so that the data server can send the normal resource address to a client.
2. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the resource data storage state includes: normal or abnormal state;
the resource inquiry is carried out for the resource address returned by the address generating device, and the resource data storage state of the resource address is determined, which comprises the following steps:
inquiring whether the resource address stores resource data or not;
under the condition that the resource address stores the resource data, determining the resource data storage state of the resource address as a normal state;
and determining the resource data storage state of the resource address as an abnormal state in the case that the resource address does not store the resource data.
3. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the resource data storage state includes: normal or abnormal state;
the resource inquiry is carried out for the resource address returned by the address generating device, and the resource data storage state of the resource address is determined, which comprises the following steps:
storing the resource address returned by the address generating device into a data stack;
in the preset waiting time length, carrying out polling operation on the resource address stored in the data stack; the polling operation is used for executing the following operations for each resource address:
Inquiring whether the resource address stores resource data or not;
deleting the resource address in the data stack if the resource address stores resource data;
reserving the resource address in the data stack if the resource address does not store resource data;
after the waiting time length is over, the resource data storage state of the resource address reserved in the data stack is determined to be an abnormal state, and the resource data storage state of the resource address deleted from the data stack is determined to be a normal state.
4. A method according to claim 3, wherein storing the resource address returned by the address generating device in a data stack comprises:
intercepting a data message sent to the data server;
attempting to extract a resource address in the data message;
under the condition that the resource address is extracted from the data message, taking the resource address as the resource address returned by the address generating equipment, and storing the resource address into a data stack;
and sending the data message to the data server under the condition that the resource address is not extracted from the data message.
5. The method of claim 4, wherein the step of determining the position of the first electrode is performed,
the filtering out the normal resource address and uploading the preset data server comprises the following steps:
under the condition that part of the resource addresses extracted from the data message are abnormal resource addresses, generating a new data message according to the filtered normal resource addresses and sending the new data message to the data server; wherein, the normal resource address refers to a normal state resource address; the abnormal resource address refers to a resource address in an abnormal state;
the method further comprises the steps of:
and discarding the data message when all the resource addresses extracted from the data message are abnormal resource addresses.
6. The method of any of claims 2-5, wherein the querying whether the resource address stores resource data comprises:
sending a resource query request to the resource address;
receiving a query response message returned by the resource address;
when the query response message is that resources exist, determining that the resource address stores resource data;
and when the query response message is that no resource exists, determining that the resource address does not store resource data.
7. The method according to any one of claims 1-5, further comprising:
filtering out abnormal resource addresses from the resource addresses returned by the address generating equipment according to the resource data storage state of the resource addresses;
generating a resource address abnormality prompt according to the abnormal resource address, and displaying the resource address abnormality prompt in a preset display device.
8. The method according to any one of claims 1-5, further comprising:
starting from resource inquiry aiming at the resource address returned by the address generating equipment, displaying a preset uploading waiting prompt in a preset display device; wherein,,
the display time length of the uploading waiting prompt is greater than or equal to the resource address uploading time length;
and the resource address uploading duration starts from resource inquiry aiming at the resource address returned by the address generating equipment until the normal resource address is filtered out and a preset data server is uploaded.
9. A resource data deployment apparatus, comprising:
the sending and receiving module is used for sending the resource data to the address generating equipment and receiving the resource address returned by the address generating equipment; the address generating device is used for generating a resource address for the resource data, and storing the resource data to the resource address after generating the resource address for the resource data, wherein the resource address is obtained by intercepting a data message sent to a data server and extracting the data message;
The inquiring and determining module is used for inquiring the resource for the resource address returned by the address generating equipment and determining the resource data storage state of the resource address;
and the filtering and uploading module is used for filtering out a normal resource address from the resource addresses returned by the address generating equipment according to the resource data storage state of the resource addresses and uploading a preset data server so that the data server can send the normal resource address to the client.
10. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for carrying out the method steps of any one of claims 1-8 when executing a program stored on a memory.
11. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method of any of claims 1-8.
CN202110194487.1A 2021-02-20 2021-02-20 Resource data deployment method, device, equipment and storage medium Active CN113055443B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110194487.1A CN113055443B (en) 2021-02-20 2021-02-20 Resource data deployment method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110194487.1A CN113055443B (en) 2021-02-20 2021-02-20 Resource data deployment method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113055443A CN113055443A (en) 2021-06-29
CN113055443B true CN113055443B (en) 2023-07-04

Family

ID=76509847

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110194487.1A Active CN113055443B (en) 2021-02-20 2021-02-20 Resource data deployment method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113055443B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109450858A (en) * 2018-10-15 2019-03-08 杭州迪普科技股份有限公司 Method, apparatus, equipment and the storage medium of resource request
CN112004161A (en) * 2020-07-09 2020-11-27 视联动力信息技术股份有限公司 Processing method and device of address resources, terminal equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102117259B (en) * 2009-12-31 2014-07-09 成都市华为赛门铁克科技有限公司 Method and device for allocating and processing address space resource
CN105099796B (en) * 2014-04-22 2018-07-20 深圳市志友企业发展促进中心 A kind of multimedia content change detection method, device and resource broadcasting system
CN107704464B (en) * 2016-08-08 2021-05-07 北京国双科技有限公司 Method and device for analyzing path of static resource
CN108512814B (en) * 2017-02-28 2021-02-05 腾讯科技(北京)有限公司 Media data processing method, device and system
CN110769072A (en) * 2019-10-31 2020-02-07 北京达佳互联信息技术有限公司 Multimedia resource acquisition method, device and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109450858A (en) * 2018-10-15 2019-03-08 杭州迪普科技股份有限公司 Method, apparatus, equipment and the storage medium of resource request
CN112004161A (en) * 2020-07-09 2020-11-27 视联动力信息技术股份有限公司 Processing method and device of address resources, terminal equipment and storage medium

Also Published As

Publication number Publication date
CN113055443A (en) 2021-06-29

Similar Documents

Publication Publication Date Title
KR102105636B1 (en) Installing application remotely
EP2919440B1 (en) Advertisement processing method and device
CN106533944B (en) Distributed API gateway, management method and management system
CN110012217B (en) Method and device for determining acquisition resolution and electronic equipment
CN115004673B (en) Message pushing method, device, electronic equipment and computer readable medium
CN110247985B (en) Resource downloading method and device, electronic equipment and medium
CN111400777B (en) Network storage system, user authentication method, device and equipment
CN111159269B (en) Data processing method, device and system
CN112115103B (en) File address display method and device, electronic equipment and readable storage medium
CN101170442B (en) Software online upgrade method and system
CN108132836B (en) Task distribution method and device and electronic equipment
CN112653736B (en) Parallel source returning method and device and electronic equipment
CN114039961A (en) Message pushing method, device, server and storage medium based on WebSocket
CN112118352B (en) Method and device for processing notification trigger message, electronic equipment and computer readable medium
CN113055443B (en) Resource data deployment method, device, equipment and storage medium
CN109995863B (en) Dynamic resource downloading method and device, electronic equipment and storage medium
CN111262779A (en) Method, device, server and system for acquiring data in instant messaging
CN114338794B (en) Service message pushing method and device, electronic equipment and storage medium
CN102904935A (en) Downloading method, downloading device and downloading system based on home gateway
CN103379157A (en) Method, device, equipment and system for transmitting information
CN113285920A (en) Service access method, device, equipment and storage medium
CN110278451B (en) Picture online transcoding method and device and electronic equipment
CN115277694B (en) Data acquisition method, device, system, electronic equipment and storage medium
CN109725929B (en) Embedded webpage loading method and device
CN114979187B (en) Data processing method and device

Legal Events

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