Nothing Special   »   [go: up one dir, main page]

CN108848141A - A kind of response method of server data access and associated method and relevant apparatus - Google Patents

A kind of response method of server data access and associated method and relevant apparatus Download PDF

Info

Publication number
CN108848141A
CN108848141A CN201810550857.9A CN201810550857A CN108848141A CN 108848141 A CN108848141 A CN 108848141A CN 201810550857 A CN201810550857 A CN 201810550857A CN 108848141 A CN108848141 A CN 108848141A
Authority
CN
China
Prior art keywords
data
server
visited
network
network 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.)
Pending
Application number
CN201810550857.9A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810550857.9A priority Critical patent/CN108848141A/en
Publication of CN108848141A publication Critical patent/CN108848141A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • H04L67/1078Resource delivery mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

This application discloses a kind of response methods of server data access, accessed data are uploaded in P2P network by server, when browser is to server request data, server only needs to send P2P network address, browser is set to obtain the data of access from P2P network, since the size of P2P network address compares the size of actual file data, server process performance and amount of bandwidth are influenced smaller, to the resources occupation rate of server when can effectively reduce client request data, avoid response speed slow or the not available situation of service.A kind of server data access method, the responding device of server data access, server data access device, server and computer readable storage medium is also disclosed in the application, has above-mentioned beneficial effect.

Description

A kind of response method of server data access and associated method and relevant apparatus
Technical field
This application involves field of computer technology, in particular to a kind of response method of server data access, server Data access method, the responding device of server data access, server data access device, server and computer-readable Storage medium.
Background technique
It is more and more using the user of internet with the continuous development of Internet technology, the number stored in internet According to also just it is more and more, so storage private server is developed, for storing static data and dynamic data.
But the server architecture that the general management software of private server only supports single-point is stored, that is, only one A server is for storing data.And do not have in the environment of application condition dispose independent server come to static data into Row shunts storage.Multiple client concentrates the static state to a server when more people concurrently access, or when downloading big file File accesses, and individual server is difficult the access to static file and carries out load balance process, so that server system Resource is largely occupied, and causes response speed slow or the not available situation of service.
Therefore, resources occupation rate when how to reduce client access server is the emphasis of those skilled in the art's concern Problem.
Summary of the invention
The purpose of the application is to provide a kind of response method of server data access, server data access method, clothes Be engaged in device data access responding device, server data access device, server and computer readable storage medium, pass through by Data to be visited are uploaded to P2P network, obtain access data by P2P network, reduce server bandwidth occupancy, improve service Device performance.
In order to solve the above technical problems, the application provides a kind of response method of server data access, including:
Server receives the access request that browser is sent;
The corresponding P2P network address of data to be visited is determined according to the access request;Wherein, the P2P network address It is to carry out P2P network upload process to the data to be visited to obtain;
The P2P network address is sent to the browser so that the browser according to the P2P network address from The P2P network obtains the data to be visited.
Optionally, the corresponding P2P network address of data to be visited is determined according to the access request;Wherein, the P2P net Network address be P2P network upload process is carried out to the data to be visited to obtain, including:
The server judges whether the data to be visited are uploaded to the P2P network according to the access request;
If so, determining the corresponding P2P network address of data to be visited according to the access request;Wherein, the P2P net Network address is to carry out P2P network upload process to the data to be visited to obtain.
Optionally, the corresponding P2P network address of data to be visited is determined according to the access request;Wherein, the P2P net Network address be P2P network upload process is carried out to the data to be visited to obtain, including:
The server judges whether the data to be visited are static data according to the access request;
If so, determining the corresponding P2P network address of data to be visited according to the access request;Wherein, the P2P net Network address is to carry out P2P network upload process to the data to be visited to obtain.
Optionally, P2P network upload process is carried out to the data to be visited and obtains the P2P network address, including:
The server carries out ID calculation processing to the data to be visited, obtains ID;
The ID and the data to be visited are uploaded in the P2P network, IP address is obtained;
Using the ID and the IP address as the P2P network address.
The application also provides a kind of server data access method, including:
Browser sends access request to server, so that the server sends the number to be visited to the browser According to P2P network address;Wherein, the P2P network address is that the server carries out on P2P network the data to be visited What biography was handled;
The P2P network address that the server is sent is received, and is obtained according to the P2P network address from the P2P network Take the data to be visited.
Optionally, the server carries out P2P network upload process with obtaining the P2P network to the data to be visited Location, including:
The server carries out ID calculation processing to the data to be visited, obtains ID;
The ID and the data to be visited are uploaded in the P2P network, IP address is obtained;
Using the ID and the IP address as the P2P network address.
Optionally, the server sends the P2P network address of the data to be visited to the browser, including:
It is described that the server according to the access request received judges whether the data to be visited are uploaded to P2P network;
If so, the corresponding P2P network address of the data to be visited is sent.
Optionally, the server sends the P2P network address of the data to be visited to the browser, including:
The server judges whether the data to be visited are static data according to the access request;
If so, the corresponding P2P network address of the data to be visited is sent.
The application also provides a kind of responding device of server data access, including:
Access request receiving module receives the access request that browser is sent for server;
Network address determining module, for determining the corresponding P2P network address of data to be visited according to the access request; Wherein, the P2P network address is to carry out P2P network upload process to the data to be visited to obtain;
Network address sending module, for the P2P network address to be sent to the browser, so that the browser The data to be visited are obtained from the P2P network according to the P2P network address.
The application also provides a kind of server data access device, including:
Access request sending module sends access request to server for browser, so that the server is to described Browser sends the P2P network address of the data to be visited;Wherein, the P2P network address is the server to described Data to be visited carry out what P2P network upload process obtained;
Data acquisition module to be visited, the P2P network address sent for receiving the server, and according to the P2P Network address obtains the data to be visited from the P2P network.
The application also provides a kind of server, including:
Memory, for storing computer program;
Processor realizes response method and/or server data as described above when for executing the computer program The step of access method.
The application also provides a kind of computer readable storage medium, which is characterized in that the computer readable storage medium On be stored with computer program, the computer program realizes response method and/or clothes as described above when being executed by processor The step of business device data access method.
A kind of response method of server data access provided herein, including:Server receives browser and sends Access request;The corresponding P2P network address of data to be visited is determined according to the access request;Wherein, the P2P network Location is to carry out P2P network upload process to the data to be visited to obtain;The P2P network address is sent to the browsing Device, so that the browser obtains the data to be visited from the P2P network according to the P2P network address.
Accessed data are uploaded in P2P network by server, when browser is to server request data, service Device only needs to send P2P network address, and browser is made to obtain the data of access from P2P network, big due to P2P network address The small size compared to actual file data, it is smaller on server process performance and amount of bandwidth influence, it can effectively reduce To the resources occupation rate of server when client request data, avoid response speed slow or the not available situation of service.
The application also provides a kind of server data access method, the responding device of server data access, server count According to access mechanism, server and computer readable storage medium, there is above-mentioned beneficial effect, this will not be repeated here.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow chart of the response method of server data access provided by the embodiment of the present application;
Fig. 2 is a kind of flow chart of server data access method provided by the embodiment of the present application;
Fig. 3 is a kind of flow chart of exchange method provided by the embodiment of the present application;
Fig. 4 is a kind of structural schematic diagram of the responding device of server data access provided by the embodiments of the present application;
Fig. 5 is a kind of structural schematic diagram of server data access device provided by the embodiments of the present application.
Specific embodiment
The core of the application is to provide a kind of response method of server data access, server data access method, clothes Be engaged in device data access responding device, server data access device, server and computer readable storage medium, pass through by Data to be visited are uploaded to P2P network, obtain access data by P2P network, reduce server bandwidth occupancy, improve service Device performance.
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art Every other embodiment obtained without making creative work, shall fall in the protection scope of this application.
Single-point control, that is, only one server can only be carried out for storing for server architecture in the prior art Data, and dispose independent server without condition and carry out the case where triage operator is carried out to flow.In the prior art, when more Multiple client concentration accesses to the static file of a server when people concurrently accesses, or when downloading big file, and Individual server is difficult the access to static file and carries out load balance process, so that server system resources are largely occupied, Cause response speed slow or the not available situation of service.
Therefore, the application provides a kind of embodiment, and server is clear by the way that the data being accessed are uploaded in P2P network When looking at device to server request data, server only needs to send P2P network address, and browser is made to obtain visit from P2P network The data asked, since the size of P2P network address compares the size of actual file data, to server process performance and bandwidth Size influences smaller, to the resources occupation rate of server when can effectively reduce client request data, avoids response speed The slow or not available situation of service.
Specifically, referring to FIG. 1, Fig. 1 is a kind of responder of server data access provided by the embodiment of the present application The flow chart of method.
This method may include:
S101, server receive the access request that browser is sent;
This step is intended to receive the access request that browser is sent by server, wherein access request refers to browser The request of the resource in server is accessed, therefore the access request data to be obtained are also referred to as data to be visited.
In the prior art, server directly returns to corresponding number after typically receiving the access request that browser is sent According at this time if server directly returns to corresponding data, so that server system resources are largely accounted under more concurrent states With causing response speed slow or the not available situation of service.Therefore it provides following steps are to solve the problems, such as this.
S102 determines the corresponding P2P network address of data to be visited according to access request;Wherein, P2P network address is pair Data to be visited carry out what P2P network upload process obtained;
On the basis of step S101, this step is with being intended to determine the P2P network of the data to be visited of access request access Location.
Wherein, which treats access data progress P2P network upload process and obtains.Namely service The accessed data stored in server can be carried out P2P network upload process in advance by device, and then obtain to download this wait visit Ask the P2P network address of data.Since server needs to upload multiple data to be visited, server saves more A P2P network address, so needing to determine corresponding P2P network address in this step according to access request.
Specifically be exactly that server is treated and accesses data and carry out in addition, the P2P network upload process passed through in this step A kind of processing is passed, any one P2P network that processing mode can be provided using the prior art uploads mode, can also once mention The processing method of confession:
Step 1, server treat access data and carry out ID calculation processing, obtain ID;
Present treatment mode, according to kad agreement, needs to treat access data especially by kad protocol processes data to be visited ID calculation processing is carried out, the ID that can identify the data to be visited is obtained.
ID and data to be visited are uploaded in P2P network, obtain IP address by step 2;
On the basis of step 1, this step is intended to say that ID and data to be visited are uploaded in P2P network, and then available The IP address of available data to be visited.It is general to obtain an IP address and get data to be visited, but meeting The case where node data for the storage occur is damaged, therefore available multiple IP address in step 2, such as obtain three A IP address.When obtaining data to be visited by IP address, data to be visited can be all obtained from all IP address, it can also be with Optionally the IP address of one of them obtains data to be visited.
Step 3, using ID and IP address as P2P network address.
On the basis of step 2, this step is mainly using obtained ID and IP address as P2P network address.
In addition, before execution further including being added to server as the ordinary node in P2P network in the present embodiment In P2P network.
P2P network address is sent to browser by S103, so that browser is obtained according to P2P network address from P2P network Data to be visited.
On the basis of step S102, the P2P network address that this step is intended to obtain previous step is sent to browser Place, can make browser get the data to be visited from P2P network according to the P2P network address.It is, when browsing When device obtains data to server, server can only return to P2P network address, rather than real data, and P2P network The size of location is very small, occupies the amount of bandwidth of server, and then reduce when how concurrent, and the influence to server improves clothes The utilization rate for device resource of being engaged in.
It should be noted that can not be the corresponding number to be visited of all access requests in more specific application environment According to being all uploaded to P2P network, that is, and not all access request return to P2P network address.
It is, therefore, possible to provide following optinal plan, judges whether return to P2P network address to the access request.
Optionally, the S102 in the present embodiment may include:
Server judges whether data to be visited are uploaded to P2P network according to access request;
If so, determining the corresponding P2P network address of data to be visited according to access request;Wherein, P2P network address is It treats access data and carries out what P2P network upload process obtained.
This optinal plan mainly judges whether the corresponding data to be visited of access request are uploaded in P2P network, Exactly judge data to be visited whether in P2P network.If the data to be visited are in P2P network, then just carrying out subsequent The step of.
Optionally, the S102 in the present embodiment also may include:
Server judges whether data to be visited are static data according to access request;
If so, determining the corresponding P2P network address of data to be visited according to access request;Wherein, P2P network address is It treats access data and carries out what P2P network upload process obtained.
In this optinal plan, by judging whether data to be visited are static data, with determining whether to determine P2P network Location.In actual server transport data, static data accounting is larger, and single static data is also bigger, therefore, this Judge whether the data to be visited are static data in optinal plan, then determines that the static data is corresponding if it is static data P2P network address can also be protected the biggish static data of data volume by P2P network with reasonable distribution server transmission bandwidth It deposits, other data pass through server transport.
To sum up, the data being accessed are by being uploaded in P2P network by the present embodiment, and browser is to server request data When, server only needs to send P2P network address, so that browser is obtained the data of access from P2P network, due to P2P network The size of address compares the size of actual file data, influences smaller, Ke Yiyou to server process performance and amount of bandwidth To the resources occupation rate of server when the reduction client request data of effect, avoid response speed slow or the not available feelings of service Condition.
Above embodiments are illustrated in the angle of server, below based on above embodiments, in the angle of browser One embodiment is provided again.
Specifically, referring to FIG. 2, Fig. 2 is a kind of stream of server data access method provided by the embodiment of the present application Cheng Tu.
This method may include:
S201, browser sends access request to server, so that server sends the P2P of data to be visited to browser Network address;Wherein, P2P network address be server treat access data carry out P2P network upload process obtain;
S202 receives the P2P network address that server is sent, and to be visited from the acquisition of P2P network according to P2P network address Data.
By step S201 and step S202, browser obtains the process of data to be visited, is not just directly from server Actual data are got, but from service acquisition to P2P network address, practical browser needs are got by P2P network Access data, and the size of P2P network address is smaller, can reduce the occupancy of bandwidth.
Wherein, the P2P network upload process that the present embodiment executes, is the processing that data to be visited are uploaded to P2P network, Any one upload process mode that existing offer can be used, can also be in the following ways:
Step 1, server treat access data and carry out ID calculation processing, obtain ID;
Present treatment mode, according to kad agreement, needs to treat access data especially by kad protocol processes data to be visited ID calculation processing is carried out, the ID that can identify the data to be visited is obtained.
ID and data to be visited are uploaded in P2P network, obtain IP address by step 2;
On the basis of step 1, this step is intended to say that ID and data to be visited are uploaded in P2P network, and then available The IP address of available data to be visited.It is general to obtain an IP address and get data to be visited, but meeting The case where node data for the storage occur is damaged, therefore available multiple IP address in step 2, such as obtain three A IP address.When obtaining data to be visited by IP address, data to be visited can be all obtained from all IP address, it can also be with Optionally the IP address of one of them obtains data to be visited.
Step 3, using ID and IP address as P2P network address.
On the basis of step 2, this step is mainly using obtained ID and IP address as P2P network address.
In addition, before execution further including being added to server as the ordinary node in P2P network in the present embodiment In P2P network.
It should be noted that can not be the corresponding number to be visited of all access requests in more specific application environment According to being all uploaded to P2P network, that is, and not all access request return to P2P network address.
It is, therefore, possible to provide following optinal plan, judges whether return to P2P network address to the access request.
Optionally, the S201 in the present embodiment may include:
Server judges whether data to be visited are uploaded to P2P network according to the access request received;
If so, the corresponding P2P network address of data to be visited is sent.
This optinal plan mainly judges whether the corresponding data to be visited of access request are uploaded in P2P network, Exactly judge data to be visited whether in P2P network.If the data to be visited are carried out subsequent in P2P network The step of.
Optionally, the S201 in the present embodiment may include:
Server judges whether data to be visited are static data according to access request;
If so, the corresponding P2P network address of data to be visited is sent.
In this optinal plan, by judging whether data to be visited are static data, with determining whether to determine P2P network Location.In actual server transport data, static data accounting is larger, and single static data is also bigger, therefore, this Judge whether the data to be visited are static data in optinal plan, it is corresponding that the static data is then sent if it is static data P2P network address can also be protected the biggish static data of data volume by P2P network with reasonable distribution server transmission bandwidth It deposits, other data pass through server transport.
To sum up, the present embodiment obtains the process of data to be visited, is not just by getting P2P network address, browser Actual data directly are got from server, but from service acquisition to P2P network address, reality is got by P2P network The data for the access that border browser needs, and the size of P2P network address is smaller, can reduce the occupancy of bandwidth.
Based on all of above embodiment, the one embodiment that can also be provided is said in server and browser both ends It is bright.
Referring to FIG. 3, Fig. 3 is a kind of flow chart of exchange method provided by the embodiment of the present application.
It should be noted that this method needs to realize a P2P (point-to-point biography inside the web server of management software It is defeated) agency by agreement;Need to write a JS module simultaneously to realize resource downloading of the user browser end in P2P network, And refresh browser display area after downloading successfully.
This method includes:
When step S301, web (webpage) server starts, P2P agency can allow web server as P2P network One ordinary node is added to P2P network, particularly Kad (protocol name) agreement in emule (electric donkey, a kind of P2P software) Bootstrap (message name) message.
Step S302, web server is the picture to be issued, and generating a KadID, (this is that the P2P network of emule is necessary ID), then the ID and picture are published in P2P network, while recording picture and the relationship of ID in memory.
Step S303, client pass through http (hypertext transfer protocol) protocol access picture.
Step S304, management software webserver (web page server) discovery picture are cached in P2P network, thus Return to arranging as a result, enclosing the ID value of object and the IP for the P2P node for saving the object simultaneously for browser one redirection Table (number of conservation object is usually 3 parts).
Step S305, browser go download pictures resource in P2P network according to object ID and a free IP address. After downloading successfully, JS (JavaScript, a kind of literal translation formula scripting language) refreshes region to be shown again
The present embodiment is published to the static file of management software by borrowing the distributed storage ability of P2P network In P2P network, user can go in P2P network to download file, reduce the pressure to management software server, improve management The availability and performance of software.Although client is not downloaded any there are also once accessing management software server Big picture, file return to an ID and IP list compared to directly downloading, to the CPU (central processing unit) and IO of server (input and output) pressure or small very much.So the buffer efficiency of P2P or very high.
A kind of responding device of server data access provided by the embodiments of the present application is introduced below, is described below The responding device of server data access a kind of can be mutual with a kind of above-described response method of server data access To should refer to.
Referring to FIG. 4, Fig. 4 is that a kind of structure of the responding device of server data access provided by the embodiments of the present application is shown It is intended to.
The apparatus may include:
Access request receiving module 110 receives the access request that browser is sent for server;
Network address determining module 120, for determining the corresponding P2P network address of data to be visited according to access request; Wherein, P2P network address is treated access data progress P2P network upload process and is obtained;
Network address sending module 130, for P2P network address to be sent to browser, so that browser is according to P2P net Network address obtains data to be visited from P2P network.
A kind of server data access device provided by the embodiments of the present application is introduced below, one kind described below Server data access device can correspond to each other reference with a kind of above-described server data access method.
Referring to FIG. 5, Fig. 5 is a kind of structural schematic diagram of server data access device provided by the embodiments of the present application.
The apparatus may include:
Access request sending module 210 sends access request to server for browser, so that server is to browser Send the P2P network address of data to be visited;Wherein, P2P network address is that server is treated on access data progress P2P network What biography was handled;
220, for receive server transmission P2P network address, and according to P2P network address from P2P network obtain to Access data.
The embodiment of the present application also provides a kind of server, including:
Memory, for storing computer program;
Processor realizes response method and/or server data such as above embodiments when for executing computer program The step of access method.
The embodiment of the present application also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program realizes that response method and/or server data such as above embodiments are visited when computer program is executed by processor The step of asking method.
Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other realities The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment Speech, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part illustration ?.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond scope of the present application.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
Above to a kind of response method of server data access provided herein, server data access method, Responding device, server data access device, server and the computer readable storage medium of server data access carry out It is discussed in detail.Specific examples are used herein to illustrate the principle and implementation manner of the present application, above embodiments Explanation be merely used to help understand the present processes and its core concept.It should be pointed out that for the common of the art For technical staff, under the premise of not departing from the application principle, can also to the application, some improvement and modification can also be carried out, these Improvement and modification are also fallen into the protection scope of the claim of this application.

Claims (12)

1. a kind of response method of server data access, which is characterized in that including:
Server receives the access request that browser is sent;
The corresponding P2P network address of data to be visited is determined according to the access request;Wherein, the P2P network address is pair The data to be visited carry out what P2P network upload process obtained;
The P2P network address is sent to the browser, so that the browser is according to the P2P network address from described P2P network obtains the data to be visited.
2. response method according to claim 1, which is characterized in that determine data pair to be visited according to the access request The P2P network address answered;Wherein, the P2P network address is to carry out P2P network upload process to the data to be visited to obtain , including:
The server judges whether the data to be visited are uploaded to the P2P network according to the access request;
If so, determining the corresponding P2P network address of data to be visited according to the access request;Wherein, the P2P network Location is to carry out P2P network upload process to the data to be visited to obtain.
3. response method according to claim 1, which is characterized in that determine data pair to be visited according to the access request The P2P network address answered;Wherein, the P2P network address is to carry out P2P network upload process to the data to be visited to obtain , including:
The server judges whether the data to be visited are static data according to the access request;
If so, determining the corresponding P2P network address of data to be visited according to the access request;Wherein, the P2P network Location is to carry out P2P network upload process to the data to be visited to obtain.
4. response method according to any one of claims 1 to 3, which is characterized in that carry out P2P to the data to be visited Network upload process obtains the P2P network address, including:
The server carries out ID calculation processing to the data to be visited, obtains ID;
The ID and the data to be visited are uploaded in the P2P network, IP address is obtained;
Using the ID and the IP address as the P2P network address.
5. a kind of server data access method, which is characterized in that including:
Browser sends access request to server, so that the server sends the data to be visited to the browser P2P network address;Wherein, the P2P network address is that the server carries out at the upload of P2P network the data to be visited What reason obtained;
The P2P network address that the server is sent is received, and institute is obtained from the P2P network according to the P2P network address State data to be visited.
6. server data access method according to claim 5, which is characterized in that the server is to described to be visited Data carry out P2P network upload process and obtain the P2P network address, including:
The server carries out ID calculation processing to the data to be visited, obtains ID;
The ID and the data to be visited are uploaded in the P2P network, IP address is obtained;
Using the ID and the IP address as the P2P network address.
7. server data access method according to claim 6, which is characterized in that the server is to the browser The P2P network address of the data to be visited is sent, including:
The server judges whether the data to be visited are uploaded to the P2P net according to the access request received Network;
If so, the corresponding P2P network address of the data to be visited is sent.
8. server data access method according to claim 6, which is characterized in that the server is to the browser The P2P network address of the data to be visited is sent, including:
The server judges whether the data to be visited are static data according to the access request;
If so, the corresponding P2P network address of the data to be visited is sent.
9. a kind of responding device of server data access, which is characterized in that including:
Access request receiving module receives the access request that browser is sent for server;
Network address determining module, for determining the corresponding P2P network address of data to be visited according to the access request;Its In, the P2P network address is to carry out P2P network upload process to the data to be visited to obtain;
Network address sending module, for the P2P network address to be sent to the browser so that the browser according to The P2P network address obtains the data to be visited from the P2P network.
10. a kind of server data access device, which is characterized in that including:
Access request sending module sends access request to server for browser, so that the server is to the browsing Device sends the P2P network address of the data to be visited;Wherein, the P2P network address be the server to described wait visit Ask that data carry out what P2P network upload process obtained;
Data acquisition module to be visited, the P2P network address sent for receiving the server, and according to the P2P network Address obtains the data to be visited from the P2P network.
11. a kind of server, which is characterized in that including:
Memory, for storing computer program;
Processor realizes the step such as the described in any item response methods of Claims 1-4 when for executing the computer program The step of rapid and/or claim 5 to 8 described in any item server data access methods.
12. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program is realized when the computer program is executed by processor such as the step of Claims 1-4 described in any item response methods And/or the step of claim 5 to 8 described in any item server data access methods.
CN201810550857.9A 2018-05-31 2018-05-31 A kind of response method of server data access and associated method and relevant apparatus Pending CN108848141A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810550857.9A CN108848141A (en) 2018-05-31 2018-05-31 A kind of response method of server data access and associated method and relevant apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810550857.9A CN108848141A (en) 2018-05-31 2018-05-31 A kind of response method of server data access and associated method and relevant apparatus

Publications (1)

Publication Number Publication Date
CN108848141A true CN108848141A (en) 2018-11-20

Family

ID=64210277

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810550857.9A Pending CN108848141A (en) 2018-05-31 2018-05-31 A kind of response method of server data access and associated method and relevant apparatus

Country Status (1)

Country Link
CN (1) CN108848141A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112261090A (en) * 2020-09-28 2021-01-22 成都长虹网络科技有限责任公司 Web data processing method and device, computer equipment and readable storage medium
WO2022267797A1 (en) * 2021-06-21 2022-12-29 华为技术有限公司 Message generation method and apparatus

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101098272A (en) * 2006-06-27 2008-01-02 腾讯科技(深圳)有限公司 Seed enquiring method of P2P system and P2P server
CN102170456A (en) * 2010-02-27 2011-08-31 华为技术有限公司 Method, device and system for acquiring content in PPN (peer-to-peer network)
CN102882983A (en) * 2012-10-22 2013-01-16 南京云创存储科技有限公司 Rapid data memory method for improving concurrent visiting performance in cloud memory system
CN103220354A (en) * 2013-04-18 2013-07-24 广东宜通世纪科技股份有限公司 Method for achieving load balancing of server cluster
CN103685496A (en) * 2013-12-06 2014-03-26 华为技术有限公司 Transmission method and device of file data
CN103731454A (en) * 2012-10-12 2014-04-16 百度在线网络技术(北京)有限公司 Method for responding to requests in point-to-point network and server system
CN104602047A (en) * 2014-12-05 2015-05-06 海信集团有限公司 Share method of EPG (error pattern generator) data, server, terminal and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101098272A (en) * 2006-06-27 2008-01-02 腾讯科技(深圳)有限公司 Seed enquiring method of P2P system and P2P server
CN102170456A (en) * 2010-02-27 2011-08-31 华为技术有限公司 Method, device and system for acquiring content in PPN (peer-to-peer network)
CN103731454A (en) * 2012-10-12 2014-04-16 百度在线网络技术(北京)有限公司 Method for responding to requests in point-to-point network and server system
CN102882983A (en) * 2012-10-22 2013-01-16 南京云创存储科技有限公司 Rapid data memory method for improving concurrent visiting performance in cloud memory system
CN103220354A (en) * 2013-04-18 2013-07-24 广东宜通世纪科技股份有限公司 Method for achieving load balancing of server cluster
CN103685496A (en) * 2013-12-06 2014-03-26 华为技术有限公司 Transmission method and device of file data
CN104602047A (en) * 2014-12-05 2015-05-06 海信集团有限公司 Share method of EPG (error pattern generator) data, server, terminal and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112261090A (en) * 2020-09-28 2021-01-22 成都长虹网络科技有限责任公司 Web data processing method and device, computer equipment and readable storage medium
CN112261090B (en) * 2020-09-28 2022-06-17 成都长虹网络科技有限责任公司 Web data processing method and device, computer equipment and readable storage medium
WO2022267797A1 (en) * 2021-06-21 2022-12-29 华为技术有限公司 Message generation method and apparatus

Similar Documents

Publication Publication Date Title
CN105100294B (en) Obtain method, system, the webserver, browser and the GSLB of webpage
CN103218434B (en) A kind of method and apparatus loading static resource
CN108027805B (en) Load distribution in a data network
CN113010818A (en) Access current limiting method and device, electronic equipment and storage medium
US10742763B2 (en) Data limit aware content rendering
US10097616B2 (en) Methods for optimizing service of content requests and devices thereof
CN110020043B (en) Page crawling method, device, storage medium and processor
JP6404816B2 (en) Method and apparatus for responding to web page access request
WO2013188981A1 (en) Common web accessible data store for client side page processing
CN108021594B (en) Webpage display method, device and system
CN108920703A (en) A kind of HTTP cache optimization method and device
CN103716319B (en) A kind of apparatus and method of web access optimization
CN108848141A (en) A kind of response method of server data access and associated method and relevant apparatus
CN103338233B (en) Load-balancing device, Web server and solicited message processing method and system
US11882055B1 (en) Computer resource-based API transaction method and system
CN107645543A (en) Method and system applied to the non-80 caching miniport services of caching server HTTP
CN117370046A (en) Inter-process communication method, system, device and storage medium
Muller HTML5 WebSocket protocol and its application to distributed computing
CN107332703A (en) A kind of inspection method and device of many application daily records
Huang et al. Achieving fast page load for websites across multiple domains
CN106777346B (en) Nginx web Back end datas processing methods and system based on C language
CN114095578B (en) Function distribution method, unified scheduling platform, edge node and computing device
CN106657277A (en) Http proxy service method and server and system
Zhao et al. DotSlash: Handling web hotspots at dynamic content web sites
CN110532102A (en) Implementation method, device, electronic equipment and the readable storage medium storing program for executing of application function

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: 20181120

RJ01 Rejection of invention patent application after publication