CN107426304A - Method, system and the proxy server of interactive media resource - Google Patents
Method, system and the proxy server of interactive media resource Download PDFInfo
- Publication number
- CN107426304A CN107426304A CN201710546315.XA CN201710546315A CN107426304A CN 107426304 A CN107426304 A CN 107426304A CN 201710546315 A CN201710546315 A CN 201710546315A CN 107426304 A CN107426304 A CN 107426304A
- Authority
- CN
- China
- Prior art keywords
- server
- server cluster
- html file
- service request
- cluster
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling 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 Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of method, system and the proxy server of interactive media resource, this method includes:Proxy server receives the service request from user equipment;Service request is distributed to first server cluster or second server cluster by proxy server according to the type of service request, to carry out media resource interaction, wherein, first server cluster during second server cluster difference with storing html file.The server cluster of existing data storage is divided into the server cluster of two types by the present invention, html file is stored during two server cluster differences, when there is service request, determine service request being distributed to first server cluster according to the type of service request or second server cluster carries out response processing, to carry out media resource interaction, management of the whole process due to having disperseed storage content, thus the relatively existing scattered storage speed of processing speed is faster, also be not in the problem of delaying machine, to solve problem of the prior art.
Description
Technical field
The present invention relates to communication field, more particularly to a kind of method, system and the proxy server of interactive media resource.
Background technology
With internet information explosive growth, many people surf the web news information become life in it is indispensable
A part.Various news media's websites also occur like the mushrooms after rain.The function of most news media's publishing center, is pipe
The mode that reason person issues all kinds of media articles, user browses in front-end access.News media's data includes article, photograph album, picture library
Etc. type.
When the concurrency of system is big and systematic function does not catch up with, user may feel that obvious card during access
, system be also easy to because pressure-bearing is too high and occur machine delay machine the problem of.
The method of existing optimization above mentioned problem is typically after concurrency rise, and code is optimized, or increases
Add number of servers.But as the code optimization degree of the continuous change General System of system version is of a relatively high, continue to optimize
Produce little effect, and increase number of servers, it is clear that corporate spending can be increased, be apparently not a good side in general enterprise
Method.
The content of the invention
It is a primary object of the present invention to propose a kind of method, system and the proxy server of interactive media resource, it is intended to
Solves the following problem of prior art:When the concurrency of news media's publishing center system is big and systematic function does not catch up with, use
Family may feel that obvious interim card during access, and system is also easy to occur machine because pressure-bearing is too high and delay the asking of machine
Topic.
To achieve the above object, the method for a kind of interactive media resource provided by the invention, including:Proxy server receives
Service request from user equipment;The proxy server distributes the service request according to the type of the service request
To first server cluster or second server cluster, to carry out media resource interaction, wherein, the first server cluster
With storing html file during second server cluster difference.
Optionally, the first server cluster is only to be stored with the server cluster of html file, the second service
The server cluster of other type files of the device cluster for storage in addition to the html file.
Optionally, methods described also includes:The proxy server, which receives manager device, to be believed the editor of media resource
Breath;According to the type of the media resource, the media resource is stored in the first server cluster or second clothes
Business device cluster.
Optionally, according to the media resource type by the media resource be stored in the first server cluster or
The second server cluster, including:Whether the type for detecting the media resource is html file;It is the HTML in type
In the case of file, the media resource is stored in the first server cluster;It is not the html file in type
In the case of, the media resource is stored in the second server cluster.
Optionally, the media resource is stored in the first server cluster or the second server cluster,
Including:For the media resource, address information is set;The media resource is stored to the first server cluster or described
Server in second server cluster, and preserve the corresponding relation of storage location and the address information.
Optionally, the service request is distributed to the first clothes by the proxy server according to the type of the service request
Business device cluster or second server cluster, including:Detect whether the service request is that the first server cluster is corresponding
Html file request;In the case where the service request is the html file request, the service request is distributed to
Server corresponding to the request of html file described in the first server cluster;It is not the HTML texts in the service request
In the case that part is asked, the service request is distributed to service corresponding to service request described in the second server cluster
Device.
Optionally, the service request is distributed to corresponding to the request of html file described in the first server cluster
Server, including:Obtain the address information of html file described in the html file request;Searched according to the address information
The storage location of the html file;Html file request is distributed to server corresponding to the storage location, so that
The server returns to the html file to user equipment.
In addition, to achieve the above object, the present invention also proposes a kind of storage medium, is stored with computer program, the meter
The step of calculation machine program realizes the above method when being executed by processor.
In addition, to achieve the above object, the present invention also proposes a kind of proxy server, including at least memory, processor,
Computer program is stored with the memory, the processor is realized in the computer program on performing the memory
The step of stating method.
In addition, to achieve the above object, the present invention also proposes a kind of system of interactive media resource, including:User equipment,
Manager device, the server proxy cluster being made up of above-mentioned proxy server, first server cluster and second server
Cluster, wherein, the first server cluster during second server cluster difference with storing html file.
The server cluster of existing data storage is divided into the server cluster of two types, two server sets by the present invention
Group stores html file when different, when there is service request, is determined service request being distributed to the according to the type of service request
One server cluster or second server cluster carry out response processing, and to carry out media resource interaction, whole process is due to dividing
The management of storage content has been dissipated, thus the relatively existing scattered storage speed of processing speed is faster, is also not in asking for the machine of delaying
Topic, solves the following problem of prior art:When the concurrency of news media's publishing center system is big and systematic function does not catch up with
When, user may feel that obvious interim card during access, and system is also easy to occur machine because pressure-bearing is too high and delay machine
The problem of.
Brief description of the drawings
Fig. 1 is each optionally a kind of hardware architecture diagram of mobile terminal of embodiment of the realization present invention;
Fig. 2 is the communications network system Organization Chart of mobile terminal as shown in Figure 1;
Fig. 3 is the flow chart of the method for first embodiment of the invention interactive media resource;
Fig. 4 is the flow chart of the method for second embodiment of the invention interactive media resource;
Fig. 5 is the configuration diagram of the system of fourth embodiment of the invention interactive media resource.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only
Be advantageous to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can mix
Ground uses.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat board
Computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
Media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. move
Dynamic terminal, and the fixed terminal such as digital TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special
Outside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware architecture diagram for a kind of mobile terminal of each embodiment of the realization present invention, the shifting
Dynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit
103rd, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface unit
108th, the part such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1
Mobile terminal structure does not form the restriction to mobile terminal, and mobile terminal can be included than illustrating more or less parts,
Either combine some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station
Downlink information receive after, handled to processor 110;In addition, up data are sent to base station.Generally, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrate
Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication
Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, WCDMA), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102
Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be according to need
To be omitted in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is receiving or
It is sound that the voice data stored in memory 109, which is converted into audio signal and exported,.Moreover, audio output unit 103
The audio output related to the specific function that mobile terminal 100 performs can also be provided (for example, call signal receives sound, disappeared
Breath receives sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) are carried out
Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after the processing of graphics processor 1041 can be deposited
Storage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can
To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model.
Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound
Caused noise or interference during frequency signal.
Mobile terminal 100 also includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 100 is moved in one's ear
Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal
The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with
And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it
(for example user uses any suitable objects or annex such as finger, stylus on contact panel 1071 or in contact panel 1071
Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
Contact coordinate is converted into, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, can
To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc.
One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel
1061 be the part independent as two to realize the input of mobile terminal and output function, but in certain embodiments, can
Input and the output function of mobile terminal are realized so that contact panel 1071 and display panel 1061 is integrated, is not done herein specifically
Limit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 100.For example,
External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing
Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with
For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area
And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function
Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as
Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection
Individual part, by running or performing the software program and/or module that are stored in memory 109, and call and be stored in storage
Data in device 109, the various functions and processing data of mobile terminal are performed, so as to carry out integral monitoring to mobile terminal.Place
Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated
Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main
Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) to all parts power supply, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put
The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system being based on below to the mobile terminal of the present invention enters
Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system
Unite as the LTE system of universal mobile communications technology, the UE that the LTE system includes communicating connection successively (User Equipment, is used
Family equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS lands
Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation
204。
Specifically, UE201 can be above-mentioned terminal 100, and here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,
Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and
Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and
The control node of signaling between EPC203, there is provided carrying and connection management.HSS2032 is all to manage for providing some registers
Such as the function of attaching position register (not shown) etc, and preserve some and used about service features, data rate etc.
The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IP
Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources
Point, it selects and provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia
System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And following new network system etc., do not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the inventive method is proposed.
First embodiment of the invention provides a kind of method of interactive media resource, and the flow of this method is as shown in figure 3, bag
Include step S302 to S304:
S302, proxy server receive the service request from user equipment.
Service request is distributed to first server cluster or by S304, proxy server according to the type of service request
Two server clusters, to carry out media resource interaction, wherein, first server cluster during second server cluster difference with storing
Html file.
The proxy server of the embodiment of the present invention is any one in server proxy cluster, can be with user equipment and pipe
Reason person's equipment interacts, and can also be interacted with the first server cluster and second server cluster of the present embodiment.
The first server cluster and second server cluster of the present embodiment are that original server cluster is divided into two
Individual server cluster, each server cluster each preserve corresponding to content.
Due to the function of the most news media's publishing center of prior art, be keeper issue all kinds of media articles,
The mode that user browses in front-end access, therefore, user are business most in numerous business in the mode that front end model essay browses
Form, therefore be also the business for most influenceing system effectiveness.And news media's data includes the types such as article, photograph album, picture library, figure
Storehouse and photograph album take larger memory space, although article takes memory space be not as big as picture library and photograph album, its content compared with
It is more, system is also occupied compared with large resource.
Based on above-mentioned consideration, the present invention is stored separately on the more article of content on a kind of cluster server, i.e. handle
Html file is stored on a server cluster, when receiving the request on html file, will receive on
The request of html file is distributed to server cluster corresponding to html file, please to this by the server in the server cluster
Ask and responded, to improve processing speed, realize the effect quickly accessed.
For the first server cluster and second server cluster in the embodiment of the present invention, HTML texts are stored when its is different
Part.
During S302, proxy server receives the service request from user equipment.Come in proxy server reception
From after the service request of user equipment, the type of the service request is detected, judges whether service request is html file request.
Because all html files are stored in a server cluster, therefore, in detection type, directly detect whether it is HTML texts
Part is asked.
During realization, service request is distributed to first server collection by proxy server according to the type of service request
Group or second server cluster, to carry out media resource interaction.Due in first server cluster and second server cluster
Any one server cluster can store html file, and therefore, above-mentioned S304 implementation process is by according to service request
Type service request is distributed to first server cluster or second server cluster.
In the present embodiment, illustrated so that first server cluster is the server cluster for storing html file as an example,
When service request is html file request, service request is distributed in first server cluster corresponding to html file request
Server;When service request is not html file request, service request is distributed to service request in second server cluster
Corresponding server.
Corresponded to when service request is distributed to html file request in first server cluster by the type according to service request
Server when, first obtain html file request in html file address information, further according to address information search html file
Storage location, then, html file request is distributed to server corresponding to storage location, so that server is to user equipment
Return to html file.
The server cluster of existing data storage is divided into the server cluster of two types, two clothes by the embodiment of the present invention
Html file is stored during device cluster difference of being engaged in, when there is service request, is determined according to the type of service request by service request point
It is sent to first server cluster or second server cluster carries out response processing, carries out media resource interaction, whole process
Due to having disperseed the management of storage content, thus the relatively existing scattered storage speed of processing speed is faster, is also not in delay
The problem of machine, solves the following problem of prior art:When the concurrency systematic function greatly of news media's publishing center system
When not catching up with, user may feel that obvious interim card during access, and system is also easy to machine occur because pressure-bearing is too high
Device delay machine the problem of.
Second embodiment of the invention provides a kind of method of interactive media resource, and the flow of this method is as shown in figure 4, bag
Include step S402 to S408:
S402, proxy server receive editor information of the manager device to media resource.
The proxy server of the embodiment of the present invention is any one in server proxy cluster, with user equipment and management
Member's equipment interaction, is interacted with the first server cluster and second server cluster of the present embodiment.
S404, according to the type of media resource, media resource is stored in first server cluster or second server collection
Group.
The first server cluster and second server cluster of the present embodiment are that original server cluster is divided into two
Individual server cluster, each server cluster each preserve corresponding to content.
Because the function of the most news media's publishing center of prior art is that keeper issues all kinds of media articles, use
The mode that family browses in front-end access, therefore, user are business shapes most in numerous business in the mode that front-end access browses
Formula, and most influence the business of system effectiveness.And news media's data includes type, picture library and the phases such as article, photograph album, picture library
Volume takes larger memory space, although article takes, memory space is not so good as picture library and photograph album is big, and its content is more, also accounts for
With system compared with large resource.
Based on above-mentioned consideration, the present invention is stored separately on the more article of content on a kind of cluster server, i.e. handle
Html file is stored on a server cluster, when there is the request for html file, is just all distributed to all requests
Server cluster corresponding to html file, the server allowed in the server cluster respond to the request.
Realize during said process, it is necessary to which whether the type for detecting media resource is html file;It is html file in type
In the case of, media resource is stored in first server cluster;In the case where type is not html file, media are provided
Source is stored in second server cluster.
It is media resource specifically, when media resource is stored in first server cluster or second server cluster
Address information is set, then media resource is stored to the server in first server cluster or second server cluster, and is protected
Deposit the corresponding relation of storage location and address information.
S406, proxy server receive the service request from user equipment.
In this process, proxy server receives the service request from user equipment.Receive and come from proxy server
After the service request of user equipment, the type of the service request is detected, judges whether service request is html file request.By
It is stored in all html files in a server cluster, therefore, in detection type, directly detects whether it is html file
Request.
Service request is distributed to first server cluster or by S408, proxy server according to the type of service request
Two server clusters, to carry out media resource interaction, wherein, first server cluster is the server for being only stored with html file
Cluster, the server cluster of other type files of the second server cluster for storage in addition to html file.
During realization, service request is distributed to first server collection by proxy server according to the type of service request
Group or second server cluster, to carry out media resource interaction.Due in first server cluster and second server cluster
Any one server cluster can store html file, and therefore, said process is will to take the type according to service request
Business request is distributed to first server cluster or second server cluster.
In the present embodiment, illustrated so that first server cluster is the server cluster for storing html file as an example,
When service request is html file request, service request is distributed in first server cluster corresponding to html file request
Server;When service request is not html file request, service request is distributed to service request in second server cluster
Corresponding server.
Corresponded to when service request is distributed to html file request in first server cluster by the type according to service request
Server when, first obtain html file request in html file address information, further according to address information search html file
Storage location, then, html file request is distributed to server corresponding to storage location, so that server is to user equipment
Return to html file.
The server cluster of existing data storage is divided into the server cluster of two types, two clothes by the embodiment of the present invention
Html file is stored during device cluster difference of being engaged in, when there is service request, is determined according to the type of service request by service request point
It is sent to first server cluster or second server cluster carries out response processing, carries out media resource interaction, whole process
Due to having disperseed the management of storage content, thus the relatively existing scattered storage speed of processing speed is faster, is also not in delay
The problem of machine, solves the following problem of prior art:When the concurrency systematic function greatly of news media's publishing center system
When not catching up with, user may feel that obvious interim card during access, and system is also easy to machine occur because pressure-bearing is too high
Device delay machine the problem of.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but a lot
In the case of the former be more preferably embodiment.Based on such understanding, technical scheme is substantially in other words to existing
The part that technology contributes can be embodied in the form of software product, and the computer software product is stored in a storage
In medium (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, calculate
Machine, server, or network equipment etc.) method that performs each embodiment of the present invention.
Third embodiment of the invention additionally provides a kind of storage medium.Alternatively, in the present embodiment, above-mentioned storage medium
It can be configured to the program code that storage is used to perform following steps:
S11, proxy server receive the service request from user equipment.
Service request is distributed to first server cluster or by S12, proxy server according to the type of service request
Two server clusters, to carry out media resource interaction, wherein, first server cluster during second server cluster difference with storing
Html file.
The proxy server of the embodiment of the present invention is any one in server proxy cluster, can be with user equipment and pipe
Reason person's equipment interacts, and can also be interacted with the first server cluster and second server cluster of the present embodiment.
The first server cluster and second server cluster of the present embodiment are that original server cluster is divided into two
Individual server cluster, each server cluster each preserve corresponding to content.
After proxy server receives the service request from user equipment, the type of the service request is detected, is judged
Whether service request is html file request.Because all html files are stored in a server cluster, therefore, detecting
During type, directly detect whether it is html file request.
During realization, service request is distributed to first server collection by proxy server according to the type of service request
Group or second server cluster, to carry out media resource interaction.Due in first server cluster and second server cluster
Any one server cluster can store html file, and therefore, above-mentioned implementation process is by the type according to service request
Service request is distributed to first server cluster or second server cluster.
In the present embodiment, illustrated so that first server cluster is the server cluster for storing html file as an example,
When service request is html file request, service request is distributed in first server cluster corresponding to html file request
Server;When service request is not html file request, service request is distributed to service request in second server cluster
Corresponding server.
Corresponded to when service request is distributed to html file request in first server cluster by the type according to service request
Server when, first obtain html file request in html file address information, further according to address information search html file
Storage location, then, html file request is distributed to server corresponding to storage location, so that server is to user equipment
Return to html file.
The present embodiment can also be interacted with manager device except above-mentioned proxy server and user equipment interaction,
Then storage medium can be configured to the program code that storage is used to perform following steps:
S21, proxy server receive editor information of the manager device to media resource.
The proxy server of the embodiment of the present invention is any one in server proxy cluster, can be with user equipment and pipe
Reason person's equipment interacts, and can also be interacted with the first server cluster and second server cluster of the present embodiment.
S22, according to the type of media resource, media resource is stored in first server cluster or second server collection
Group.
The first server cluster and second server cluster of the present embodiment are that original server cluster is divided into two
Individual server cluster, each server cluster each preserve corresponding to content.
Because the function of the most news media's publishing center of prior art is that keeper issues all kinds of media articles, use
The mode that family browses in front-end access, therefore, user are business shapes most in numerous business in the mode that front end model essay browses
Formula, and most influence the business of system effectiveness.And news media's data includes type, picture library and the phases such as article, photograph album, picture library
Volume takes larger memory space, although article takes, memory space is not so good as picture library and photograph album is big, and its content is more, also accounts for
With system compared with large resource.
Based on above-mentioned consideration, the present invention is stored separately on the more article of content on a kind of cluster server, i.e. handle
Html file is stored on a server cluster, when there is the request for html file, is just all distributed to all requests
Server cluster corresponding to html file, the server allowed in the server cluster respond to the request.
Realize during said process, it is necessary to which whether the type for detecting media resource is html file;It is html file in type
In the case of, media resource is stored in first server cluster;In the case where type is not html file, media are provided
Source is stored in second server cluster.
It is media resource specifically, when media resource is stored in first server cluster or second server cluster
Address information is set, then media resource is stored to the server in first server cluster or second server cluster, and is protected
Deposit the corresponding relation of storage location and address information.
Above-mentioned storage medium can also exist with form of memory, in the presence of with form of memory, then can be arranged on
In proxy server, therefore, the present embodiment can also exist in the form of a kind of proxy server, including at least memory, processing
Device, above computer program is stored with memory.
Alternatively, in the present embodiment, above-mentioned storage medium can include but is not limited to:USB flash disk, read-only storage (ROM,
Read-Only Memory), random access memory (RAM, RandomAccessMemory), mobile hard disk, magnetic disc or light
Disk etc. is various can be with the medium of store program codes.Alternatively, in the present embodiment, processor has stored according in storage medium
Program code perform above-described embodiment record method and step.Alternatively, the specific example in the present embodiment may be referred to
The example described in embodiment and optional embodiment is stated, the present embodiment will not be repeated here.Obviously, those skilled in the art
Member is it should be understood that above-mentioned each module of the invention or each step can realize that they can collect with general computing device
In on single computing device, or be distributed on the network that multiple computing devices are formed, alternatively, they can use tricks
The executable program code of device is calculated to realize, it is thus possible to be stored in storage device by computing device to perform,
And in some cases, can be to perform shown or described step different from order herein, or they are distinguished
Each integrated circuit modules are fabricated to, or the multiple modules or step in them are fabricated to single integrated circuit module and come in fact
It is existing.So, the present invention is not restricted to any specific hardware and software combination.
Fourth embodiment of the invention additionally provides a kind of system of interactive media resource, and the framework signal of the interactive system is such as
Shown in Fig. 5, including:
User equipment, manager device, server proxy cluster, dynamic state server colony and static server cluster, its
In, dynamic state server colony during static server cluster difference with storing html file.
The present embodiment uses the thinking of sound separation, generates what user can directly access when keeper edits article
Html file, without in user to access pages, data are returned to client by request server, server data retransmission request storehouse
End.Because news media's system is mainly based on the access of news media's details page, the main performance of server is consumed also at this
In.
This interactive system main feature includes:
(1) keeper (news media writer etc.) is quiet by directly generating (HTML) from the background when writing news media's information
State file;User sends service request to ask the content needed.
When realizing, keeper logs in backstage, media information of editing news, clicks on after preserving, system inputs according to keeper
Information generation static html file and be stored in static server cluster.
(2) two server clusters (small one and large one).Dynamic state server colony handles dynamic requests, and static cluster processing is quiet
State is asked.
When realizing, two kinds of server cluster (can certainly be that two-server refers to here) is set, it is a kind of
(main processing and visitor including keeper's generation static page obtain other to special disposal dynamic requests when accessing website
Another kind of loading (main loading html files, the picture js for being then responsible for static file of information (such as displaying of news media's list)
Deng static file).
(3) server proxy cluster, the equipment being related to (1) and (2) interact.By Nginx generations when user accesses website
Reason shunts request, and the page that user accesses news media's details is the static page that system has generated..
Above-mentioned proxy server and each equipment interaction are described in detail below, including:
S1, proxy server receive editor information of the manager device to media resource.
The proxy server of the embodiment of the present invention is any one in server proxy cluster, can be with user equipment and pipe
Reason person's equipment interacts, and can also be interacted with the first server cluster and second server cluster of the present embodiment.
S2, according to the type of media resource, media resource is stored in first server cluster or second server cluster.
The first server cluster and second server cluster of the present embodiment are that original server cluster is divided into two
Individual server cluster, each server cluster each preserve corresponding to content.
Due to the function of the most news media's publishing center of prior art, be keeper issue all kinds of media articles,
The mode that user browses in front-end access, therefore, user are business most in numerous business in the mode that front end model essay browses
Form, therefore be also the business for most influenceing system effectiveness.And news media's data includes the types such as article, photograph album, picture library, figure
Storehouse and photograph album take larger memory space, although article takes memory space be not as big as picture library and photograph album, its content compared with
It is more, system is also occupied compared with large resource.
Based on above-mentioned consideration, the present invention is stored separately on the more article of content on a kind of cluster server, i.e. handle
Html file is stored on a server cluster, when being related to the request of html file, is just all distributed to all requests
Server cluster corresponding to html file, the server allowed in the server cluster respond to the request.
Realize during said process, it is necessary to which whether the type for detecting media resource is html file;It is html file in type
In the case of, media resource is stored in first server cluster;In the case where type is not html file, media are provided
Source is stored in second server cluster.
Specifically, it is necessary to be first matchmaker when media resource is stored in first server cluster or second server cluster
Body resource sets address information;Media resource is stored to the service in first server cluster or second server cluster again
Device, and preserve the corresponding relation of storage location and address information.
S3, proxy server receive the service request from user equipment.
In this process, proxy server receives the service request from user equipment.Receive and come from proxy server
After the service request of user equipment, the type of the service request is detected, that is, judges whether service request is that html file please
Ask.Due to all html files individually only are stored in into a server cluster, therefore, in detection type, directly examine
Whether survey is html file request.
Service request is distributed to first server cluster or second by S4, proxy server according to the type of service request
Server cluster, to carry out media resource interaction, wherein, first server cluster is the server set for being only stored with html file
Group, the server cluster of other type files of the second server cluster for storage in addition to html file.
During realization, service request is distributed to first server collection by proxy server according to the type of service request
Group or second server cluster, to carry out media resource interaction.Due in first server cluster and second server cluster
Any one server cluster can store html file, and therefore, said process is will to take the type according to service request
Business request is distributed to first server cluster or second server cluster.
In the present embodiment, illustrated so that first server cluster is the server cluster for storing html file as an example,
When service request is html file request, service request is distributed in first server cluster corresponding to html file request
Server;When service request is not html file request, service request is distributed to service request in second server cluster
Corresponding server.
Corresponded to when service request is distributed to html file request in first server cluster by the type according to service request
Server when, first obtain html file request in html file address information, further according to address information search html file
Storage location, then, html file request is distributed to server corresponding to storage location, so that server is to user equipment
Return to html file.
The server cluster of existing data storage is divided into the server cluster of two types, two clothes by the embodiment of the present invention
Html file is stored during device cluster difference of being engaged in, when there is service request, is determined according to the type of service request by service request point
It is sent to first server cluster or second server cluster carries out response processing, carries out media resource interaction, whole process
Due to having disperseed the management of storage content, thus the relatively existing scattered storage speed of processing speed is faster, is also not in delay
The problem of machine, solves the following problem of prior art:When the concurrency systematic function greatly of news media's publishing center system
When not catching up with, user may feel that obvious interim card during access, and system is also easy to machine occur because pressure-bearing is too high
Device delay machine the problem of.
For said process when realizing, keeper is in backstage editing media information, from the background according to editor's information of keeper,
The Html files of static state are generated in static server;After user initiates request to server, Nginx is acted on behalf of according to request type,
Distribute different requests, when static requests are distributed to static server, static server returns to static file, avoids user
Operation during the Centralized requests media information page to database IO, improve system concurrency ability.
The main advantages of the present invention be:
1st, the sound separation of guest request;2nd, the static file of news media is generated when editor, customer accesses
During news media, server need to only return to a static file (request for server process static resource without requested database
Consumption to server performance is far smaller than server process dynamic requests);3rd, system concurrency performance is greatly improved, is more passed through
Ji is effective.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements not only include those key elements, and
And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Other identical element also be present in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal (can be mobile phone, computer, service
Device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific
Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art
Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot
Form, these are belonged within the protection of the present invention.
Claims (10)
- A kind of 1. method of interactive media resource, it is characterised in that including:Proxy server receives the service request from user equipment;The proxy server according to the type of the service request by the service request be distributed to first server cluster or Person's second server cluster, to carry out media resource interaction, wherein, the first server cluster and second server cluster are not Store html file simultaneously.
- 2. the method as described in claim 1, it is characterised in that the first server cluster is only to be stored with html file Server cluster, the server set of other type files of the second server cluster for storage in addition to the html file Group.
- 3. method as claimed in claim 2, it is characterised in that methods described also includes:The proxy server receives editor information of the manager device to media resource;According to the type of the media resource, the media resource is stored in the first server cluster or second clothes Business device cluster.
- 4. method as claimed in claim 3, it is characterised in that deposit the media resource according to the type of the media resource The first server cluster or the second server cluster are placed on, including:Whether the type for detecting the media resource is html file;In the case where type is the html file, the media resource is stored in the first server cluster;In the case where type is not the html file, the media resource is stored in the second server cluster.
- 5. method as claimed in claim 4, it is characterised in that the media resource is stored in the first server cluster Or in the second server cluster, including:For the media resource, address information is set;The media resource is stored to the server in the first server cluster or the second server cluster, and protected Deposit the corresponding relation of storage location and the address information.
- 6. the method as any one of claim 2 to 5, it is characterised in that the proxy server is according to the service The service request is distributed to first server cluster or second server cluster by the type of request, including:Detect whether the service request is that html file corresponding to the first server cluster is asked;In the case where the service request is the html file request, the service request is distributed to the first service Server corresponding to the request of html file described in device cluster;In the case where the service request is not the html file request, the service request is distributed to second clothes Server corresponding to service request described in business device cluster.
- 7. method as claimed in claim 6, it is characterised in that the service request is distributed to the first server cluster Described in html file request corresponding to server, including:Obtain the address information of html file described in the html file request;The storage location of the html file is searched according to the address information;Html file request is distributed to server corresponding to the storage location, so that the server is to user equipment Return to the html file.
- 8. a kind of storage medium, is stored with computer program, it is characterised in that real when the computer program is executed by processor Any one of existing claim 1 to 7 the step of method.
- 9. a kind of proxy server, including at least memory, processor, computer program is stored with the memory, it is special Sign is that the processor is realized any one of claim 1 to 7 in the computer program on performing the memory The step of method.
- A kind of 10. system of interactive media resource, it is characterised in that including:User equipment, manager device, the server proxy cluster being made up of the proxy server described in claim 9, first Server cluster and second server cluster, wherein, the first server cluster during second server cluster difference with storing Html file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710546315.XA CN107426304A (en) | 2017-07-06 | 2017-07-06 | Method, system and the proxy server of interactive media resource |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710546315.XA CN107426304A (en) | 2017-07-06 | 2017-07-06 | Method, system and the proxy server of interactive media resource |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107426304A true CN107426304A (en) | 2017-12-01 |
Family
ID=60427511
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710546315.XA Pending CN107426304A (en) | 2017-07-06 | 2017-07-06 | Method, system and the proxy server of interactive media resource |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107426304A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108718285A (en) * | 2018-06-15 | 2018-10-30 | 北京奇艺世纪科技有限公司 | Flow control methods, device and the server of cloud computing cluster |
CN109451088A (en) * | 2018-10-30 | 2019-03-08 | 新华三大数据技术有限公司 | A kind of data access method and device |
CN109960687A (en) * | 2019-03-28 | 2019-07-02 | 北京百分点信息科技有限公司 | A kind of document handling system and method |
CN110351350A (en) * | 2019-06-28 | 2019-10-18 | 北京你财富计算机科技有限公司 | Client request processing method, system and electronic equipment based on multiserver docking |
CN110874267A (en) * | 2019-11-21 | 2020-03-10 | 杭州迪普科技股份有限公司 | Polling scheduling method, device, storage medium and equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11110036A (en) * | 1997-10-08 | 1999-04-23 | Toshiba Corp | Device for plant operation monitoring support system |
WO2001057741A1 (en) * | 2000-02-02 | 2001-08-09 | Value Media Management Inc. | Method and system for presenting information through an interactive viewing unit |
US20050021779A1 (en) * | 2003-04-29 | 2005-01-27 | Ahamed Syed V. | Localized knowledge-based intelligent network |
CN102638584A (en) * | 2012-04-20 | 2012-08-15 | 青岛海信传媒网络技术有限公司 | Data distributing and caching method and data distributing and caching system |
CN104408056A (en) * | 2014-10-29 | 2015-03-11 | 中国建设银行股份有限公司 | Data processing method and device |
CN103179213B (en) * | 2013-04-03 | 2016-05-18 | 深圳市闪联信息技术有限公司 | Home media resource transmission system based on point-to-point agency mechanism |
-
2017
- 2017-07-06 CN CN201710546315.XA patent/CN107426304A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11110036A (en) * | 1997-10-08 | 1999-04-23 | Toshiba Corp | Device for plant operation monitoring support system |
WO2001057741A1 (en) * | 2000-02-02 | 2001-08-09 | Value Media Management Inc. | Method and system for presenting information through an interactive viewing unit |
US20050021779A1 (en) * | 2003-04-29 | 2005-01-27 | Ahamed Syed V. | Localized knowledge-based intelligent network |
CN102638584A (en) * | 2012-04-20 | 2012-08-15 | 青岛海信传媒网络技术有限公司 | Data distributing and caching method and data distributing and caching system |
CN103179213B (en) * | 2013-04-03 | 2016-05-18 | 深圳市闪联信息技术有限公司 | Home media resource transmission system based on point-to-point agency mechanism |
CN104408056A (en) * | 2014-10-29 | 2015-03-11 | 中国建设银行股份有限公司 | Data processing method and device |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108718285A (en) * | 2018-06-15 | 2018-10-30 | 北京奇艺世纪科技有限公司 | Flow control methods, device and the server of cloud computing cluster |
CN108718285B (en) * | 2018-06-15 | 2022-06-03 | 北京奇艺世纪科技有限公司 | Flow control method and device of cloud computing cluster and server |
CN109451088A (en) * | 2018-10-30 | 2019-03-08 | 新华三大数据技术有限公司 | A kind of data access method and device |
CN109960687A (en) * | 2019-03-28 | 2019-07-02 | 北京百分点信息科技有限公司 | A kind of document handling system and method |
CN110351350A (en) * | 2019-06-28 | 2019-10-18 | 北京你财富计算机科技有限公司 | Client request processing method, system and electronic equipment based on multiserver docking |
CN110874267A (en) * | 2019-11-21 | 2020-03-10 | 杭州迪普科技股份有限公司 | Polling scheduling method, device, storage medium and equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107426304A (en) | Method, system and the proxy server of interactive media resource | |
CN107193889A (en) | Ad blocking method, terminal and computer-readable recording medium | |
CN107038245A (en) | Page switching method, mobile terminal and storage medium | |
CN107329682A (en) | Edge exchange method and mobile terminal | |
CN107730303A (en) | A kind of advertisement sending method, equipment and computer-readable recording medium | |
CN107194732A (en) | One kind application method for pushing, mobile terminal and computer-readable recording medium | |
CN108600330A (en) | Deferred information method for pushing, equipment and computer readable storage medium | |
CN107220050A (en) | Adaptive display method, terminal and computer-readable recording medium | |
CN107257510A (en) | Video unifies player method, terminal and computer-readable recording medium | |
CN107239522A (en) | Picture storage method, equipment and computer-readable storage medium | |
CN107135086A (en) | One kind broadcast method for pushing and equipment, computer-readable recording medium | |
CN107682421A (en) | Access method, server, terminal and the computer-readable recording medium of message | |
CN107911536A (en) | A kind of across application program access method, equipment and computer-readable recording medium | |
CN107220132A (en) | A kind of monitor method, equipment and the storage medium of document creation information | |
CN108076134A (en) | Record information acquisition method, terminal, server and computer readable storage medium | |
CN107124466A (en) | One kind prevents caching penetrating method and device, computer-readable recording medium | |
CN108012029A (en) | A kind of information processing method, equipment and computer-readable recording medium | |
CN107506468A (en) | Application program searching method, terminal, server, computer-readable recording medium | |
CN109902228A (en) | Resource request, push control method, terminal, server and readable storage medium storing program for executing | |
CN109445945A (en) | Memory allocation method, mobile terminal, server and the storage medium of application program | |
CN107360211A (en) | A kind of inserting method, relevant device and the computer-readable storage medium of information flow information | |
CN107885447A (en) | A kind of target method for sorting, terminal and computer-readable recording medium | |
CN107231469A (en) | A kind of terminal applies management method, terminal and computer-readable recording medium | |
CN107391593A (en) | A kind of document handling method, mobile terminal and computer-readable recording medium | |
CN107133108A (en) | Implementation method, terminal, server and the computer-readable recording medium of distributed complex lock |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171201 |