CN107566452A - Storage method and device, method for down loading and device and data handling system - Google Patents

Storage method and device, method for down loading and device and data handling system Download PDF

Info

Publication number
CN107566452A
CN107566452A CN201710652697.4A CN201710652697A CN107566452A CN 107566452 A CN107566452 A CN 107566452A CN 201710652697 A CN201710652697 A CN 201710652697A CN 107566452 A CN107566452 A CN 107566452A
Authority
CN
China
Prior art keywords
data block
data
storage
end local
storage address
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
CN201710652697.4A
Other languages
Chinese (zh)
Other versions
CN107566452B (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.)
Alibaba China Co Ltd
Original Assignee
Guangzhou Alibaba Literature Information 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 Guangzhou Alibaba Literature Information Technology Co Ltd filed Critical Guangzhou Alibaba Literature Information Technology Co Ltd
Priority to CN201710652697.4A priority Critical patent/CN107566452B/en
Publication of CN107566452A publication Critical patent/CN107566452A/en
Application granted granted Critical
Publication of CN107566452B publication Critical patent/CN107566452B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiments of the invention provide a kind of storage method and device, method for down loading and device and data handling system, wherein storage method includes:According to the threshold value of setting, it is determined that needing the data flow in front-end local storage;Data block is generated in front-end local again, and by the data stream in the data block;The storage address of the data block of front-end local is pointed in configuration;The storage address of the data block is configured to point to the data block, realize and high amount of traffic is stored in front-end local around background server, fail during so as to break through due to browsing URL chain maximum lengths more than front end in the prior art derived from data, or be referred to as to have bypassed the original storage of URL chains, realize the storage of high amount of traffic.

Description

Storage method and device, method for down loading and device and data handling system
Technical field
The present embodiments relate to areas of information technology, more particularly to a kind of storage method and device, method for down loading and dress Put and data handling system.
Background technology
With the fast development of digital content, increasing people concern and read digital content, at the same reading method by Gradually develop into online reading.
A variety of mobile terminal intelligence degree more and more highers such as mobile phone, palm PC, and the overlay area of wireless network It is more and more extensive so that the issue of information is more real-time, causes people to be increasingly accustomed to online reading newspaper, news, e-book And the digital content such as original content.
At present, the online reading about original content compiles people, it is necessary to original content is uploaded to background server by author The related data of the original content are exported or downloaded to front-end local by member from background server again, such as will by front end The related data export of the original content downloads to front-end local, still, past when exporting or downloading to front-end local Toward the situation that export or failed download occurs.
The content of the invention
In view of this, one of technical problem that the embodiment of the present invention solves be to provide a kind of storage method and device, Method for down loading and device and data handling system, to overcome defect in the prior art, avoid by original content export or Occurs the situation of volume export or failed download when downloading to front-end local.
The embodiments of the invention provide a kind of storage method, and it includes:
According to the threshold value of setting, it is determined that needing the data flow in front-end local storage;
Data block is generated in front-end local, and by the data stream in the data block;
The storage address of the data block of front-end local is pointed in configuration;
The storage address of the data block is configured to point to the data block.
Alternatively, in any of the embodiments of the present invention, the threshold value is set according to URL chains address maximum length, described URL chains address maximum length is the URL chains address maximum length of the front end.
Alternatively, in any of the embodiments of the present invention, it is described to need in the data flow that front-end local stores to be data volume More than the data flow of the threshold value.
Alternatively, in any of the embodiments of the present invention, the storage address of the data block of front-end local is pointed in the configuration Including:The storage address for pointing to the data block of front-end local by creating the configuration of URL objects.
Alternatively, it is described in any of the embodiments of the present invention to include in the front-end local generation data block:By Front-end local creates data block object to generate the data block.
Alternatively, in any of the embodiments of the present invention, it is described to generate by creating data block object in front-end local Data block includes:By creating binary object in front-end local to generate the data block, the binary object is as institute State data block object.
Alternatively, in any of the embodiments of the present invention, by creating binary large object in front-end local to generate Stating data block includes:By creating BLOB objects or FILE objects in front-end local to generate the data block, the BLOB Object or FILE objects are as the binary large object.
Alternatively, in any of the embodiments of the present invention, it is described to include the data stream to the data block:Refer to File suffixes name of the data flow of the fixed storage after being downloaded.
Alternatively, in any of the embodiments of the present invention, the storage address of the data block of front-end local is pointed in configuration Including:The data block of front-end local is pointed to according to the index relative configuration between data block object and Resource orientation object Storage address.
Alternatively, in any of the embodiments of the present invention, in addition to:A component is configured, and the storage address is loaded Over the assembly, the Action Events of the storage address are jumped to be generated when the component is operated.
Alternatively, in any of the embodiments of the present invention, in addition to:Determine between data block object and Resource orientation object Index relative, and determined according to the index relative to point to the storage address of the data block.
Alternatively, in any of the embodiments of the present invention, storage address loading is included over the assembly:For institute State component Configuration and redirect label, the storage address is configured in label in described redirect.
Alternatively, in any of the embodiments of the present invention, the component is open button of the configuration in front-end local.
Alternatively, in any of the embodiments of the present invention, the component Configuration is on the browser of front end.
Alternatively, in any of the embodiments of the present invention, the storage address of the data block is memory address.
Alternatively, in any of the embodiments of the present invention, also include before front-end local generates data block:Pass through backstage The data-interface of service end will need the data flow cache in front-end local storage to front-end local.
The embodiments of the invention provide a kind of method for down loading, and it includes:
According to data download request, it is determined that pointing to the storage address of the data block of front-end local, encapsulated in the data block What the threshold value of with good grounds setting determined needs to be stored in the data flow of front-end local;
The data block of front-end local is downloaded according to the storage address.
Alternatively, in any of the embodiments of the present invention, according to data download request, it is determined that pointing to the storage of data block Also include before location:Capture, to generate the data download request, is configured with described to the Action Events of component in the component Storage address.
Alternatively, in any of the embodiments of the present invention, in addition to:When the component is operated, generation jumps to institute State the Action Events of storage address.
Alternatively, in any of the embodiments of the present invention, it is determined that pointing to the storage address of the data block of front-end local includes: Be defined as the component Configuration redirects label, goes out the storage address from the tag resolution that redirects.
Alternatively, in any of the embodiments of the present invention, it is determined that pointing to the storage address of the data block of front-end local includes: It is determined that the storage address of the sensing data block configured according to the index relative between data block object and object.
The embodiments of the invention provide a kind of storage device, and it includes:
Determining unit, for the threshold value according to setting, it is determined that needing the data flow in front-end local storage;
Encapsulation unit, for generating data block in front-end local, and by the data stream in the data block;
Dispensing unit, for configuring the storage address for the data block for pointing to front-end local, and by the data block Storage address is configured to point to the data block.
The embodiments of the invention provide a kind of download apparatus, and it includes:
Determining unit, for according to data download request, it is determined that the storage address of the data block of front-end local is pointed to, it is described The data flow of the storage determined according to the threshold value of setting is packaged with data block;
Download unit, for downloading the data block of front-end local according to the storage address.
The embodiments of the invention provide a kind of data handling system, and it includes front end and background server, wherein;It is described Background server is configured to store the first data flow;The front-end configuration is:According to the threshold value of setting, it is determined that needing in front end sheet The data flow of ground storage, data block is generated in front-end local, and by the data stream in the data block, and configuration The storage address of the data block of front-end local is pointed to, the storage address of the data block is configured to point to the data Block.
The embodiments of the invention provide a kind of data handling system, and it includes front end and background server, wherein;It is described Background server is configured to store the first data flow;The front-end configuration is:According to data download request, it is determined that pointing to front end sheet The storage address of the data block on ground, it is packaged with the data block and front-end local is stored according to needing of determining of the threshold value of setting The first data flow, and according to the storage address download front-end local the data block.
In the embodiment of the present invention, due to the threshold value according to setting, it is determined that needing the data flow in front-end local storage;Again Data block is generated in front-end local, and by the data stream in the data block;The described of front-end local is pointed in configuration The storage address of data block;The storage address of the data block is configured to point to the data block, realizes and is taken around backstage High amount of traffic is stored in front-end local by business end, so as to break through due to browsing URL chain maximum lengths more than front end in the prior art When the derived failure of data, or be referred to as to have bypassed the original storage of URL chains, realize the storage of high amount of traffic.Downloading Corresponding data block, it is effectively equivalent to from front end browser local called data, so as to breach in the prior art due to URL chains The situation such as unsuccessfully of data export caused by the limitation of maximum length.
Brief description of the drawings
Be described in detail by way of example, and not by way of limitation with reference to the accompanying drawings hereinafter the embodiment of the present invention some are specific Embodiment.Identical reference denotes same or similar part or part in accompanying drawing.Those skilled in the art should manage Solution, what these accompanying drawings were not necessarily drawn to scale.In accompanying drawing:
Fig. 1 is the schematic flow sheet of storage method in the embodiment of the present invention one;
Fig. 2 is the schematic flow sheet of method for down loading in the embodiment of the present invention two;
Fig. 3 is the structural representation of storage device in the embodiment of the present invention three;
Fig. 4 is the structural representation of download apparatus in the embodiment of the present invention four;
Fig. 5 is the structural representation of data handling system in the embodiment of the present invention five.
Embodiment
All advantages for reaching the above simultaneously must be not necessarily required to by implementing any technical scheme of the embodiment of the present invention.
In order that those skilled in the art more fully understand the technical scheme in the embodiment of the present invention, below in conjunction with the present invention Accompanying drawing in embodiment, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described reality It is only part of the embodiment of the embodiment of the present invention to apply example, rather than whole embodiments.Based on the implementation in the embodiment of the present invention Example, the every other embodiment that those of ordinary skill in the art are obtained, it should all belong to the scope that the embodiment of the present invention is protected.
Specific implementation of the embodiment of the present invention is further illustrated with reference to accompanying drawing of the embodiment of the present invention.
During the present invention is realized, inventor has found, in the online reading application aspect of original literary works, when upper Pass to original literary works data volume it is excessive when, the data in original books examination & verification list page can also increase suddenly, such as from 1000 Data increases to 5000 datas, and these data are such as the clip information on original books, are including but not limited to uploaded Time, document size, author's name, author's books title, examination & verification state and word counting, a data are on same The clip information of books.When in 1000 data, this can be exported from background server by certain front end browser success 1000 datas, still, when data volume such as reaches 5000 more than 1000 datas, export often fails.Through excessive After secondary investigation, why discovery there is the problem of this export failure, and the URL chains address for essentially consisting in front end browser is maximum Length can only allow the data volume for loading 16KB bytes, in other words, such as be referred to as when there is data flow of the data volume more than 16KB For high amount of traffic when, URL chains address will overflow, that is, exceed maximum length, so as to cause data export failure.
If it should be noted that being exported by front end browser, above-mentioned data storage works as number in URL message body During according to measuring bigger, the length occupied of the message body is longer, and in storage, only can connect address maximum length according to URL can be right URL chains address is intercepted, to prevent URL connects the length of address from exceeding its maximum length, so as to cause the URL chains after interception It is analysable effective address that address, which is not, so as to cause the situation of above-mentioned export failure.
Therefore, the scheme of following embodiments is proposed, however, it is desirable to explanation, although the solution of the following embodiments of the present invention Certainly scheme aims to solve the problem that produced problem in above-mentioned online reading in the prior art, however, it is desirable to explanation, under the present invention Under the inspiration for stating embodiment, those of ordinary skill in the art without creative work can by the present invention thought in the same way, It is similar for solving the problems, such as, such as because high amount of traffic causes data export failure when original video upload, export editor Situation, or need the situation of the load of lightweight background service side.In other words, the thought of the following embodiments of the present invention not office It is limited to solve the problems, such as or only solves above-mentioned specific prior art exist.
Fig. 1 is the schematic flow sheet of storage method in the embodiment of the present invention one;As shown in figure 1, it includes:
S101, the threshold value according to setting, it is determined that needing the data flow in front-end local storage;
In the present embodiment, applied in the scene of front end browser and background server, i.e., editorial staff passes through front end Browser exports the above-mentioned clip information related to original content.
In the present embodiment, the threshold value is set with specific reference to URL chains address maximum length.It should be noted that inhomogeneity The front end browser of type, different URL chains address maximum lengths may be corresponding with.
It is specifically, described to need the data flow in front-end local storage to exceed the threshold value for data volume in the present embodiment Data flow.For example the maximum amount of data that the threshold value directly can be allowed by the URL chains address maximum length is such as 16KB。
It is light in background server load in the author of original content uploads its works application scenarios to background server The consideration of quantization, the data volume of clip information corresponding to original works is judged in front end with whether exceeding front end browser URL chains The maximum amount of data that location maximum length is allowed, if it does, then by the data request interface of background server, before exceeding The data for the maximum amount of data that end browser URL chains address maximum length is allowed are oriented to the local for being stored in front end browser, I.e. be oriented to be stored in front end installation browser hardware unit be originally located in.
In other words, front end browser is monitored in real time equivalent to the data to uploading to background server, if a certain Either some above-mentioned data summations are judged as high amount of traffic or more than front end browser URL chains addresses the above-mentioned data of bar The data for the maximum amount of data that maximum length is allowed are judged as high amount of traffic, then can be identified as needing to be stored in front-end local Data flow, otherwise, it is determined that to need to be stored in data flow in background server.
S102, in front-end local data block is generated, and the data stream that stores is needed in the data block by described;
It is described to include in the front-end local generation data block in the present embodiment:By creating data block in front-end local Object is to generate the data block.
Specifically, if front end is PC, when front-end local creates data block object to generate the data block, pass through Binary object is created to generate the data block in front-end local, and the binary object is as the data block object.
However, it is desirable to explanation, if front end is other non-PC portable terminal device or server terminal, is creating number , can be according to the system memory requirement of the front end, by creating corresponding system object in front-end local to generate during according to block object The data block.Certainly, system conversion can also be mutually carried out between different number system objects, is not necessary for specifically entering Object processed, such as binary object.
In the present embodiment, as it was previously stated, the data flow storage more than given threshold is arrived into front-end local, therefore, in front end When localling create binary large object to generate the data block, BLOB objects or FILE are created especially by front-end local Object is to generate the data block, and the BLOB objects or FILE objects are as the binary large object.
In the present embodiment, the number of the storage can also be specified simultaneously when by the data stream to the data block According to file suffixes name of the stream after being downloaded.
In the present embodiment, after step slol, before S102, can also will be greater than first all of the threshold value or Partial data stream is cached to front end browser local by the request interface in background server.Such as when there is front end browser hair When playing download request, then trigger and perform step S102, so as to will be greater than the data stream of the threshold value to initiation download request Front-end local the data block in.For example during if any multiple front ends, the data flow cache of the threshold value is will be greater than to each Front end browser is local, when wherein one or more front end browsers initiate download request, then will be greater than the number of the threshold value It is encapsulated into according to stream in the data block for the front-end local for initiating download request.
In addition, it is necessary to explanation, above-mentioned caching not necessarily, such as, an only front end or need store to refer to During one or more fixed front-end local, then the processing of above-mentioned caching can not be performed, will directly need data stream to arrive , then can be by way of shared in the data block, and when other front-end locals of no storage need to deposit these data flows Carry out the download of data.
In the present embodiment, specifically, such as the variable declarations sentence Var changes using weak type in javascript language Amount, and content is named as, by all data flow caches got in content, Var variables can cache institute There are the data flow of type, such as object, array, character string, Boolean type, the data of null, undefined, Number type Stream or the data flow of several types mixing.
However, it is desirable to explanation, acquisition in the present embodiment about data flow and to cache only be example, when by the present invention Scheme when applying to the storage of other field such as original video, can be according to the requirement of reality, without departing from present invention side In the case of case, specifically optimized.Such as the optimization of above-mentioned variable declarations, optimization of data flow cache etc..
In a concrete application scene, by the Blob sentences in javascript come state one it is original any type of Data block, a Blob object represent immutable, similar with an initial data file object.However, it is desirable to explanation It is the data block not necessarily JavaScript native formats of Blob objects generation.In addition, File objects are based on Blob objects, Inherit Blob functions and expanded to the file supported in custom system.Therefore, can also be used when generating data block FILE objects.
When needing that high amount of traffic is repeatedly encapsulated, directly it is strong specify be file transmission and download if, can be with base Data block is generated in FILE objects.
When need not repeatedly be encapsulated to big data quantity, and need not force be surely file transmission and download Words, then gone to generate data block with Blob objects.
Specifically, when needing with Blob objects generation data block, for example code statement new Blob generation data are used Block, then blocks of files is set:new Blob([content],{type:' text/csv'}), high amount of traffic is encapsulated into this text In the content of part block, so as to complete the encapsulation of big data.Wherein, type is the file after the data block specified is downloaded Suffix name.
It should be noted that above-mentioned specific code statement is example, to those skilled in the art, when When technical scheme is applied in other scenes, the code statement matched with its application scenarios can be used to realize.
S103, configuration point to the storage address of the data block of front-end local;
In the present embodiment, in the storage address of the data block of configuration sensing front-end local, especially by establishment URL objects The storage address of the data block of front-end local is pointed in configuration.
Alternatively, front-end local is pointed to further according to the index relative configuration between data block object and Resource orientation object The storage address of the data block.
In a concrete application scene, such as the code statement of the establishment URL objects using javascript CreateObjectURL () creates a DOMString, and the DOMString is UTF-16 character strings, wherein including a table Showing the parameter of URL objects, the life cycle of the URL objects and the document object (document) created in its window are bound, So as to the storage address of the configurable data block for pointing to front-end local.The URL objects can be expressed as above-mentioned as needed File objects or Blob objects.
One index is generated with URL objects according to File objects or Blob objects, then the index is pointed to and passes through File Object or the Blob data blocks or File data blocks of the generation of Blob objects.Wherein, generated according to the index and determine to point to front end The URL storage address of the local data block.
In the present embodiment, the URL storage address can be with URL memory address.But in other embodiments, can also For the hard-disc storage address in front-end local.
S104, the storage address is configured to point to the data block.
S105, one component of configuration, and by storage address loading over the assembly, with when the component is operated Generation jumps to the Action Events of the storage address.
In the present embodiment, when the URL storage address is loaded over the assembly, mark is redirected for the component Configuration Label, the URL storage address is configured in label in described redirect.
In a concrete application scene, the component is open button of the configuration in front-end local.
Specifically, one can be generated with javascript Document.createElement and redirects label, jumped Turning label specifies a url storage address to put into its href attribute.Specifically, above-mentioned index can be put into and redirects label In href attributes.Code herein can be understood as set a property (setAttribute) again, by href property value assignment For above-mentioned index, so as to when needing downloading data block, retrogradation is waited into jumping to the URL storages by operation in the component The Action Events of location, downloaded so as to be triggered according to the Action Events.
It should be noted that above-mentioned open button can be configured directly on the browser of front end, or, by configuring independent Dialog box on.
As seen from the above-described embodiment, by the way that high amount of traffic is encapsulated into a Blob or FILE data block, because this The data volume that class data block can store is larger, or is referred to as that high amount of traffic can be stored, it is achieved thereby that bypassing background service The high amount of traffic front-end local storage at end, breaks through by browsing what URL chain maximum lengths were allowed more than front end in the prior art Data derived failure during maximum amount of data, or be referred to as to have bypassed the original storage of URL chains, realize depositing for high amount of traffic Storage.
Fig. 2 is the schematic flow sheet of method for down loading in the embodiment of the present invention two;As shown in Fig. 2 it includes:
S201, the component when being operated generation jump to the Action Events of the storage address;
Due to being downloaded for the ease of starting, being configured with the browser of front end can be same with this as the open button of component When, being the component Configuration redirects label, and this, which is redirected, is configured with the URL storage address in label, opened when user clicks on this When putting button, so as to generate the Action Events that can jump to the URL storage address.
S202, capture, to generate the data download request, are configured with described to the Action Events of component in the component Storage address;
In the present embodiment, according to the Action Events captured, in front end, browser locally generates data download request.
S203, according to data download request, it is determined that the storage address of the data block of front-end local is pointed to, in the data block It is packaged with the needs determined according to the threshold value of setting and stores the data flow for arriving front-end local;
In the present embodiment, due in storage, sensing of the storage address to data block is configured with by above-mentioned index relative, Therefore, in the present embodiment, during download, it is determined that the sensing institute configured according to the index relative between data block object and URL objects State the URL storage address of data block.
Further, if the URL storage address is configured into redirecting in label in open button, it is defined as institute That states component Configuration redirects label, goes out the URL storage address from the tag resolution that redirects.
S204, the data block according to storage address download front-end local.
In the present embodiment, because high amount of traffic by the form of data block has bypassed background server storage, to have arrived front end clear Device of looking at is local, downloads corresponding data block, is effectively equivalent to from front end browser local called data, so as to breach existing skill Due to the situation such as unsuccessfully of data export caused by the limitation of URL chain maximum lengths in art.
Fig. 3 is the structural representation of storage device in the embodiment of the present invention three;As shown in figure 3, it includes:
First determining unit 301, for the threshold value according to setting, it is determined that needing the data flow in front-end local storage, institute Threshold value is stated to be set according to Referral URL chain address maximum length;
Encapsulation unit 302, for generating data block in front-end local, and by the data stream in the data block In;
Dispensing unit 303, for configuring the URL storage address for the data block for pointing to front-end local, and by the URL Storage address is configured to point to the data block.
In the present embodiment, the URL chains address maximum length is the URL chains address maximum length of the front end, or, institute State the URL chains address maximum length of background server.
In the present embodiment, the data flow for needing to store in front-end local exceedes the data of the threshold value for data volume Stream.
In the present embodiment or other any embodiments, the dispensing unit is further used for matching somebody with somebody by creating URL objects Put the URL storage address for the data block for pointing to front-end local.
In the present embodiment or other any embodiments, the encapsulation unit is further used for by being created in front-end local Data block object is to generate the data block.
In the present embodiment or other any embodiments, the encapsulation unit is further used for by being created in front-end local Binary large object is to generate the data block, and the binary large object is as the data block object.
In the present embodiment or other any embodiments, the encapsulation unit is further used for by being created in front-end local To generate the data block, the BLOB objects or FILE objects are big as the binary system for BLOB objects or FILE objects Object.
In the present embodiment or other any embodiments, the encapsulation unit is further used for by way of creating variable By the data stream to the data block.
In the present embodiment or other any embodiments, the encapsulation unit is further used for specifying the data of the storage Flow the file suffixes name after being downloaded.
In the present embodiment or other any embodiments, the dispensing unit be further used for according to data block object and The URL storage address of the data block of front-end local is pointed in index relative configuration between URL objects.
In the present embodiment or other any embodiments, the dispensing unit is further used for configuring a component, and by institute State the loading of URL storage address over the assembly, the URL storage address is jumped to be generated when the component is operated The Action Events.
In the present embodiment or other any embodiments, the dispensing unit be further used for determine data block object and Index relative between URL objects;Determined to point to the URL storage address of the data block according to the index relative.
In the present embodiment or other any embodiments, the dispensing unit is further used for redirecting for the component Configuration Label, the URL storage address is configured in label in described redirect.
In the present embodiment or other any embodiments, the component is open button of the configuration in front-end local.
Fig. 4 is the structural representation of download apparatus in the embodiment of the present invention four;As shown in figure 4, it includes:
Second determining unit 401, for according to data download request, it is determined that the URL for pointing to the data block of front-end local is deposited Address is stored up, the data flow of the storage determined according to the threshold value of setting is packaged with the data block;
Download unit 402, for downloading the data block of front-end local according to the URL storage address.
In the present embodiment or other any embodiments, second determining unit 401 is further used for capture to component Action Events are configured with the URL storage address, in the quilt of the component to generate the data download request in the component Generation jumps to the Action Events of the URL storage address during operation.
In the present embodiment or other any embodiments, second determining unit 401 is further used for determining according to data The URL storage address of the sensing data block of index relative configuration between block object and URL objects.
In the present embodiment or other any embodiments, second determining unit 401 is further used for being defined as described group Part configuration redirects label, goes out the URL storage address from the tag resolution that redirects.
Fig. 5 is the structural representation of data handling system in the embodiment of the present invention five;As shown in figure 5, it includes front end 501 And background server 502, the background server is configured to store the first data flow, when storing high amount of traffic, before described End is configured to:According to the threshold value of setting, it is determined that in the second data flow of front-end local storage, data block is generated in front-end local, And by the second data stream of the storage in the data block, and the data block of front-end local is pointed in configuration Storage address, the storage address of the data block is configured to point to the data block.
Based on the same frameworks of above-mentioned Fig. 5, when downloading, the background server is configured to store the first data flow, institute Stating front-end configuration is:According to data download request, it is determined that the storage address of the data block of front-end local is pointed to, in the data block The second data flow of the storage determined according to the threshold value of setting is packaged with, according to the storage address downloads front-end local Data block.
It should be noted that first data flow be not less than the threshold value data flow, the second data flow due to for High amount of traffic, occur when can cause to export by front end browser if on background server unsuccessfully etc., therefore, during storage It is local to be stored directly in front end browser, during download, equivalent to directly locally being exported from front end browser.
It should be noted that the second data flow in Fig. 5 embodiments is equivalent to the big data referred in above-mentioned Fig. 1-Fig. 4 Stream.
It should be noted that in above-described embodiment, whether the data volume uploaded by front end real-time judge browses more than front end The maximum amount of data that device URL chains address maximum length is allowed, still, in other embodiments, the judgment step can also be by Back-end server performs.When the data flow that back-end server judges to upload is more than front end browser URL chains address maximum length During the maximum amount of data allowed, the data flow is defined as high amount of traffic and is directed to by the data-interface of background server The front end browser is local.
It should be noted that in other embodiments, above-mentioned data are not limited to the extracts of original document in online reading Information, or the data of original document in itself, the threshold value such as upload to the maximum data that background server is allowed Measure to determine.
Device embodiment described above is only schematical, wherein the module illustrated as separating component can To be or may not be physically separate, it can be as the part that module is shown or may not be physics mould Block, you can with positioned at a place, or can also be distributed on multiple mixed-media network modules mixed-medias.It can be selected according to the actual needs In some or all of module realize the purpose of this embodiment scheme.Those of ordinary skill in the art are not paying creativeness Work in the case of, you can to understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can Realized by the mode of software plus required general hardware platform, naturally it is also possible to pass through hardware.Based on such understanding, on The part that technical scheme substantially in other words contributes to prior art is stated to embody in the form of software product, should Computer software product can store in a computer-readable storage medium, the computer readable recording medium storing program for performing include be used for The readable form storage of computer (such as computer) or any mechanism of transmission information.For example, machine readable media is included only Read memory (ROM), random access memory (RAM), magnetic disk storage medium, optical storage media, flash medium, electricity, light, Sound or the transmitting signal of other forms (for example, carrier wave, infrared signal, data signal etc.) etc., the computer software product includes Some instructions are each to cause a computer equipment (can be personal computer, server, or network equipment etc.) execution Method described in some parts of individual embodiment or embodiment.
Finally it should be noted that:Above example is only to illustrate the technical scheme of the embodiment of the present invention, rather than it is limited System;Although the present invention is described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:Its The technical scheme described in foregoing embodiments can still be modified, or which part technical characteristic is equal Replace;And these modifications or replacement, the essence of appropriate technical solution is departed from various embodiments of the present invention technical scheme Spirit and scope.
It will be understood by those skilled in the art that the embodiment of the embodiment of the present invention can be provided as method, apparatus (equipment) or Computer program product.Therefore, the embodiment of the present invention can use complete hardware embodiment, complete software embodiment or combine soft The form of the embodiment of part and hardware aspect.Moreover, the embodiment of the present invention can use wherein includes calculating in one or more The computer-usable storage medium of machine usable program code (includes but is not limited to magnetic disk storage, CD-ROM, optical memory Deng) on the form of computer program product implemented.
The embodiment of the present invention is with reference to method, apparatus (equipment) according to embodiments of the present invention and computer program product Flow chart and/or block diagram describe.It should be understood that can be by every in computer program instructions implementation process figure and/or block diagram One flow and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computers can be provided Processor of the programmed instruction to all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices To produce a machine so that produce use by the instruction of computer or the computing device of other programmable data processing devices In the dress for realizing the function of being specified in one flow of flow chart or multiple flows and/or one square frame of block diagram or multiple square frames Put.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.

Claims (25)

  1. A kind of 1. storage method, it is characterised in that including:
    According to the threshold value of setting, it is determined that needing the data flow in front-end local storage;
    Data block is generated in front-end local, and by the data stream in the data block;
    The storage address of the data block of front-end local is pointed in configuration;
    The storage address of the data block is configured to point to the data block.
  2. 2. storage method according to claim 1, it is characterised in that the threshold value is set according to URL chains address maximum length Fixed, the URL chains address maximum length is the URL chains address maximum length of the front end.
  3. 3. storage method according to claim 1, it is characterised in that it is described need front-end local storage data flow be Data volume exceedes the data flow of the threshold value.
  4. 4. storage method according to claim 1, it is characterised in that depositing for the data block of front-end local is pointed in the configuration Storage address includes:The storage address for pointing to the data block of front-end local by creating the configuration of URL objects.
  5. 5. storage method according to claim 1, it is characterised in that described to generate the data block bag in front-end local Include:By creating data block object in front-end local to generate the data block.
  6. 6. storage method according to claim 5, it is characterised in that by creating data block object in front-end local with life Include into the data block:By creating binary object in front-end local to generate the data block, the binary object As the data block object.
  7. 7. storage method according to claim 6, it is characterised in that by front-end local create binary large object with Generating the data block includes:By creating BLOB objects or FILE objects in front-end local to generate the data block, institute BLOB objects or FILE objects are stated as the binary large object.
  8. 8. storage method according to claim 1, it is characterised in that described by the data stream to the data block Including:Specify file suffixes name of the data flow of the storage after being downloaded.
  9. 9. storage method according to claim 1, it is characterised in that depositing for the data block of front-end local is pointed in configuration Storage address includes:The number of front-end local is pointed to according to the index relative configuration between data block object and Resource orientation object According to the storage address of block.
  10. 10. storage method according to claim 1, it is characterised in that also include:Configure a component, and by the storage Address loads over the assembly, to generate the operation thing for jumping to the storage address when the component is operated Part.
  11. 11. storage method according to claim 10, it is characterised in that also include:Determine that data block object and resource are determined Index relative between the object of position, and the storage address according to the index relative determination sensing data block.
  12. 12. storage method according to claim 10, it is characterised in that by storage address loading over the assembly Including:Label is redirected for the component Configuration, the storage address is configured in label in described redirect.
  13. 13. storage method according to claim 10, it is characterised in that the component is opening of the configuration in front-end local Button.
  14. 14. storage method according to claim 10, it is characterised in that browser of the component Configuration in front-end local On.
  15. 15. according to the storage method described in claim any one of 1-14, it is characterised in that the storage address of the data block is Memory address.
  16. 16. storage method according to claim 15, it is characterised in that also wrapped before front-end local generates data block Include:The data flow cache that is stored in front-end local will be needed to front-end local by the data-interface of background server.
  17. A kind of 17. method for down loading, it is characterised in that including:
    According to data download request, it is determined that pointing to the storage address of the data block of front-end local, root is packaged with the data block According to setting threshold value determine need be stored in the data flow of front-end local;
    The data block of front-end local is downloaded according to the storage address.
  18. 18. method for down loading according to claim 17, it is characterised in that according to data download request, it is determined that pointing to data Also include before the storage address of block:Capture to the Action Events of component to generate the data download request, in the component It is configured with the storage address.
  19. 19. method for down loading according to claim 18, it is characterised in that also include:Given birth to when the component is operated Into the Action Events for jumping to the storage address.
  20. 20. method for down loading according to claim 18, it is characterised in that it is determined that pointing to the storage of the data block of front-end local Address includes:Be defined as the component Configuration redirects label, goes out the storage address from the tag resolution that redirects.
  21. 21. according to the method for down loading described in claim any one of 17-20, it is characterised in that it is determined that pointing to the number of front-end local Include according to the storage address of block:It is determined that the sensing data block configured according to the index relative between data block object and object The storage address.
  22. A kind of 22. storage device, it is characterised in that including:
    Determining unit, for the threshold value according to setting, it is determined that needing the data flow in front-end local storage;
    Encapsulation unit, for generating data block in front-end local, and by the data stream in the data block;
    Dispensing unit, for configuring the storage address for the data block for pointing to front-end local, and by the storage of the data block Address configuration is the sensing data block.
  23. A kind of 23. download apparatus, it is characterised in that including:
    Determining unit, for according to data download request, it is determined that pointing to the storage address of the data block of front-end local, the data The data flow of the storage determined according to the threshold value of setting is packaged with block;
    Download unit, for downloading the data block of front-end local according to the storage address.
  24. A kind of 24. data handling system, it is characterised in that including front end and background server, wherein;The background server It is configured to store the first data flow;The front-end configuration is:According to the threshold value of setting, it is determined that needing the number in front-end local storage According to stream, data block is generated in front-end local, and by the data stream in the data block, and front end sheet is pointed in configuration The storage address of the data block on ground, the storage address of the data block is configured to point to the data block.
  25. A kind of 25. data handling system, it is characterised in that including front end and background server, wherein;The background server It is configured to store the first data flow, the front-end configuration is:According to data download request, it is determined that pointing to the data block of front-end local Storage address, be packaged with the data block and the first data of front-end local be stored according to needing of determining of the threshold value of setting Stream, and the data block according to storage address download front-end local.
CN201710652697.4A 2017-08-02 2017-08-02 Storage method and device, downloading method and device, and data processing system Active CN107566452B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710652697.4A CN107566452B (en) 2017-08-02 2017-08-02 Storage method and device, downloading method and device, and data processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710652697.4A CN107566452B (en) 2017-08-02 2017-08-02 Storage method and device, downloading method and device, and data processing system

Publications (2)

Publication Number Publication Date
CN107566452A true CN107566452A (en) 2018-01-09
CN107566452B CN107566452B (en) 2020-09-18

Family

ID=60973931

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710652697.4A Active CN107566452B (en) 2017-08-02 2017-08-02 Storage method and device, downloading method and device, and data processing system

Country Status (1)

Country Link
CN (1) CN107566452B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101390080A (en) * 2006-02-28 2009-03-18 微软公司 Serving cached query results based on a query portion
US20110029641A1 (en) * 2009-08-03 2011-02-03 FasterWeb, Ltd. Systems and Methods Thereto for Acceleration of Web Pages Access Using Next Page Optimization, Caching and Pre-Fetching Techniques
US20110264759A1 (en) * 2010-04-21 2011-10-27 Microsoft Corporation Optimized caching for large data requests
US20120185643A1 (en) * 2011-01-14 2012-07-19 Lsi Corporation Systems configured for improved storage system communication for n-way interconnectivity
CN103001964A (en) * 2012-12-04 2013-03-27 杭州顺网科技股份有限公司 Cache acceleration method under local area network environment
CN103020155A (en) * 2012-11-23 2013-04-03 中国电信股份有限公司云计算分公司 Web front end resource request processing method and device
CN103179148A (en) * 2011-12-21 2013-06-26 腾讯数码(天津)有限公司 Processing method and system for sharing enclosures in internet
US20140201457A1 (en) * 2013-01-16 2014-07-17 Eyal Sinai Identifying and resolving cache poisoning
CN105791366A (en) * 2014-12-26 2016-07-20 中国电信股份有限公司 Large file HTTP-Range downloading method, cache server and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101390080A (en) * 2006-02-28 2009-03-18 微软公司 Serving cached query results based on a query portion
US20110029641A1 (en) * 2009-08-03 2011-02-03 FasterWeb, Ltd. Systems and Methods Thereto for Acceleration of Web Pages Access Using Next Page Optimization, Caching and Pre-Fetching Techniques
US20110264759A1 (en) * 2010-04-21 2011-10-27 Microsoft Corporation Optimized caching for large data requests
US20120185643A1 (en) * 2011-01-14 2012-07-19 Lsi Corporation Systems configured for improved storage system communication for n-way interconnectivity
CN103179148A (en) * 2011-12-21 2013-06-26 腾讯数码(天津)有限公司 Processing method and system for sharing enclosures in internet
CN103020155A (en) * 2012-11-23 2013-04-03 中国电信股份有限公司云计算分公司 Web front end resource request processing method and device
CN103001964A (en) * 2012-12-04 2013-03-27 杭州顺网科技股份有限公司 Cache acceleration method under local area network environment
US20140201457A1 (en) * 2013-01-16 2014-07-17 Eyal Sinai Identifying and resolving cache poisoning
CN105791366A (en) * 2014-12-26 2016-07-20 中国电信股份有限公司 Large file HTTP-Range downloading method, cache server and system

Also Published As

Publication number Publication date
CN107566452B (en) 2020-09-18

Similar Documents

Publication Publication Date Title
US9977770B2 (en) Conversion of a presentation to Darwin Information Typing Architecture (DITA)
US10735322B2 (en) Accelerating HTTP responses in a client/server environment
US9077681B2 (en) Page loading optimization using page-maintained cache
CN104899269A (en) Method and device for accessing website link
CN108287917A (en) file open method, device, storage medium and electronic equipment
US11240290B2 (en) Application download method and apparatus, application sending method and apparatus, and system
CN107301137A (en) RSET interface realizing methods and device and electronic equipment and computer-readable recording medium
WO2014110978A1 (en) Server, client, system and method for preloading browse page on explorer
CN110457628A (en) Webpage edition correcting method, device, equipment and storage medium
CN110213113A (en) The WEB configuring management method of base station and base station
CN106547683A (en) A kind of redundant code detection method and device
US10673789B2 (en) Bot-invocable software development kits to access legacy systems
CN106169048B (en) File delet method, device and electronic equipment
CN107291623A (en) A kind of applied program testing method and device
CN105282238B (en) A kind of method for managing resource
CN110321510A (en) Page rendering method and system
CN107577712A (en) The method, apparatus and computer equipment of a kind of loading page
CN109284428A (en) Data processing method, device and storage medium
US9075619B2 (en) Method and apparatus for supporting multi-modal dialog applications
CN102333123B (en) File storage method and device, searching method and device and network device
CN107566452A (en) Storage method and device, method for down loading and device and data handling system
WO2022135592A1 (en) Method and apparatus for generating model training program mirror image, device, and storage medium
Turnquist Learning Spring Boot 2.0: simplify the development of lightning fast applications based on microservices and reactive programming
CN114201370A (en) Webpage file monitoring method and system
CN107451167A (en) The click data acquisition methods and system of position are clicked in standing

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
TA01 Transfer of patent application right

Effective date of registration: 20200603

Address after: 310051 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: Alibaba (China) Co.,Ltd.

Address before: 510627 Guangdong city of Guangzhou province Whampoa Tianhe District Road No. 163 Xiping Yun Lu Yun Ping square B radio tower 13 layer self unit 03

Applicant before: GUANGZHOU ALIBABA LITERATURE INFORMATION TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant