CN109634876A - File access method, device and computer readable storage medium - Google Patents

File access method, device and computer readable storage medium Download PDF

Info

Publication number
CN109634876A
CN109634876A CN201811521760.1A CN201811521760A CN109634876A CN 109634876 A CN109634876 A CN 109634876A CN 201811521760 A CN201811521760 A CN 201811521760A CN 109634876 A CN109634876 A CN 109634876A
Authority
CN
China
Prior art keywords
file
access
identification information
storage address
file destination
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.)
Pending
Application number
CN201811521760.1A
Other languages
Chinese (zh)
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.)
Guangdong Communications and Networks Institute
Original Assignee
Guangdong Communications and Networks Institute
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 Guangdong Communications and Networks Institute filed Critical Guangdong Communications and Networks Institute
Priority to CN201811521760.1A priority Critical patent/CN109634876A/en
Publication of CN109634876A publication Critical patent/CN109634876A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0877Cache access modes

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of file access method, device and storage mediums, file access method is the following steps are included: after the access request for receiving access end transmission, the file identification information of file destination is obtained according to the access request, and the storage address of the corresponding file destination of the file identification information is obtained, the storage address is directed toward the cache device of service server;The storage address is fed back into the access end, so that the access end obtains the file destination from the cache device of the service server, wherein the file destination is cached by cloud to the cache device by the service server.The present invention has the advantages that improve the access speed of file destination.

Description

File access method, device and computer readable storage medium
Technical field
The present invention relates to cloud storage technical field more particularly to a kind of file access method, device and computer-readable deposit Storage media.
Background technique
Cloud storage (or make Dropbox, cloud disk, cloud etc.) it is a kind of on-line storage technology, with mass memory, high reliability It is famous.The based data services such as file upload, downloading may be implemented by network in user.In view of the carrying cost of mass data And reliability requirement, shared storage can only be read largely using the magnetic battle array as composed by the hard disks such as SATA/SAS of opposite low price It is relatively very low to write efficiency.
In particular, cloud storage provides the functions such as sharing, exterior chain, thus between realizing user based on the thinking for sharing interconnection Data (file) are shared.When a large number of users concurrently accesses, it is likely that multiple users occur while accessing the same shared resource The case where (for example watching the same popular video simultaneously), will occur in the short time same number on a large amount of repetitive read-write disks at this time According to operation, it is high to the IO of disk (write-in and read) performance requirement, will occur reading and writing data speed be decreased obviously (such as Popular video playing Caton) etc. the case where seriously affecting user experience.Therefore, hot spot data read-write efficiency how is improved to Guan Chong It wants, is directly related to the usage experience of user.
Above content is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that above content is existing skill Art.
Summary of the invention
The main purpose of the present invention is to provide a kind of file access method, device and storage mediums, it is intended to solve existing Reading speed slow problem when user accesses cloud data in technology.
To achieve the above object, the present invention provides a kind of file access method, is applied to distribution server, and the file is visited Ask method the following steps are included:
After the access request for receiving access end transmission, the file identification of file destination is obtained according to the access request Information, and the storage address of the corresponding file destination of the file identification information is obtained, the storage address is directed toward business service The cache device of device;
The storage address is fed back into the access end, so that the access end is slow from the high speed of the service server It deposits equipment and obtains the file destination, wherein the file destination is cached by cloud to the height by the service server Fast buffer memory device.
Preferably, after the step of storage address for obtaining the corresponding file destination of the file identification information, also Include:
The first verification information and the second verification information are generated according to the access request;
First verification information is sent to the access end, second verification information is sent to the business and is taken Business device, so that the service server is before the access end obtains the file destination, according to second verification information And first verification information to the access end carry out authentication.
Preferably, after the step of storage address for obtaining the corresponding file destination of the file identification information:
When getting storage address, the storage address is fed back into the access end;
When storage address has not been obtained, the address for meeting the cache device of preset cache condition is deposited as described in Address is stored up, the storage address is fed back into the access end.
Preferably, after the described the step of storage address is fed back to the access end, further includes:
When receiving the file update information of service server transmission, the file identification letter in the more new information is obtained Breath and storage address;
The file identification information and storage address association are saved.
To achieve the above object, the present invention also provides a kind of file access methods, are applied to service server, the file Access method the following steps are included:
When receiving the acquisition request that access end is sent by storage address, target text is obtained according to the acquisition request The file identification information of part, and obtain the corresponding file destination of the file identification information, wherein the storage address is directed toward industry Be engaged in server cache device and the storage address be stored in distribution server;
The file destination is fed back into the access end, wherein the file destination is passed through by the service server Cloud is cached to the cache device.
Preferably, the file access method further include:
If the remaining space of the cache device is not enough to store the file destination, the cache is deleted History file destination in equipment;
Wherein, the deleted history file destination is file of the accessed number less than preset times or is not interviewed Ask that duration is greater than the file of preset duration.
Preferably, before the step of file identification information that file destination is obtained according to the acquisition request, comprising:
In the second verification information that the first verification information and distribution server that receive access end transmission are sent, compare First verification information and the second verification information are to carry out authentication to the access end;
After being verified, the step of file identification information of file destination is obtained according to the acquisition request is executed.
Preferably, the file access method further includes,
When receiving the upload request for uploading end transmission, the file identification information is generated according to the upload request, And the file identification information is sent to the upload end and/or access end;
Wherein, upload termination receives and file identification information is transmitted to the access after the file identification information End, so that the access end is generated according to the file identification information to the access request of the distribution server and from described point With obtaining the storage address in server.
To achieve the above object, the present invention also provides a kind of file access devices, which is characterized in that the file access dress It sets including memory, processor and is stored in the file access program that can be run on the memory and on the processor, The step of file access program realizes file access method as described in any one of the above embodiments when being executed by the processor.
To achieve the above object, the present invention also provides a kind of computer readable storage medium, the computer-readable storages File access program is stored on medium, the file access program is realized as described in any one of the above embodiments when being executed by processor The step of file access method.
The present invention passes through the cache access end target to be accessed in the cache device in the service server File, and the file identification information of the file destination and the industry of the preservation file destination are saved in the distribution server The mapping relations of business server, when the distribution server receives the access request of the access end, according to access request In file identification information obtain corresponding with file identification information storage address and feed back to the access end, the access end It is contacted according to the storage address with the foundation of corresponding service server, meanwhile, the service server is according to the access end The file identification information sended over obtains the file destination from cache device, and the file destination is sent to The access end, in above-mentioned access process, service server is that the file destination is obtained from the cache device, Rather than it is transmitted to the access end after obtaining from cloud, since the read or write speed of the cache device will be significantly larger than cloud The read or write speed at end promotes user experience to improve the speed that access end obtains the file destination.
Detailed description of the invention
Fig. 1 is the apparatus structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of file access method first embodiment of the present invention;
Fig. 3 is the flow diagram of file access method second embodiment of the present invention;
Fig. 4 is the flow diagram of file access method 3rd embodiment of the present invention;
Fig. 5 is the flow diagram of file access method fourth embodiment of the present invention;
Fig. 6 is the flow diagram of the 5th embodiment of file access method of the present invention;
Fig. 7 is the flow diagram of file access method sixth embodiment of the present invention;
Fig. 8 is the flow diagram of the 7th embodiment of file access method of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Technical solution of the present invention is mainly:
After the access request for receiving access end transmission, the file identification of file destination is obtained according to the access request Information, and the storage address of the corresponding file destination of the file identification information is obtained, the storage address is directed toward business service The cache device of device;
The storage address is fed back into the access end, so that the access end is slow from the high speed of the service server It deposits equipment and obtains the file destination, wherein the file destination is cached by cloud to the height by the service server Fast buffer memory device.
Reading speed is slow when present user accesses cloud data.
The present invention passes through the cache access end target to be accessed in the cache device in the service server File, and the file identification information of the file destination and the industry of the preservation file destination are saved in the distribution server The mapping relations of business server, when the distribution server receives the access request of the access end, according to access request In file identification information obtain corresponding with file identification information storage address and feed back to the access end, the access end It is contacted according to the storage address with the foundation of corresponding service server, meanwhile, the service server is according to the access end The file identification information sended over obtains the file destination from cache device, and the file destination is sent to The access end, in above-mentioned access process, service server is that the file destination is obtained from the cache device, Rather than it is transmitted to the access end after obtaining from cloud, since the read or write speed of the cache device will be significantly larger than cloud The read or write speed at end promotes user experience to improve the speed that access end obtains the file destination.
As shown in Figure 1, Fig. 1 is the hardware running environment schematic diagram for the terminal that the embodiment of the present invention is related to.
The terminal of that embodiment of the invention is server apparatus.As shown in Figure 1, the terminal may include: processor 1001, such as CPU, network interface 1004, user interface 1003, memory 1005, communication bus 1002.Wherein, communication bus 1002 is for real Connection communication between these existing components.User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard), remote controler, optional user interface 1003 can also include standard wireline interface and wireless interface.Network interface 1004 optionally may include standard wireline interface and wireless interface (such as memory (non-volatile memory), such as Magnetic disk storage.Memory 1005 optionally can also be the storage device independently of aforementioned processor 1001.
It, can be with it will be understood by those skilled in the art that the restriction of the structure of terminal shown in Fig. 1 not structure paired terminal Including perhaps combining certain components or different component layouts than illustrating more or fewer components.
As shown in Figure 1, as may include that operating system, network are logical in a kind of memory 1005 of computer storage medium Believe module, Subscriber Interface Module SIM and file access program.
In terminal shown in Fig. 1, network interface 1004 is mainly used for connecting background server, carries out with background server Data communication;User interface 1003 is mainly used for connecting client (access end), carries out data communication with client;And processor 1001 can be used for calling the file access program stored in memory 1005, and execute following operation:
After the access request for receiving access end transmission, the file identification of file destination is obtained according to the access request Information, and the storage address of the corresponding file destination of the file identification information is obtained, the storage address is directed toward business service The cache device of device;
The storage address is fed back into the access end, so that the access end is slow from the high speed of the service server It deposits equipment and obtains the file destination, wherein the file destination is cached by cloud to the height by the service server Fast buffer memory device.
Further, processor 1001 can call the file access program stored in memory 1005, also execute following Operation:
The first verification information and the second verification information are generated according to the access request;
First verification information is sent to the access end, second verification information is sent to the business and is taken Business device, so that the service server is before the access end obtains the file destination, according to second verification information And first verification information to the access end carry out authentication.
Further, processor 1001 can call the file access program stored in memory 1005, also execute following Operation:
When getting storage address, the storage address is fed back into the access end;
When storage address has not been obtained, the address for meeting the cache device of preset cache condition is deposited as described in Address is stored up, the storage address is fed back into the access end.
Further, processor 1001 can call the file access program stored in memory 1005, also execute following Operation:
When receiving the file update information of service server transmission, the file identification letter in the more new information is obtained Breath and storage address;
The file identification information and storage address association are saved.
Further, processor 1001 can call the file access program stored in memory 1005, also execute following Operation:
When receiving the acquisition request that access end is sent by storage address, target text is obtained according to the acquisition request The file identification information of part, and obtain the corresponding file destination of the file identification information, wherein the storage address is directed toward industry Be engaged in server cache device and the storage address be stored in distribution server;
The file destination is fed back into the access end, wherein the file destination is passed through by the service server Cloud is cached to the cache device.
Further, processor 1001 can call the file access program stored in memory 1005, also execute following Operation:
If the remaining space of the cache device is not enough to store the file destination, the cache is deleted History file destination in equipment;
Wherein, the deleted history file destination is file of the accessed number less than preset times or is not interviewed Ask that duration is greater than the file of preset duration.
Further, processor 1001 can call the file access program stored in memory 1005, also execute following Operation:
In the second verification information that the first verification information and distribution server that receive access end transmission are sent, compare First verification information and the second verification information are to carry out authentication to the access end;
After being verified, the step of file identification information of file destination is obtained according to the acquisition request is executed.
Further, processor 1001 can call the file access program stored in memory 1005, also execute following Operation:
When receiving the upload request for uploading end transmission, the file identification information is generated according to the upload request, And the file identification information is sent to the upload end and/or access end;
Wherein, upload termination receives and file identification information is transmitted to the access after the file identification information End, so that the access end is generated according to the file identification information to the access request of the distribution server and from described point With obtaining the storage address in server.
It is the flow diagram of the 1st embodiment of file access method of the present invention referring to Fig. 2, Fig. 2.
The present invention provides a kind of file access method, is applied to distribution server, the file access method includes following Step:
Step S10A obtains file destination according to the access request after the access request for receiving access end transmission File identification information, and obtain the storage address of the corresponding file destination of the file identification information, the storage address refers to To the cache device of service server;
In the present embodiment, the access end can be one or more, and the access end can be the terminal device of user Such as personal computer or mobile phone.The access end and the distribution server and the equal communication connection of the service server. In the file link for receiving the sharing of other access ends (user), current accessed end is according to the text at current accessed end (user) Part links to the distribution server and sends access request, includes the file for the file destination to be accessed in the access request Identification information.
The distribution server obtains target after the access request for receiving access end transmission, according to the access request The file identification information of file, and obtain the storage address of corresponding with file identification information file destination, and described deposit The cache device that service server is directed toward in address is stored up, is stored with the mesh that is, can find by the storage address The service server for marking file can be according to the files-designated after finding and being stored with the service server of the file destination Acquisition of information is known to the file destination.
Specifically, the mapping table of the file identification information Yu the storage address is preset in the distribution server, Distribution server is after getting the file identification information according to the access request, according to the file identification information and institute State the storage address that the mapping relations of file identification information and storage address in mapping table obtain the file destination.
The storage address is fed back to the access end by step S20A, so that the access end is from the business service The cache device of device obtains the file destination, wherein the file destination is delayed by the service server by cloud It deposits to the cache device.
In the present embodiment, the service server can be one or more, and generally multiple, the cache is set Standby including but not limited to solid state hard disk (SSD).After the distribution server gets the storage address, by the storage address The access end is fed back to, the access end is contacted according to the storage address with the foundation of corresponding mapping server, meanwhile, institute It states access end and the file identification information is sent to the service server, the service server is according to the file identification Information obtains the file destination from the cache device, and the file destination is returned to the access end.? In the present embodiment, the type of the file destination includes but is not limited to screen, audio, picture, file, compressed file etc..
In this embodiment, specifically, the file destination passes through cloud by the service server when being accessed for the first time It caches to the cache device, then is read from the cache device and be sent to the access end, subsequent described It when file destination is accessed, need to be only read out from the cache device, and not have to obtain from cloud every time The file destination promotes user experience to improve access/reading speed to the file destination.
In conclusion the present invention by the cache device in the service server cache access end to be visited The file destination asked, and save in the distribution server file identification information of the file destination and save the target The mapping relations of the service server of file, when the distribution server receives the access request of the access end, according to File identification information in access request obtains storage address corresponding with file identification information and feeds back to the access end, institute It states access end and is contacted according to the storage address with the foundation of corresponding service server, meanwhile, the service server is according to institute It states the file identification information that access end sends over and obtains the file destination from cache device, and the target is literary Part is sent to the access end, and in above-mentioned access process, service server is described in the acquisition from the cache device File destination, rather than it is transmitted to the access end after obtaining from cloud, since the read or write speed of the cache device is wanted The significantly larger than read or write speed in cloud promotes user experience to improve the speed that access end obtains the file destination.
Further, refering to Fig. 3, the 2nd embodiment of file access method of the present invention is proposed based on the 1st embodiment, in this reality It applies in example, after the step S10, further includes:
Step S30A generates the first verification information and the second verification information according to the access request;
First verification information is sent to the access end, second verification information is sent to by step S40A The service server, so that the service server is before the access end obtains the file destination, according to described the Two verification informations and the first verification information carry out authentication to the access end.
In the present embodiment, the distribution server obtains after receiving the access request according to the access request While taking the file identification information, the first verification information and the second verification information are generated according to the access request, it is described First verification information is matched with the second verification information, specifically, is believed each time according to the first verifying that the access request generates Breath and the second verification information are all different.First verification information is sent to the access end by distribution server, and by institute It states the second verification information and is sent to the service server, obtain the target text from the service server in the access end Before part, what the service server was obtained by the second verification information obtained from the distribution server and from the access end First verification information is compared to carry out authentication to the access end, and after being verified namely described first verifies After information and the second verification information, service server obtains the file destination from the caching device and issues the visit End is asked, in this way, improving the confidentiality and safety of the acquisition process of the file destination.
Further, refering to Fig. 4, the 3rd embodiment of file access method of the present invention is proposed based on 1-2 embodiment, at this In embodiment, after the step S10, further includes:
The storage address is fed back to the access end when getting storage address by step S50A;
Step S60A will meet the address of the cache device of preset cache condition when storage address has not been obtained As the storage address, the storage address is fed back into the access end.
In the present embodiment, as previously mentioned, if the distribution server got according to the file identification information it is described When to storage address, the storage address is fed back into the access end, so that the access end is from the service server Cache device obtains the file destination;Storage is had not been obtained according to the file identification information in the distribution server When address, that is, the mapping for not preserving the file identification information and the service server in the distribution server is closed When being, that is, the cache device of the service server is also uncached the corresponding target text of the file identification information When part, the distribution server will meet the address of the cache device of preset cache condition as the storage address, incite somebody to action The storage address feeds back to the access end.
Specifically, the cache device for meeting preset cache condition includes but is not limited to the institute in multiple service servers It states the maximum cache device of residual storage capacity in cache device or residual storage capacity is greater than the target text The cache device of part size, when storage address has not been obtained in the distribution server, to the height for meeting preset cache condition The corresponding service server of fast buffer memory device sends cache instruction, after the service server receives the cache instruction, root The file identification information sended over according to the cache instruction and the access end obtains the file destination from cloud, and by institute File destination is stated to be cached in the cache device for meeting preset cache condition, meanwhile, the service server is from institute State read in cache device the file destination be sent to the access end or the service server from cloud obtain The access end is transmitted directly to after the file destination.
Further, refering to Fig. 5, the 4th embodiment of file access method of the present invention is proposed based on 1-3 embodiment, at this In embodiment, after the described the step of storage address is fed back to the access end, further includes:
Step S70A is obtained in the more new information when receiving the file update information of service server transmission File identification information and storage address;
Step S80A saves the file identification information and storage address association.
In the present embodiment, after the service server receives the cache instruction, according to the cache instruction and institute It states the file identification information that access end sends over and obtains the file destination from cloud, and the file destination is cached in institute After stating the cache device for meeting preset cache condition, Xiang Suoshu distribution server sends the file update information, described Distribution server obtains the file identification in the more new information when receiving the file update information of service server transmission The file identification information and storage address association are saved, also believe the file identification by information and storage address Breath and storage address are stored in the mapping table, can be by such as when the subsequent accessed end of the file destination accesses The method of step S10A-S20A obtains the file destination, to improve the volume access speed to the file destination.
It is the flow diagram of the 5th embodiment of file access method of the present invention referring to Fig. 6, Fig. 6.
To achieve the above object, the present invention also provides a kind of file access methods, are applied to service server, the file Access method the following steps are included:
Step S10B, when receiving the acquisition request that access end is sent by storage address, according to the acquisition request The file identification information of file destination is obtained, and obtains the corresponding file destination of the file identification information, wherein the storage The cache device of service server is directed toward in address and the storage address is stored in distribution server;
In the present embodiment, the access end can be one or more, and the access end can be the terminal device of user Such as personal computer or mobile phone.The access end and the distribution server and the equal communication connection of the service server. In the file link for receiving the sharing of other access ends (user), current accessed end is according to the text at current accessed end (user) Part links to the distribution server and sends access request, includes the file for the file destination to be accessed in the access request Identification information.
The service server obtains target after the acquisition request for receiving access end transmission, according to the acquisition request The file identification information of file, and the target text is obtained from the cache device by the file identification information Part.
Specifically, the mapping table of the file identification information Yu the file destination is preset in the service server, Service server is after getting the file identification information according to the access request, according to the file identification information and institute It states file identification information and the mapping relations of file destination in mapping table and obtains the file destination.
In this embodiment, the storage address is directed toward the cache device of service server and the storage address saves In distribution server.As previously mentioned, the distribution server receive access end transmission access request after, according to described Access request obtains the file identification information of file destination, and obtains depositing for file destination corresponding with the file identification information Address is stored up, and the storage address is directed toward the cache device of service server, that is, can look for by the storage address To the service server for being stored with the file destination, after finding and being stored with the service server of the file destination The file destination is got according to the file identification information.Specifically, the file is preset in the distribution server The mapping table of identification information and the storage address, distribution server are getting the file identification according to the access request After information, obtained according to the mapping relations of file identification information and storage address in the file identification information and the mapping table The storage address of the file destination.
The file destination is fed back to the access end, wherein the file destination is taken by the business by step S20B Business device is cached by cloud to the cache device.
In the present embodiment, the service server is obtained from the cache device according to the file identification information The file destination is taken, and the file destination is returned into the access end.In the present embodiment, the class of the file destination Type includes but is not limited to screen, audio, picture, file, compressed file etc..
In this embodiment, specifically, the file destination passes through cloud by the service server when being accessed for the first time It caches to the cache device, then is read from the cache device and be sent to the access end, subsequent described It when file destination is accessed, need to be only read out from the cache device, and not have to obtain from cloud every time The file destination promotes user experience to improve access/reading speed to the file destination.
In conclusion the present invention by the cache device in the service server cache access end to be visited The file destination asked, and save in the distribution server file identification information of the file destination and save the target The mapping relations of the service server of file, when the distribution server receives the access request of the access end, according to File identification information in access request obtains storage address corresponding with file identification information and feeds back to the access end, institute It states access end and is contacted according to the storage address with the foundation of corresponding service server, meanwhile, the service server is according to institute It states the file identification information that access end sends over and obtains the file destination from cache device, and the target is literary Part is sent to the access end, and in above-mentioned access process, service server is described in the acquisition from the cache device File destination, rather than it is transmitted to the access end after obtaining from cloud, since the read or write speed of the cache device is wanted The significantly larger than read or write speed in cloud promotes user experience to improve the speed that access end obtains the file destination.
Referring to Fig. 7, further, the 6th embodiment of file access method of the present invention is proposed based on the 5th embodiment, in this reality It applies in example, the file access method further include:
Step S30B deletes institute if the remaining space of the cache device is not enough to store the file destination State the history file destination in cache device;Wherein, the deleted history file destination is that accessed number is less than The file of preset times or not visited duration are greater than the file of preset duration.
In the present embodiment, the file destination is cached by the service server by cloud when being accessed for the first time It is deleted to the cache device if the remaining space of the cache device is not enough to store the file destination History file destination in the cache device;Wherein, the deleted history file destination is that accessed number is few Be greater than the file of preset duration in the file of preset times or not visited duration, that is, deleted data be user compared with Few access or the lower file destination of access frequency, thus with making in the cache device storage for accessed frequency compared with High file destination reduces the frequency that service server obtains file destination from the cloud indirectly.
Referring to Fig. 8, further, the 7th embodiment of file access method of the present invention is proposed based on 5-6 embodiment, at this In embodiment, before the step S10B, comprising:
Step S40B, in the second verifying letter that the first verification information and distribution server for receiving access end transmission are sent When breath, first verification information and the second verification information are compared to carry out authentication to the access end;
Step S50B executes the file identification information that file destination is obtained according to the acquisition request after being verified The step of.
In the present embodiment, the distribution server obtains after receiving the access request according to the access request While taking the file identification information, the first verification information and the second verification information are generated according to the access request, it is described First verification information is matched with the second verification information, specifically, is believed each time according to the first verifying that the access request generates Breath and the second verification information are all different.First verification information is sent to the access end by distribution server, and by institute It states the second verification information and is sent to the service server, obtain the target text from the service server in the access end Before part, what the service server was obtained by the second verification information obtained from the distribution server and from the access end First verification information is compared to carry out authentication to the access end, and after being verified namely described first verifies After information and the second verification information, service server obtains the file destination from the caching device and issues the visit End is asked, in this way, improving the confidentiality and safety of the acquisition process of the file destination.
Further, the 8th embodiment of file access method of the present invention is proposed based on 5-7 embodiment, in the present embodiment, The file access method further includes,
Step S60B generates the file according to the upload request when receiving the upload request for uploading end transmission Identification information, and the file identification information is sent to the upload end and/or access end;Wherein, the upload end receives File identification information is transmitted to the access end after to the file identification information, so that the access end is according to the file Identification information generates the access request to the distribution server and obtains the storage address from the distribution server.
In the present embodiment, the upload end can be one or more, and the access end can be the terminal device of user Such as personal computer or mobile phone, the upload end also can be used as the access end, and service server is receiving upload end When the upload request of transmission, the file identification information is generated according to the upload request, and the file identification information is sent out Give the upload end and/or access end;Meanwhile required upper transmitting file is sent to cloud and protected by the service server It deposits.
In the present embodiment, upload termination receives and file identification information is transmitted to institute after the file identification information State access end, for the access end according to the file identification information generate to the access request of the distribution server and from The storage address is obtained in the distribution server, to carry out subsequent obtaining file destination from the service server Step.
To achieve the above object, the present invention also provides a kind of file access devices, which is characterized in that the file access dress It sets including memory, processor and is stored in the file access program that can be run on the memory and on the processor, The step of file access program realizes file access method as described above when being executed by the processor.
To achieve the above object, the present invention also provides a kind of computer readable storage medium, the computer-readable storages File access program is stored on medium, the file access program realizes that file as described above is visited when being executed by processor The step of asking method.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be TV Machine, mobile phone, computer, server or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of file access method, which is characterized in that be applied to distribution server, the file access method includes following step It is rapid:
After the access request for receiving access end transmission, believed according to the file identification that the access request obtains file destination Breath, and the storage address of the corresponding file destination of the file identification information is obtained, the storage address is directed toward service server Cache device;
The storage address is fed back into the access end, so that the access end is set from the cache of the service server It is standby to obtain the file destination, wherein the file destination is cached by cloud to the high speed by the service server to be delayed Deposit equipment.
2. file access method as described in claim 1, which is characterized in that the acquisition file identification information is corresponding After the step of storage address of file destination, further includes:
The first verification information and the second verification information are generated according to the access request;
First verification information is sent to the access end, second verification information is sent to the business service Device, so that the service server is before the access end obtains the file destination, according to second verification information and First verification information carries out authentication to the access end.
3. file access method as described in claim 1, which is characterized in that the acquisition file identification information is corresponding After the step of storage address of file destination:
When getting storage address, the storage address is fed back into the access end;
When storage address has not been obtained, the address of the cache device of preset cache condition will be met as the storage ground The storage address is fed back to the access end by location.
4. file access method as claimed in claim 3, which is characterized in that described that the storage address is fed back to the visit After the step of asking end, further includes:
When receiving the file update information of service server transmission, obtain the file identification information in the more new information with And storage address;
The file identification information and storage address association are saved.
5. a kind of file access method, which is characterized in that be applied to service server, the file access method includes following step It is rapid:
When receiving the acquisition request that access end is sent by storage address, file destination is obtained according to the acquisition request File identification information, and obtain the corresponding file destination of the file identification information, wherein the storage address is directed toward business clothes Be engaged in device cache device and the storage address be stored in distribution server;
The file destination is fed back into the access end, wherein the file destination passes through cloud by the service server It caches to the cache device.
6. file access method as claimed in claim 5, which is characterized in that the file access method further include:
If the remaining space of the cache device is not enough to store the file destination, the cache device is deleted In history file destination;
Wherein, the deleted history file destination be accessed number less than the file of preset times or it is not visited when The long file for being greater than preset duration.
7. file access method as claimed in claim 5, which is characterized in that described to obtain target text according to the acquisition request Before the step of file identification information of part, comprising:
In the second verification information that the first verification information and distribution server that receive access end transmission are sent, described in comparison First verification information and the second verification information are to carry out authentication to the access end;
After being verified, the step of file identification information of file destination is obtained according to the acquisition request is executed.
8. file access method as claimed in claim 5, which is characterized in that the file access method further includes,
When receiving the upload request for uploading end transmission, the file identification information is generated according to the upload request, and will The file identification information is sent to the upload end and/or access end;
Wherein, upload termination receives and file identification information is transmitted to the access end after the file identification information, with The access request to the distribution server is generated according to the file identification information for the access end and is taken from the distribution The storage address is obtained in business device.
9. a kind of file access device, which is characterized in that the file access device includes memory, processor and is stored in institute The file access program that can be run on memory and on the processor is stated, the file access program is held by the processor It realizes when row such as the step of file access method described in any item of the claim 1 to 8.
10. a kind of computer readable storage medium, which is characterized in that be stored with file visit on the computer readable storage medium It asks program, such as file access described in any item of the claim 1 to 8 is realized when the file access program is executed by processor The step of method.
CN201811521760.1A 2018-12-11 2018-12-11 File access method, device and computer readable storage medium Pending CN109634876A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811521760.1A CN109634876A (en) 2018-12-11 2018-12-11 File access method, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811521760.1A CN109634876A (en) 2018-12-11 2018-12-11 File access method, device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN109634876A true CN109634876A (en) 2019-04-16

Family

ID=66073461

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811521760.1A Pending CN109634876A (en) 2018-12-11 2018-12-11 File access method, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109634876A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110807010A (en) * 2019-10-29 2020-02-18 北京猎豹移动科技有限公司 File reading method and device, electronic equipment and storage medium
CN110908961A (en) * 2019-11-15 2020-03-24 天津联想协同科技有限公司 File processing method, electronic device and computer storage medium
CN110929061A (en) * 2019-10-22 2020-03-27 北京旷视科技有限公司 Data storage method, device, system and storage medium
CN111339047A (en) * 2020-02-28 2020-06-26 江苏苏宁物流有限公司 Data interaction method, device and system
CN111897774A (en) * 2019-05-05 2020-11-06 北京兆易创新科技股份有限公司 File uploading method and device, electronic equipment and storage medium
CN112328559A (en) * 2020-11-05 2021-02-05 杭州海康威视数字技术股份有限公司 Picture warehousing method, system and device and electronic equipment
CN112445763A (en) * 2019-09-02 2021-03-05 阿里巴巴集团控股有限公司 File operation method and device, electronic equipment and storage medium
CN112822289A (en) * 2021-01-29 2021-05-18 深圳市大头兄弟科技有限公司 Data uploading and reading method, system, equipment and storage medium
CN113283202A (en) * 2021-05-06 2021-08-20 芯华章科技股份有限公司 Prototype verification board
CN113760980A (en) * 2020-11-30 2021-12-07 北京京东乾石科技有限公司 Data caching method, data providing end and data using end
WO2022121385A1 (en) * 2020-12-08 2022-06-16 华为技术有限公司 File access method, storage node, and network card
CN115514759A (en) * 2022-11-22 2022-12-23 天津中新智冠信息技术有限公司 File forwarding method, electronic device and storage medium
CN117640626A (en) * 2024-01-25 2024-03-01 合肥中科类脑智能技术有限公司 File transmission method, device and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1121216A (en) * 1994-03-07 1996-04-24 国际商业机器公司 System and method for efficient caching in a distributed file system
US20050223166A1 (en) * 2004-04-05 2005-10-06 Hiroki Kanai Storage control system, channel control device for storage control system, and data transfer device
CN102739717A (en) * 2011-04-12 2012-10-17 腾讯科技(深圳)有限公司 Downloading method, downloading proxy server and network system
CN103139279A (en) * 2011-12-05 2013-06-05 阿里巴巴集团控股有限公司 File access method and system
CN103532989A (en) * 2012-07-02 2014-01-22 北京兴宇中科科技开发股份有限公司 Downloading method of file data
CN104954368A (en) * 2015-06-05 2015-09-30 阔地教育科技有限公司 File processing method and system in direct recording and broadcasting interactive system
CN106685932A (en) * 2016-12-08 2017-05-17 努比亚技术有限公司 File access system and method based on cloud service

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1121216A (en) * 1994-03-07 1996-04-24 国际商业机器公司 System and method for efficient caching in a distributed file system
US20050223166A1 (en) * 2004-04-05 2005-10-06 Hiroki Kanai Storage control system, channel control device for storage control system, and data transfer device
CN102739717A (en) * 2011-04-12 2012-10-17 腾讯科技(深圳)有限公司 Downloading method, downloading proxy server and network system
CN103139279A (en) * 2011-12-05 2013-06-05 阿里巴巴集团控股有限公司 File access method and system
CN103532989A (en) * 2012-07-02 2014-01-22 北京兴宇中科科技开发股份有限公司 Downloading method of file data
CN104954368A (en) * 2015-06-05 2015-09-30 阔地教育科技有限公司 File processing method and system in direct recording and broadcasting interactive system
CN106685932A (en) * 2016-12-08 2017-05-17 努比亚技术有限公司 File access system and method based on cloud service

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
计算机技术与应用进展》编委会: "计算机技术与应用进展", vol. 978, 中国科学技术大学出版社, pages: 1 - 7 *
杨建光: "动态扩容视频存储分发系统设计", 《电子测试》, no. 09, 5 May 2016 (2016-05-05) *

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111897774B (en) * 2019-05-05 2024-04-09 兆易创新科技集团股份有限公司 File uploading method and device, electronic equipment and storage medium
CN111897774A (en) * 2019-05-05 2020-11-06 北京兆易创新科技股份有限公司 File uploading method and device, electronic equipment and storage medium
CN112445763B (en) * 2019-09-02 2022-07-19 阿里巴巴集团控股有限公司 File operation method and device, electronic equipment and storage medium
CN112445763A (en) * 2019-09-02 2021-03-05 阿里巴巴集团控股有限公司 File operation method and device, electronic equipment and storage medium
CN110929061A (en) * 2019-10-22 2020-03-27 北京旷视科技有限公司 Data storage method, device, system and storage medium
CN110807010A (en) * 2019-10-29 2020-02-18 北京猎豹移动科技有限公司 File reading method and device, electronic equipment and storage medium
CN110908961A (en) * 2019-11-15 2020-03-24 天津联想协同科技有限公司 File processing method, electronic device and computer storage medium
CN111339047B (en) * 2020-02-28 2022-09-06 江苏苏宁物流有限公司 Data interaction method, device and system
CN111339047A (en) * 2020-02-28 2020-06-26 江苏苏宁物流有限公司 Data interaction method, device and system
CN112328559A (en) * 2020-11-05 2021-02-05 杭州海康威视数字技术股份有限公司 Picture warehousing method, system and device and electronic equipment
CN113760980A (en) * 2020-11-30 2021-12-07 北京京东乾石科技有限公司 Data caching method, data providing end and data using end
WO2022121385A1 (en) * 2020-12-08 2022-06-16 华为技术有限公司 File access method, storage node, and network card
CN112822289A (en) * 2021-01-29 2021-05-18 深圳市大头兄弟科技有限公司 Data uploading and reading method, system, equipment and storage medium
CN113283202A (en) * 2021-05-06 2021-08-20 芯华章科技股份有限公司 Prototype verification board
CN113283202B (en) * 2021-05-06 2024-01-02 芯华章科技股份有限公司 Prototype verification board
CN115514759A (en) * 2022-11-22 2022-12-23 天津中新智冠信息技术有限公司 File forwarding method, electronic device and storage medium
CN117640626A (en) * 2024-01-25 2024-03-01 合肥中科类脑智能技术有限公司 File transmission method, device and system
CN117640626B (en) * 2024-01-25 2024-04-26 合肥中科类脑智能技术有限公司 File transmission method, device and system

Similar Documents

Publication Publication Date Title
CN109634876A (en) File access method, device and computer readable storage medium
CN201682522U (en) Conversation information storage system and application server
CN103338249B (en) Caching method and device
CN103475682B (en) File transfer method and file transfer equipment
CN102413151B (en) Network resource sharing method and system
CN109213420A (en) Date storage method, apparatus and system
CN107092541A (en) A kind of method that utilization virtual machine carries out storage performance test
CN109087116A (en) Accumulated point exchanging method, integral transaction system and computer readable storage medium
CN105205157A (en) Page loading method, device and system
US20180373736A1 (en) Method and apparatus for storing resource and electronic device
CN107229415A (en) A kind of data write method, data read method and relevant device, system
CN102510384A (en) Personal data sharing interactive processing method and server
CN110247985A (en) A kind of resource downloading method, device, electronic equipment and medium
CN106817388B (en) Method and device for acquiring data by virtual machine and host machine and system for accessing data
CN106446075A (en) Page request processing method and apparatus
CN105653209A (en) Object storage data transmitting method and device
CN104636088B (en) A kind of method and storage system for writing data into data server
CN111803917A (en) Resource processing method and device
CN108196902A (en) For showing the method and apparatus for advertisement of spreading its tail
CN102882961A (en) Data verifying method and server
CN109327518A (en) A kind of information sharing method based on the H5 page, system and device
CN104219272B (en) Buffering updating method, terminal and system
CN106209584A (en) User profile processing method based on the Internet, client and server
CN104202309B (en) A kind of control method and device of data transfer
CN109361778A (en) A kind of method and terminal managing session

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190416