CN105357253A - Network data request processing device and method - Google Patents

Network data request processing device and method Download PDF

Info

Publication number
CN105357253A
CN105357253A CN201510623856.9A CN201510623856A CN105357253A CN 105357253 A CN105357253 A CN 105357253A CN 201510623856 A CN201510623856 A CN 201510623856A CN 105357253 A CN105357253 A CN 105357253A
Authority
CN
China
Prior art keywords
server
data
client
fixed value
cube computation
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
CN201510623856.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.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201510623856.9A priority Critical patent/CN105357253A/en
Publication of CN105357253A publication Critical patent/CN105357253A/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/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management

Landscapes

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

Abstract

The invention discloses a network data request processing device and method. The network data request processing device comprises a receiving module used for receiving a network data request transmitted by a client; an acquisition module used for acquiring first cache data and a user parameter of the client; and a connection module used for establishing a data connection between the client and a corresponding server of a fixed value n when a corresponding relation of the user parameter of the client and the fixed value n is stored in the first cache data. The network data request processing method and device provided by the invention ensure that the client can access a fixed server in a server cluster, so that business processing of users can be distributed in clusters on a same server.

Description

Network data request processing unit and method
Technical field
The present invention relates to communication technique field, particularly relate to network data request processing unit and method.
Background technology
Along with being gradually improved of network service, we in acquisition simultaneously easily, are also faced with huge challenge, and the straight line of voice and packet data concurrent service access number increases, and is the baptism to the server ability to work in network.Adopt multiserver Clustering to be the effective scheme solved the problem, and load balancing is the key problem of Clustering.A large amount of Concurrency Access requests reasonably all can be assigned to the enterprising row relax of each back-end server in cluster by load balancing, efficiently avoid the problem that single server data flow is excessive, the resource of each back-end server can be made simultaneously to obtain balanced use.Load balancing comprises hardware and software two type, hardware with high costs, and the load balancing configuration deployment of software is flexible, and the parent being more and more subject to people looks at.
What software load equilibrium was conventional is Reverse Proxy, such as Nginx server.Reverse proxy refers to proxy server to receive the connection request in network, uses balance policy by Requests routing to the server cluster on internal network, and the result obtained from server cluster is returned in network the client sending connection request.
Need repeatedly the situation of access services device for a network data request during Business Processing, such as burst upload file, needs can ensure that each data request processing is at same station server.In some cases, such as when a client-access page, this page may be stored in multiple servers of server cluster, what client accessed that this page may access at every turn is different servers, therefore sharing users data between multiple different server are just needed, otherwise the asynchronous problem of Data Update when will cause each this page of access.
Therefore, need to provide a kind of apparatus and method making fixed server in client-access server cluster in server cluster.
Summary of the invention
Main purpose of the present invention is to propose a kind of apparatus and method making fixed server in client-access server cluster in server cluster.
For achieving the above object, a kind of network data request processing unit provided by the invention, described network data request processing unit comprises: receiver module, for receiving the network data request that client sends; Acquisition module, for obtaining the customer parameter of the first data cached and described client; And link block, for described first data cached in store the corresponding relation of the customer parameter of described client and fixed value n time set up data cube computation between described client and described fixed value n corresponding server.
Preferably, described network data request processing unit also comprises study module, for historical network data request is converted to fixed value n, set up the corresponding relation between described fixed value n and N number of server, and by data cached stored in second for the corresponding relation between described fixed value n and N number of server.
Preferably, described acquisition module also for described first data cached in do not store the corresponding relation of the customer parameter of described client and fixed value n time obtain second data cached, accordingly, described link block is also for according to the described second data cached data cube computation setting up described client and corresponding server.
Preferably, described fixed value n is natural number and n is less than or equal to N, described link block is also for specifically comprising according to the described second data cached data cube computation setting up described client and corresponding server: described second data cached in the last historical data in fixed value n equal N time set up in described client and described N number of server between first server data cube computation, and be 1 by fixed value n assignment; And described second data cached in the last historical data in fixed value n1 be not equal to N time set up in described client and described N number of server between (n+1)th server data cube computation, and the value of fixed value n is added 1.
Preferably, described link block also for according to described second data cached set up the data cube computation of described client and corresponding server after by data cached stored in first for the corresponding relation between the customer parameter of described client and described fixed value n.
A kind of network data request processing method that the present invention also provides, described method comprises step: receive the network data request that client sends; Obtain the customer parameter of the first data cached and described client; And described first data cached in store the corresponding relation of the customer parameter of described client and fixed value n time set up data cube computation between described client and described fixed value n corresponding server.
Preferably, described method also comprises: historical network data request is converted to fixed value n; Set up the corresponding relation between described fixed value n and N number of server, and by data cached stored in second for the corresponding relation between described fixed value n and N number of server.
Preferably, described method also comprises: described first data cached in do not store the corresponding relation of the customer parameter of described client and fixed value n time obtain second data cached; According to the described second data cached data cube computation setting up described client and corresponding server.
Preferably, described fixed value n is natural number and n is less than or equal to N, describedly specifically to comprise according to the described second data cached data cube computation setting up described client and corresponding server: described second data cached in the last historical data in fixed value n equal N time set up in described client and described N number of server between first server data cube computation, and be 1 by fixed value n assignment; And described second data cached in the last historical data in fixed value n1 be not equal to N time set up in described client and described N number of server between (n+1)th server data cube computation, and the value of fixed value n is added 1.
Preferably, described according to described second data cached set up the data cube computation of described client and corresponding server after also comprise step: by data cached stored in first for the corresponding relation between the customer parameter of described client and described fixed value n.
The data request processing method that the present invention proposes and device, the network data request sent by receiving client obtains the customer parameter of client, compare and inquire about during the customer parameter of client is data cached first, described first data cached in store the corresponding relation of the customer parameter of described client and fixed value n time, set up the data cube computation between described client and described fixed value n corresponding server, ensure that fixed server in client energy access services device cluster, the Business Processing of user can be distributed by cluster on same station server.
Accompanying drawing explanation
Fig. 1 is the system schematic realizing each embodiment of the present invention;
Fig. 2 is the modular structure schematic diagram of the processing unit realizing each embodiment of the present invention;
The data request processing method flow schematic diagram that Fig. 3 provides for third embodiment of the invention;
Fig. 4 is the method flow schematic diagram that in third embodiment of the invention, the second buffer memory sets up historical data;
Fig. 5 is the method flow schematic diagram being set up client and corresponding server data cube computation in third embodiment of the invention by the second buffer memory.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further with reference to accompanying drawing.
Specific embodiment
Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The mobile terminal realizing each embodiment of the present invention is described referring now to accompanying drawing.In follow-up description, use the suffix of such as " module ", " parts " or " unit " for representing element only in order to be conducive to explanation of the present invention, itself is specific meaning not.Therefore, " module " and " parts " can mixedly use.
Please refer to Fig. 1, for data request processing device 210100 communication system schematic diagram in the embodiment of the present invention, N number of server composition server cluster 300, server cluster 300 is connected with client 100 communication by Reverse Proxy 200, wherein server cluster 300 and Reverse Proxy 200, and be connected by the combined communication of wired mode, wireless mode or wired mode and wireless mode between Reverse Proxy 200 with client 100, such as World Wide Web (WWW), local area network (LAN), satellite-based communication system or their combination.
Data request processing device 210 in the embodiment of the present invention, rear title processing unit 210, may operate in client 100, private server, such as run the Reverse Proxy 200 having Nginx system, or in network in other special electronic installations, in the present embodiment, processing unit 210 operates in Reverse Proxy 200, Reverse Proxy 200 at least comprises a buffer memory, in the present embodiment, Reverse Proxy 200 comprises two buffer memorys, the first buffer memory 220 and the second buffer memory 230 respectively, first buffer memory 220 stores the first buffer memory 220 data, second buffer memory 230 stores the second buffer memory 230 data.In other embodiments of the invention, the first buffer memory 220 data and the second buffer memory 230 data also can be stored in the different storage zone of same buffer memory.
Client 100 can be implemented in a variety of manners.Such as, the client 100 described in the present invention can comprise the such as mobile terminal of mobile phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP (portable media player), guider etc. and the fixed terminal of such as digital TV, desktop computer etc.It will be appreciated by those skilled in the art that except the element except being used in particular for mobile object, constructing the terminal that also can be applied to fixed type according to an embodiment of the invention.
Run in client 100 and have browser, browser refers to can html file (application of the standard generalized markup language) content of display web page server or file system, and allows a kind of software of user and these file interactions.It is used for being presented at word, image and other information in World Wide Web (WWW) or local area network (LAN) etc.These words or image, can be the hyperlink connecting other network address, user can browse various information rapidly and easily.Webpage comprises multiple document, and each document obtains from the one or more servers server cluster 300 respectively.Web page files comprises image, animation, video, sound, Streaming Media etc.
Server is to provide the electronic equipment of calculation services.The request of server respond services, row relax of going forward side by side.The formation of server comprises processor, hard disk, internal memory, system bus etc., server and general computer hardware similar.In a network environment, different according to the COS that server provides, be divided into file server, database server, apps server, web page server etc.In the present embodiment, the server in server cluster 300 is web page server.
Data and the file of web page files or extended formatting type is stored in server cluster 300, server cluster 300 of the present invention adopts load-balancing technique, each web page files is stored in the multiple servers in server cluster 300, the different piece of each web page files also may be stored in the multiple servers in server cluster 300, client 100 sends network data request by browser to Reverse Proxy 200, Reverse Proxy 200 finds server corresponding in server cluster 300 by processing unit 210, and set up the data cube computation of corresponding server and client 100, with the file content making the browser of client 100 can obtain corresponding server, thus make client 100 and corresponding server complete information interaction.
Processing unit 210 in various embodiment of the present invention can to use such as computer software, the computer-readable medium of hardware or its any combination implements.For hardware implementation, the embodiments described herein can by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device 210 (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), processor, controller, microcontroller, microprocessor, being designed at least one performed in the electronic unit of function described herein and implementing.For implement software, the embodiment of such as process or function can be implemented with allowing the independent software module performing at least one function or operation.Software code can be implemented by the software application (or program) write with any suitable programming language, and software code can store in memory and be performed by controller.
Based on hardware configuration and the communication system of above-mentioned client 100, Reverse Proxy 200 and server cluster 300, each embodiment of the inventive method is proposed.
As shown in Figure 2, first embodiment of the invention proposes a kind of processing unit 210, and described processing unit 210 comprises receiver module 211, acquisition module 212 and link block 213.The network data request that receiver module 211 sends for receiving client 100, acquisition module 212, for obtaining the customer parameter of the first buffer memory 220 data in the first buffer memory 220 and described client 100, sets up the data cube computation between described client 100 and described fixed value n corresponding server when link block 213 for storing the corresponding relation of the customer parameter of described client 100 and fixed value n in described first buffer memory 220 data.
In the present embodiment, URL (the Uniform/UniversalResourceLocator that network data request is inputted by user, URL(uniform resource locator)) generate, URL is a kind of expression succinctly of position to the resource that can obtain from the Internet and access method, be the address of Internet resources, the information that it comprises points out how the position of file and browser should process it.
Specifically, the browser address bar of client 100 receives the URL of user's input and the input receiving user triggers, client 100 generates the network data request Concurrency comprising URL information and gives processing unit 210, wherein, IP address or the network address domain-name information of a position in network may be comprised in URL, comprise in URL be network address domain-name information time, also comprise and the domain-name information in URL found in the dns server corresponding IP address.
Receiver module 211 receives the network data request that client 100 sends, and acquisition module 212 obtains the customer parameter of described client 100., customer parameter comprises Customs Assigned Number, the parameter of the signable user such as token, and in the present embodiment, customer parameter is token, and token representative performs the object of the right of some operation.Wherein the customer parameter of client 100 can be sent in the lump by network data request, also can obtain to client 100 by acquisition module 212 after receiver module 211 receives the network data request of client 100 transmission.
Acquisition module 212 is also for obtaining the first buffer memory 220 data, and the first buffer memory 220 data are stored in the first buffer memory 220, and the first buffer memory 220 can be independently caching server in network, also can be the cache module in cluster server or client 100.The data cube computation between described client 100 and described fixed value n corresponding server is set up when link block 213 stores the corresponding relation of the customer parameter of described client 100 and fixed value n in described first buffer memory 220 data.
Server in fixed value n and server cluster 300 has one-to-one relationship, server multiple in server cluster 300 can be numbered in order, such as, when n is 1, in corresponding server cluster 300 be numbered 1 server, when n is 2, in corresponding server cluster 300 be numbered 1 server.Different server in the span corresponding server cluster 300 of n also can be set, such as, certain particular server corresponding in corresponding server cluster 300 when the value of n is Binary Zero 0000001-00001000.In the present embodiment, n is natural number, and is less than the number of servers N in server cluster 300.
If store the customer parameter of client 100 and the corresponding relation of fixed value n in the first buffer memory 220, so just, fixed value n corresponding to this client 100 customer parameter can be obtained by inquiry in first buffer memory 220 data of the customer parameter of the client 100 of acquisition in the first buffer memory 220, thus determine the server in corresponding server cluster 300 according to this fixed value n, thus make client 100 set up the connection with this server by processing unit 210, thus ensure that the request of data of the client 100 of each same subscriber parameter is all access on that server and process.
In the present embodiment, fixed value n is specially and performs the cryptographic Hash after hash algorithm to URL.Processing unit 210 also comprises study module 214, for historical network data request is converted to fixed value n, set up the corresponding relation between N number of server in described fixed value n and server cluster 300, and by the customer parameter information that comprises in the corresponding relation between described fixed value n with N number of server and corresponding network data solicited message stored in the second buffer memory 230 data of the second buffer memory 230.
Specifically, URL can be performed hash algorithm to be fixed value n by study module 214, by fixed value n, i.e. cryptographic Hash, thus this URL can be directed in server cluster 300, fix a station server, study module 214 by historical operation, to the corresponding relation of a certain server in the Hash result of URL and Hash result and server cluster 300 stored in the second buffer memory 230 data of the second buffer memory 230.
In other embodiments of the invention, the historical data stored in second buffer memory 230 data also can have additive method to obtain, when number of servers such as in server cluster 300 is less, by the corresponding relation between self-defined predetermined fixed value n and corresponding server.
From the second buffer memory 230, the second buffer memory 230 data are obtained when acquisition module 212 also for not storing the corresponding relation of the customer parameter of described client 100 and fixed value n in described first buffer memory 220 data, accordingly, described link block 213 is also for setting up the data cube computation of described client 100 and corresponding server according to described second buffer memory 230 data.
In the present embodiment, the data cube computation of link block 213 also for setting up described client 100 and corresponding server according to described second buffer memory 230 data specifically comprises: set up data cube computation between first server in described client 100 and described N number of server when the fixed value n in the last historical data in described second buffer memory 230 data equals N, and be 1 by fixed value n assignment; And the fixed value n1 in the last historical data in described second buffer memory 230 data sets up in described client 100 and described N number of server between (n+1)th server data cube computation when being not equal to N, and the value of fixed value n is added 1.
When there is not the token and cryptographic Hash corresponding relation that indicate client 100 identity in the first buffer memory 220210, from the second buffer memory 230, obtain historical data, and from historical data, take out the last invoked cryptographic Hash.
Such as when there being 9 station server in server cluster 300, when invoked cryptographic Hash the last in discovery second buffer memory 230 is 9, then set up first server in client 100 and server, or be numbered the data cube computation of server of 1, and cryptographic Hash is revised as 1.When invoked cryptographic Hash the last in discovery second buffer memory 230 is 7, when being not equal to 9, then set up the 7th server in client 100 and server, or be numbered the data cube computation of server of 8, and cryptographic Hash is revised as 8.When invoked cryptographic Hash the last in discovery second buffer memory 230 be 1 be not equal to 9 time, then set up the 2nd server in client 100 and server, or be numbered the data cube computation of server of 2, and cryptographic Hash is revised as 2.
Link block 213 also for after setting up the data cube computation of described client 100 and corresponding server according to described second buffer memory 230 data by the corresponding relation between the customer parameter of described client 100 and described fixed value n stored in the first buffer memory 220 data.
Among client 100 and corresponding server connect, link block 213 is by the token of this client 100 and just completed the cryptographic Hash of data cube computation and server and their corresponding relation stored in the first buffer memory 220 data of the first buffer memory 220, when sending request of data to make the client 100 of same subscriber parameter next time, from the first buffer memory 220, directly inquire about corresponding cryptographic Hash and server location and numbering, thus set up the data cube computation of this client 100 and corresponding server.
By in second embodiment of inventing, link block 213 directly finds corresponding server to set up the data cube computation of client 100 and corresponding server according to the cryptographic Hash called the last in historical data from the second buffer memory 230, and the corresponding relation of client 100 customer parameter and cryptographic Hash and server is stored in the second buffer memory 230, and do not need first to carry out inquiring about and judging from the first buffer memory 220.
The processing unit 210 that the present invention proposes, the network data request sent by receiving client 100 obtains the customer parameter of client 100, the customer parameter of client 100 is compared and inquires about in the first buffer memory 220 first is data cached, described first data cached in store the corresponding relation of the customer parameter of described client 100 and fixed value n time, set up the data cube computation between described client 100 and described fixed value n corresponding server, ensure that fixed server in client 100 energy access services device cluster 300, the Business Processing of user can be distributed by cluster on same station server.
Third embodiment of the invention provides a kind of data request processing method, and described method is performed by processing unit 210, and processing unit 210 comprises receiver module 211, acquisition module 212 and link block 213.The network data request that receiver module 211 sends for receiving client 100, acquisition module 212, for obtaining the customer parameter of the first buffer memory 220 data and described client 100, sets up the data cube computation between described client 100 and described fixed value n corresponding server when link block 213 for storing the corresponding relation of the customer parameter of described client 100 and fixed value n in described first buffer memory 220 data.
Please refer to Fig. 3, described method comprises step:
S101: receiver module 211 receives the network data request that client 100 sends.
In the present embodiment, URL (the Uniform/UniversalResourceLocator that network data request is inputted by user, URL(uniform resource locator)) generate, URL is a kind of expression succinctly of position to the resource that can obtain from the Internet and access method, be the address of Internet resources, the information that it comprises points out how the position of file and browser should process it.
Specifically, the browser address bar of client 100 receives the URL of user's input and the input receiving user triggers, client 100 generates the network data request Concurrency comprising URL information and gives processing unit 210, wherein, IP address or the network address domain-name information of a position in network may be comprised in URL, comprise in URL be network address domain-name information time, also comprise and the domain-name information in URL found in the dns server corresponding IP address.
S102: acquisition module 212 obtains the customer parameter of client 100.
Receiver module 211 receives the network data request that client 100 sends, and acquisition module 212 obtains the customer parameter of described client 100., customer parameter comprises Customs Assigned Number, the parameter of the signable user such as token, and in the present embodiment, customer parameter is token, and token representative performs the object of the right of some operation.Wherein the customer parameter of client 100 can be sent in the lump by network data request, also can obtain to client 100 by acquisition module 212 after receiver module 211 receives the network data request of client 100 transmission.
S103: acquisition module 212 obtains the first buffer memory 220 data.
Acquisition module 212 is also for obtaining the first buffer memory 220 data, and the first buffer memory 220 data are stored in the first buffer memory 220, and the first buffer memory 220 can be independently caching server in network, also can be the cache module in cluster server or client 100.The data cube computation between described client 100 and described fixed value n corresponding server is set up when link block 213 stores the corresponding relation of the customer parameter of described client 100 and fixed value n in described first buffer memory 220 data.
Wherein, in other embodiments, step S102 and step S103 can be same step, or step S103 is before step S102.
S104: link block 213 judges whether store the customer parameter of client 100 and the corresponding relation of fixed value n in the first buffer memory 220 data, is enter step S105.
S105: set up the data cube computation between described client 100 and described fixed value n corresponding server when link block 213 stores the corresponding relation of the customer parameter of described client 100 and fixed value n in described first buffer memory 220 data.
Server in fixed value n and server cluster 300 has one-to-one relationship, server multiple in server cluster 300 can be numbered in order, such as, when n is 1, in corresponding server cluster 300 be numbered 1 server, when n is 2, in corresponding server cluster 300 be numbered 1 server.Different server in the span corresponding server cluster 300 of n also can be set, such as, certain particular server corresponding in corresponding server cluster 300 when the value of n is Binary Zero 0000001-00001000.In the present embodiment, n is natural number, and is less than the number of servers N in server cluster 300.
If store the customer parameter of client 100 and the corresponding relation of fixed value n in the first buffer memory 220, so just, fixed value n corresponding to this client 100 customer parameter can be obtained by inquiry in first buffer memory 220 data of the customer parameter of the client 100 of acquisition in the first buffer memory 220, thus determine the server in corresponding server cluster 300 according to this fixed value n, thus make client 100 set up the connection with this server by processing unit 210, thus ensure that the request of data of the client 100 of each same subscriber parameter is all access on that server and process.
Please refer to Fig. 4, in the present embodiment, described method is further comprising the steps of:
S201: historical network data request is converted to fixed value n by study module 214;
S202: study module 214 sets up the corresponding relation between described fixed value n and N number of server, and by the corresponding relation between described fixed value n and N number of server stored in the second buffer memory 230 data.
In the present embodiment, fixed value n is specially and performs the cryptographic Hash after hash algorithm to URL.Processing unit 210 also comprises study module 214, for historical network data request is converted to fixed value n, set up the corresponding relation between N number of server in described fixed value n and server cluster 300, and by the corresponding relation between described fixed value n and N number of server stored in the second buffer memory 230 data of the second buffer memory 230.
Specifically, URL can be performed hash algorithm to be fixed value n by study module 214, by fixed value n, i.e. cryptographic Hash, thus this URL can be directed in server cluster 300, fix a station server, study module 214 by historical operation, to the corresponding relation of a certain server in the Hash result of URL and Hash result and server cluster 300 stored in the second buffer memory 230 data of the second buffer memory 230.
In other embodiments of the invention, the historical data stored in second buffer memory 230 data in step S201 and step S202 also can have additive method to obtain, when number of servers such as in server cluster 300 is less, by the corresponding relation between self-defined predetermined fixed value n and corresponding server.
Corresponding, please refer to Fig. 5, in the present embodiment, further comprising the steps of:
In step S104, if enter step S106 when link block 213 does not store the corresponding relation of the customer parameter of described client 100 and fixed value n in described first buffer memory 220 data: acquisition module obtains the second buffer memory 230 data;
S107: acquisition module 212 obtains the fixed value n in the last historical data in the second buffer memory 230 data.
S108: link block 213 judges whether n equals N, if then enter step S111, then enters step S109 if not.
In step S108, if n is not equal to N, enter step S109: link block 213 sets up the data cube computation in client 100 and server cluster 300 between (n+1)th server.
S110: link block 213 arranges n=n+1, then enters step S113.
In step S108, if n equals N, enter step S111: link block 213 sets up the data cube computation in client 100 and server cluster 300 between the 1st server.
S110: link block 213 arranges n=1, then enters step S113.
Step S113: link block 213 by the corresponding relation between the customer parameter of client 100 and fixed value n stored in the first buffer memory 220 data.
From the second buffer memory 230, the second buffer memory 230 data are obtained when acquisition module 212 also for not storing the corresponding relation of the customer parameter of described client 100 and fixed value n in described first buffer memory 220 data, accordingly, described link block 213 is also for setting up the data cube computation of described client 100 and corresponding server according to described second buffer memory 230 data.
In the present embodiment, the data cube computation of link block 213 also for setting up described client 100 and corresponding server according to described second buffer memory 230 data specifically comprises: set up data cube computation between first server in described client 100 and described N number of server when the fixed value n in the last historical data in described second buffer memory 230 data equals N, and be 1 by fixed value n assignment; And the fixed value n1 in the last historical data in described second buffer memory 230 data sets up in described client 100 and described N number of server between (n+1)th server data cube computation when being not equal to N, and the value of fixed value n is added 1.
When there is not the token and cryptographic Hash corresponding relation that indicate client 100 identity in the first buffer memory 220, from the second buffer memory 230, obtain historical data, and from historical data, take out the last invoked cryptographic Hash.
Such as when there being 9 station server in server cluster 300, when invoked cryptographic Hash the last in discovery second buffer memory 230 is 9, then set up first server in client 100 and server, or be numbered the data cube computation of server of 1, and cryptographic Hash is revised as 1.When invoked cryptographic Hash the last in discovery second buffer memory 230 is 7, when being not equal to 9, then set up the 7th server in client 100 and server, or be numbered the data cube computation of server of 8, and cryptographic Hash is revised as 8.When invoked cryptographic Hash the last in discovery second buffer memory 230 be 1 be not equal to 9 time, then set up the 2nd server in client 100 and server, or be numbered the data cube computation of server of 2, and cryptographic Hash is revised as 2.
Link block 213 also for after setting up the data cube computation of described client 100 and corresponding server according to described second buffer memory 230 data by the corresponding relation between the customer parameter of described client 100 and described fixed value n stored in the first buffer memory 220 data.
Among client 100 and corresponding server connect, link block 213 is by the token of this client 100 and just completed the cryptographic Hash of data cube computation and server and their corresponding relation stored in the first buffer memory 220 data of the first buffer memory 220, when sending request of data to make the client 100 of same subscriber parameter next time, from the first buffer memory 220, directly inquire about corresponding cryptographic Hash and server location and numbering, thus set up the data cube computation of this client 100 and corresponding server.
By in the 4th embodiment of inventing, directly step S106 is entered after step S102 in the third embodiment, link block 213 directly finds corresponding server to set up the data cube computation of client 100 and corresponding server according to the cryptographic Hash called the last in historical data from the second buffer memory 230, and the corresponding relation of client 100 customer parameter and cryptographic Hash and server is stored in the second buffer memory 230, and do not need first to carry out inquiring about and judging from the first buffer memory 220.
The data request processing installation method that the present invention proposes, the network data request sent by receiving client 100 obtains the customer parameter of client 100, the customer parameter of client 100 is compared and inquires about in the first buffer memory 220 first is data cached, described first data cached in store the corresponding relation of the customer parameter of described client 100 and fixed value n time, set up the data cube computation between described client 100 and described fixed value n corresponding server, ensure that fixed server in client 100 energy access services device cluster 300, the Business Processing of user can be distributed by cluster on same station server.
It should be noted that, in this article, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or device and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or device.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the device comprising this key element and also there is other identical element.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment, and when not conflicting, the feature in the embodiment of the present invention and embodiment can combine enforcement mutually.
By the description of above embodiment, those skilled in the art can be well understood to the mode that above-described embodiment method can add required general hardware platform by software and realize, hardware can certainly be passed through, but in a lot of situation, the former is better embodiment.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium (as ROM/RAM, magnetic disc, CD), comprising some instructions in order to make a station terminal equipment (can be mobile phone, computer, server, air conditioner, or the network equipment etc.) perform method described in each embodiment of the present invention.
These are only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. a network data request processing unit, is characterized in that, described network data request processing unit comprises:
Receiver module, for receiving the network data request that client sends;
Acquisition module, for obtaining the customer parameter of the first data cached and described client; And
Link block, for described first data cached in store the corresponding relation of the customer parameter of described client and fixed value n time set up data cube computation between described client and described fixed value n corresponding server.
2. network data request processing method according to claim 1, it is characterized in that, described network data request processing unit also comprises study module, for historical network data request is converted to fixed value n, set up the corresponding relation between described fixed value n and N number of server, and by data cached stored in second for the corresponding relation between described fixed value n and N number of server.
3. network data request processing method according to claim 1 and 2, it is characterized in that, described acquisition module also for described first data cached in do not store the corresponding relation of the customer parameter of described client and fixed value n time obtain second data cached, accordingly, described link block is also for according to the described second data cached data cube computation setting up described client and corresponding server.
4. network data request processing method according to claim 3, it is characterized in that, described fixed value n is natural number and n is less than or equal to N, and described link block is also for specifically comprising according to the described second data cached data cube computation setting up described client and corresponding server:
Described second data cached in the last historical data in fixed value n equal N time set up in described client and described N number of server between first server data cube computation, and be 1 by fixed value n assignment; And
Described second data cached in the last historical data in fixed value n1 be not equal to N time set up in described client and described N number of server between (n+1)th server data cube computation, and the value of fixed value n is added 1.
5. network data request processing method according to claim 4, it is characterized in that, described link block also for according to described second data cached set up the data cube computation of described client and corresponding server after by data cached stored in first for the corresponding relation between the customer parameter of described client and described fixed value n.
6. a network data request processing method, is characterized in that, described method comprises step:
Receive the network data request that client sends;
Obtain the customer parameter of the first data cached and described client; And
Described first data cached in store the corresponding relation of the customer parameter of described client and fixed value n time set up data cube computation between described client and described fixed value n corresponding server.
7. network data request processing method according to claim 6, is characterized in that, described method also comprises:
Historical network data request is converted to fixed value n;
Set up the corresponding relation between described fixed value n and N number of server, and by data cached stored in second for the corresponding relation between described fixed value n and N number of server.
8. the network data request processing method according to claim 6 or 7, is characterized in that, described method also comprises:
Described first data cached in do not store the corresponding relation of the customer parameter of described client and fixed value n time obtain second data cached;
According to the described second data cached data cube computation setting up described client and corresponding server.
9. network data request processing method according to claim 8, is characterized in that, described fixed value n is natural number and n is less than or equal to N, describedly specifically comprises according to the described second data cached data cube computation setting up described client and corresponding server:
Described second data cached in the last historical data in fixed value n equal N time set up in described client and described N number of server between first server data cube computation, and be 1 by fixed value n assignment; And
Described second data cached in the last historical data in fixed value n1 be not equal to N time set up in described client and described N number of server between (n+1)th server data cube computation, and the value of fixed value n is added 1.
10. network data request processing method according to claim 9, it is characterized in that, described according to described second data cached set up the data cube computation of described client and corresponding server after also comprise step: by data cached stored in first for the corresponding relation between the customer parameter of described client and described fixed value n.
CN201510623856.9A 2015-09-28 2015-09-28 Network data request processing device and method Pending CN105357253A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510623856.9A CN105357253A (en) 2015-09-28 2015-09-28 Network data request processing device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510623856.9A CN105357253A (en) 2015-09-28 2015-09-28 Network data request processing device and method

Publications (1)

Publication Number Publication Date
CN105357253A true CN105357253A (en) 2016-02-24

Family

ID=55333112

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510623856.9A Pending CN105357253A (en) 2015-09-28 2015-09-28 Network data request processing device and method

Country Status (1)

Country Link
CN (1) CN105357253A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107493308A (en) * 2016-06-12 2017-12-19 阿里巴巴集团控股有限公司 A kind of method and apparatus and distributed apparatus group system for sending message
CN112448968A (en) * 2019-08-28 2021-03-05 华为技术有限公司 Method for processing network request, related device and storage system
CN112911010A (en) * 2021-02-05 2021-06-04 上海锐伟电子科技有限公司 Management method and system suitable for connection of multiple equipment ends
CN114827233A (en) * 2022-04-27 2022-07-29 平安普惠企业管理有限公司 Interactive connection method and device based on double-living cluster, computer equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100180208A1 (en) * 2009-01-15 2010-07-15 Kasten Christopher J Server side data cache system
CN102790784A (en) * 2011-05-18 2012-11-21 阿里巴巴集团控股有限公司 Distributed cache method and system and cache analyzing method and analyzing system
CN102882939A (en) * 2012-09-10 2013-01-16 北京蓝汛通信技术有限责任公司 Load balancing method, load balancing equipment and extensive domain acceleration access system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100180208A1 (en) * 2009-01-15 2010-07-15 Kasten Christopher J Server side data cache system
CN102790784A (en) * 2011-05-18 2012-11-21 阿里巴巴集团控股有限公司 Distributed cache method and system and cache analyzing method and analyzing system
CN102882939A (en) * 2012-09-10 2013-01-16 北京蓝汛通信技术有限责任公司 Load balancing method, load balancing equipment and extensive domain acceleration access system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107493308A (en) * 2016-06-12 2017-12-19 阿里巴巴集团控股有限公司 A kind of method and apparatus and distributed apparatus group system for sending message
CN112448968A (en) * 2019-08-28 2021-03-05 华为技术有限公司 Method for processing network request, related device and storage system
CN112448968B (en) * 2019-08-28 2022-08-09 华为云计算技术有限公司 Method for processing network request, related device and storage system
CN112911010A (en) * 2021-02-05 2021-06-04 上海锐伟电子科技有限公司 Management method and system suitable for connection of multiple equipment ends
CN114827233A (en) * 2022-04-27 2022-07-29 平安普惠企业管理有限公司 Interactive connection method and device based on double-living cluster, computer equipment and medium
CN114827233B (en) * 2022-04-27 2023-11-24 光禹莱特数字科技(上海)有限公司 Interactive connection method and device based on dual-activity cluster, computer equipment and medium

Similar Documents

Publication Publication Date Title
CN107948324B (en) Request Transmission system, method, apparatus and storage medium
CN103347089A (en) Method and device for separating and accelerating dynamic resources and static resources of website
CN103246667A (en) Method and device for cross-domain transfer of data
CN103731487A (en) Download method, device, system and router for resource file
CN105357253A (en) Network data request processing device and method
CN102413151A (en) Network resource sharing method and system
CN103973835A (en) Domain name system server selection method and device
CN104601712A (en) Resource push method and system
CN113590576A (en) Database parameter adjusting method and device, storage medium and electronic equipment
CN104978358A (en) Method for displaying web page fragment on desktop and system for capturing web page fragment to desktop for displaying
CN102122281A (en) Method, device and system for generating page form
CN103618787A (en) System and method for displaying webpage
CN101808051A (en) Application integration gateway and control method thereof
CN107888700B (en) Shared cloud rendering system and processing method thereof
CN104283920A (en) Use method, server, terminal and system for Webapp router
CN101895550B (en) Cache accelerating method for compatibility of dynamic and static contents of internet website
CN103561068B (en) A kind of method and device improving web page browsing speed
WO2012144919A2 (en) Methods and systems for access to real-time full-duplex web communications platforms
US9515959B2 (en) Systems and methods for reduced bandwidth data transmission between network connected devices
CN102647463B (en) The generation method of Web side navigation, wireless router terminal and system
CN101753561B (en) Business cluster processing method and cluster system
CN105721398A (en) Data access method and device
CN105556905A (en) Page insertion method and device
CN109600452B (en) Server cluster, message pushing method and related server
CN104601721A (en) Multi-terminal information processing method and device

Legal Events

Date Code Title Description
C06 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20160224