CN103281355A - Fuzzy decision-based server push method - Google Patents
Fuzzy decision-based server push method Download PDFInfo
- Publication number
- CN103281355A CN103281355A CN2013101566286A CN201310156628A CN103281355A CN 103281355 A CN103281355 A CN 103281355A CN 2013101566286 A CN2013101566286 A CN 2013101566286A CN 201310156628 A CN201310156628 A CN 201310156628A CN 103281355 A CN103281355 A CN 103281355A
- Authority
- CN
- China
- Prior art keywords
- server
- fuzzy
- making
- decision
- comment
- 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
Images
Abstract
The invention belongs to the technical field of networks and communication, and in particular relates to a method for utilizing server resources reasonably and effectively. A fuzzy decision-based server push method is a push method which combines long polling and polling according to a fuzzy decision. The fuzzy decision-based server push method comprises the following steps of: acquiring the information of a current login user, such as login time and user level; performing fuzzy decision calculation on the information; and applying the calculation result to a push model to obtain a suitable push scheme finally. By the method, the requirements of different users on information real-time performance can be met as possible in the situation of fully utilizing the server resources.
Description
Technical field
The invention belongs to network and communications technical field, be specifically related to rationally and efficiently utilize the method for server resource.
Background technology
The network information service miscellaneous has appearred in the continuous development along with the Internet on the network, such as large-scale social network sites, and stock information website, live chat net.These large-scale network platforms all be unable to do without the issue of real-time network information.The server technology of the real-time release network information on one's own initiative just is called the server push feed technique.Main server push technology is divided into three kinds at present, and they are respectively: polling technique, long polling technique and stream technology.
Polling technique is the technology that client periodically is connected with server by the HTTP request.Server returns to client to real-time fresh information when each the connection, just disconnects with client being connected in return information.Polling technique realizes simple, but the quality of real-time is directly related with the blanking time of each poll.If blanking time is than the short connection waste server resource that just has a lot of return informations useless of information updating time.If will make new information can not in time be distributed to user than information updating time length blanking time.The best situation of poll is that poll-interval just in time equals the information updating time.Polling technique relatively is fit to the less demanding network platform of real-time such as social network sites.
Long polling technique is a kind of improvement of polling technique.Its operation principle is: client is each to keep this to be connected with the server back server that connects, and up to detecting new information updating, returns fresh information then and disconnects and connecting, and is connected with server foundation is next when client is received fresh information.Long polling technique is compared real-time and has been improved much with polling technique, but because client will keep length to be connected with server, so can take more server resource.Long polling technique is used in some web chatnet standing-meetings.
The stream technology is by in a hiding Iframe of page setup territory, and the src of this Iframe is set to a long connection requests page then, so just makes client and server keep long and is connected, and has guaranteed real-time fully.Since client need not be often and server connect, so have influence on the real-time that information is issued with regard to not producing the time of delay of connection.Therefore the stream technology has the real-time higher than long polling technique.But the same specification requirement client and server that flows with long polling technique keeps long connection, can take a large amount of server resources like this.The stream technology is applicable to and requires very high website such as the stock information website to real-time.
More than three kinds of push technologies all be applicable to different utilization scenes respectively, if but the information updating frequency can change bigger because of different situations (such as the different time periods), and when different user also had larger difference to the requirement of real-time, single fixing propelling movement scheme can not be finished propelling movement work well.This just needs the method for pushing that energy can dynamically be adjusted according to the different situations different user.
Summary of the invention
The objective of the invention is to overcome the deficiencies in the prior art, provide a kind of and can make the more efficient and more reasonable server resource that utilizes of supplying system according to the method that different user server under varying environment is dynamically adjusted the propelling movement scheme.
In order to achieve the above object, the method and technology scheme that provides of the present invention is:
A kind of server push delivery method based on fuzzy decision is characterized in that, comprises the following steps:
(1) sets up the server push system based on AJAX;
Set up the XmlHttpRequest object by the AJAX technology and send asynchronous request to server, server is not return messages immediately after connecting with server, but waits for, in case server just returns after finding that fresh information is arranged;
It is not to rebulid new connection immediately but a stand-by period t is arranged that client receives behind the return information of server yet;
(2) described stand-by period t calculates according to fuzzy decision model in conjunction with actual user's situation (influencing factor) and determines this t value, is specially:
The 1st step: provide FUZZY MAPPING
Wherein
It is related factors
The comment fuzzy vector, be right
An evaluation,
Refer to
Has comment
Degree of correlation, comment just
Shared weight in all comments,
The 2nd step: obtain the overall merit transformation matrix
Draw the fuzzy relation matrix M to R by E by mapping, be called the overall merit transformation matrix,
, be the integrating representation of each comment correlation of all factors of certain class things;
The 3rd step: multifactorial evaluation
By the multifactorial evaluation transformation matrix
With set of factors
On fuzzy
Be converted to the fuzzy set on the comment collection R, i.e. integrated decision-making D,
The 4th step: integrated decision-making normalization
The integrated decision-making that multifactorial evaluation is obtained
Normalization obtains
, just make integrated decision-making
Satisfy
, wherein
The 5th step: ask the integrated decision-making value
The integrated decision-making value be certain class things final priority level wherein,
, represent the comment collection
A weight allocation vector, its transposed matrix is
, will
With
Be final integrated decision-making value according to the resulting value of common matrix multiplication
At first calculate the integrated decision-making value of under worst case (comment of each influencing factor is for the poorest)
, calculate the integrated decision-making value under best-case again
The scope of determining the integrated decision-making value exists
In, and obtain
Orientation in this codomain;
Above technical scheme will long poll and poll thought combine, and use fuzzy decision model regulation and control in this " combined type poll ".Compared with prior art, can dynamically adjust to make in the propelling movement according to different user server under varying environment and reach the more efficient and more reasonable effect of utilizing server resource.
The present invention is based on the server push delivery method of fuzzy decision, it is a kind of method for pushing that will long poll combines with poll according to fuzzy decision.Server push delivery method based on fuzzy decision is by gathering the current user's of logining information, such as the time of logining, user gradation etc., again these information via fuzzy decisions are calculated, and result of calculation applied to push in the model obtain a suitable propelling movement scheme at last.The present invention can satisfy different user to the real-time requirement of information taking full advantage of as far as possible under the situation of server resource.
Description of drawings
Fig. 1 is the server push delivery method schematic diagram based on fuzzy decision.
Fig. 2 is user's the whole flow chart of logining.
Embodiment
One, be the existing prior art that technical solution of the present invention is implemented support below.The realization of these prior aries is not the contribution part of technical solution of the present invention, all should regard as the technology that those skilled in the art itself should grasp and know; The present invention does not do open in detail, can not regard as technical solution of the present invention and disclose insufficient.
In recent years, along with AJAX(Asynchronous JavaScript and XML) development of technology, people pay close attention to the server push feed technique based on pure http protocol again, thisly long connect, need not be " Comet " at the server push feed technique (Server Push) that browser is installed plug-in unit based on HTTP.The marrow of Comet after the intact data that will send of server process, is not to disconnect connection immediately just, but keeps existing HTTP to connect constantly, and server just can send to client with data updated by the connection of this maintenance, realizes real time communication.
From present situation, the main implementation of Comet has poll, long poll, based on the mode of Iframe stream.Described polling mode, use the AJAX technology to send call request to server in this manner, return the back and wait for one period regular time, and then request, like this, data on the server will constantly be arrived client by " request ", thereby realize that the server data immediate updating is to the purpose of client.Described long polling mode, similar with polling mode, long polling mode will ask to keep the longer time, up to server new data or overtime be arranged, and server sends to client with data, and finishes this request, thus beginning request next time.Described stream based on Iframe (streaming) mode, this mode is by embedding an Iframe Yin KURA territory in the page, src attribute with this Yin KURA territory is made as a long connection requests page then, server end just can be by this Hidden field constantly to client output data, after client receives data, by JavaScript and AJAX technology data are shown on the page, thereby realize that the server data instant playback is to the purpose of client.
Two, the principle of technical solution of the present invention: in the long poll based on AJAX, implant
The Fuzzy Synthetic Decision algorithmSupplying system calculates best propelling movement scheme according to the external information (influencing factor) that collects.
Fuzzy Synthetic Decision algorithm (fuzzy decision model)Be designed to:
(l) set of factors E: influence the set of all factors of certain class things.Suppose that certain class things is determined by n factor, then the set of factors of such things
(2) comment collection R: represent the set of comment of all factors of certain class things.Suppose that the comment that may occur is
Individual, the comment collection of such things then
(3) factor weight allocation vector
: it is the unified balance of all factors to things:
It is set of factors
On a fuzzy set, satisfy following formula:
(4) comment weight allocation vector
: it is the unified balance of all evaluations to factor.
, be set of factors
On a fuzzy set, satisfy following formula:
(5) multifactorial evaluation transform matrix M: the comment of all factors of certain class things is integrated formed matrix in certain sequence.
, the n line data of matrix represents the comment of n factor.
(6) integrated decision-making D: it is the overall assessment to certain class things, estimates in conjunction with the combination of all factor E, and be the foundation of making last decision-making.D=W
M, its result is the matrix of single file n row, wherein
For fuzzy operator M (+,
), this fuzzy operator has not only been considered the influence of all factors, and has kept monofactorial evaluation information, considers the influence of each factor and the evaluation result of each factor all sidedly.In the operator+represent common addition,
Represent common multiplication.Namely
(7) integrated decision-making value T: it is the final decision value of certain class things.
Three, according to above-mentioned principle, below in conjunction with accompanying drawing technical solution of the present invention is specified.
As shown in Figure 1, the server push delivery method based on fuzzy decision provided by the invention comprises the following steps:
(1) sets up the server push system based on AJAX.Set up the XmlHttpRequest object by the AJAX technology and send asynchronous request to server, server is not return messages immediately after connecting with server, but waits for, in case server just returns after finding that fresh information is arranged.It is not to rebulid new connection immediately but a stand-by period t is arranged as shown in Figure 1 that client receives behind the return information of server yet.This stand-by period t calculates according to fuzzy decision model in conjunction with actual user's situation (influencing factor) to determine.
(2) basis
Fuzzy decision modelCalculate the t value.
The 1st step: provide FUZZY MAPPING
Wherein
It is related factors
The comment fuzzy vector, be right
An evaluation,
Refer to
Has comment
Degree of correlation, comment just
Shared weight in all comments,
The 2nd step: obtain the overall merit transformation matrix
Draw the fuzzy relation matrix M to R by E by mapping, be called the overall merit transformation matrix,
, be the integrating representation of each comment correlation of all factors of certain class things.
The 3rd step: multifactorial evaluation
By the multifactorial evaluation transformation matrix
With set of factors
On fuzzy
Be converted to the fuzzy set on the comment collection R, i.e. integrated decision-making D.
The 4th step: integrated decision-making normalization
The integrated decision-making that multifactorial evaluation is obtained
Normalization obtains
, just make integrated decision-making
Satisfy
, wherein
The 5th step: ask the integrated decision-making value
The integrated decision-making value be certain class things final priority level wherein,
, represent the comment collection
A weight allocation vector, its transposed matrix is
, will
With
Be final integrated decision-making value according to the resulting value of common matrix multiplication
At first calculate the integrated decision-making value of under worst case (comment of each influencing factor is for the poorest)
, calculate the integrated decision-making value under best-case again
The scope of determining the integrated decision-making value exists
In, and obtain
Orientation in this codomain.Then according to the given stand-by period
Span
Obtain
User's the whole flow chart of logining is illustrated in fig. 2 shown below.
Claims (1)
1. the server push delivery method based on fuzzy decision is characterized in that, comprises the following steps:
(1) sets up the server push system based on AJAX;
Set up the XmlHttpRequest object by the AJAX technology and send asynchronous request to server, server is not return messages immediately after connecting with server, but waits for, in case server just returns after finding that fresh information is arranged;
It is not to rebulid new connection immediately but a stand-by period t is arranged that client receives behind the return information of server yet;
(2) described stand-by period t calculates according to fuzzy decision model in conjunction with actual user's situation (influencing factor) and determines this t value, is specially:
The 1st step: provide FUZZY MAPPING
Wherein
It is related factors
The comment fuzzy vector, be right
An evaluation,
Refer to
Has comment
Degree of correlation, comment just
Shared weight in all comments,
The 2nd step: obtain the overall merit transformation matrix
Draw the fuzzy relation matrix M to R by E by mapping, be called the overall merit transformation matrix,
, be the integrating representation of each comment correlation of all factors of certain class things;
The 3rd step: multifactorial evaluation
By the multifactorial evaluation transformation matrix
With set of factors
On fuzzy
Be converted to the fuzzy set on the comment collection R, i.e. integrated decision-making D,
The 4th step: integrated decision-making normalization
The integrated decision-making that multifactorial evaluation is obtained
Normalization obtains
, just make integrated decision-making
Satisfy
, wherein
The 5th step: ask the integrated decision-making value
The integrated decision-making value be certain class things final priority level wherein,
, represent the comment collection
A weight allocation vector, its transposed matrix is
, will
With
Be final integrated decision-making value according to the resulting value of common matrix multiplication
At first calculate the integrated decision-making value of under worst case (comment of each influencing factor is for the poorest)
, calculate the integrated decision-making value under best-case again
The scope of determining the integrated decision-making value exists
In, and obtain
Orientation in this codomain;
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2013101566286A CN103281355A (en) | 2013-05-02 | 2013-05-02 | Fuzzy decision-based server push method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2013101566286A CN103281355A (en) | 2013-05-02 | 2013-05-02 | Fuzzy decision-based server push method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103281355A true CN103281355A (en) | 2013-09-04 |
Family
ID=49063800
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2013101566286A Pending CN103281355A (en) | 2013-05-02 | 2013-05-02 | Fuzzy decision-based server push method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103281355A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105159971A (en) * | 2015-08-26 | 2015-12-16 | 成都布林特信息技术有限公司 | Cloud platform data retrieval method |
CN105515936A (en) * | 2014-09-23 | 2016-04-20 | 中国电信股份有限公司 | Method, server and system for message communication |
CN103780603B (en) * | 2013-12-31 | 2016-10-19 | 电子科技大学 | Lightweight method for pushing in application |
CN106126328A (en) * | 2016-06-24 | 2016-11-16 | 同济大学 | A kind of traffic metadata management method based on event classification and system |
CN110351331A (en) * | 2019-05-29 | 2019-10-18 | 深圳市富途网络科技有限公司 | A kind of data acquisition, sending method and system |
CN114401315A (en) * | 2021-12-31 | 2022-04-26 | 广东国腾量子科技有限公司 | Message push service system and method based on dynamic decision model |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6151708A (en) * | 1997-12-19 | 2000-11-21 | Microsoft Corporation | Determining program update availability via set intersection over a sub-optical pathway |
CN101883086A (en) * | 2010-03-15 | 2010-11-10 | 浪潮集团山东通用软件有限公司 | Method for realizing Comet function under ASP.NET environment |
CN102088398A (en) * | 2009-12-08 | 2011-06-08 | 华为技术有限公司 | World wide web (WEB) concurrent event processing method and device |
CN102480517A (en) * | 2010-11-30 | 2012-05-30 | 北京千橡网景科技发展有限公司 | Data push method, mobile terminal and server |
-
2013
- 2013-05-02 CN CN2013101566286A patent/CN103281355A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6151708A (en) * | 1997-12-19 | 2000-11-21 | Microsoft Corporation | Determining program update availability via set intersection over a sub-optical pathway |
CN102088398A (en) * | 2009-12-08 | 2011-06-08 | 华为技术有限公司 | World wide web (WEB) concurrent event processing method and device |
CN101883086A (en) * | 2010-03-15 | 2010-11-10 | 浪潮集团山东通用软件有限公司 | Method for realizing Comet function under ASP.NET environment |
CN102480517A (en) * | 2010-11-30 | 2012-05-30 | 北京千橡网景科技发展有限公司 | Data push method, mobile terminal and server |
Non-Patent Citations (1)
Title |
---|
段海彦: "基于动态调度机制的服务器推送技术研究", 《中国优秀硕士学位论文全文数据库》, 31 May 2012 (2012-05-31) * |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103780603B (en) * | 2013-12-31 | 2016-10-19 | 电子科技大学 | Lightweight method for pushing in application |
CN105515936A (en) * | 2014-09-23 | 2016-04-20 | 中国电信股份有限公司 | Method, server and system for message communication |
CN105159971A (en) * | 2015-08-26 | 2015-12-16 | 成都布林特信息技术有限公司 | Cloud platform data retrieval method |
CN105159971B (en) * | 2015-08-26 | 2018-12-14 | 上海天使印记信息科技有限公司 | A kind of cloud platform data retrieval method |
CN106126328A (en) * | 2016-06-24 | 2016-11-16 | 同济大学 | A kind of traffic metadata management method based on event classification and system |
CN106126328B (en) * | 2016-06-24 | 2019-08-02 | 同济大学 | A kind of traffic metadata management method and system based on event category |
CN110351331A (en) * | 2019-05-29 | 2019-10-18 | 深圳市富途网络科技有限公司 | A kind of data acquisition, sending method and system |
CN114401315A (en) * | 2021-12-31 | 2022-04-26 | 广东国腾量子科技有限公司 | Message push service system and method based on dynamic decision model |
CN114401315B (en) * | 2021-12-31 | 2023-09-12 | 广东国腾量子科技有限公司 | Message push service system and method based on dynamic decision model |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Oma et al. | An energy-efficient model for fog computing in the internet of things (IoT) | |
CN103281355A (en) | Fuzzy decision-based server push method | |
CN102594675B (en) | Traffic control system and method | |
Zhou et al. | QoE-driven power scheduling in smart grid: architecture, strategy, and methodology | |
CN105634992A (en) | CDN platform self-adaptive bandwidth control method and system | |
CN106934497B (en) | Intelligent community power consumption real-time prediction method and device based on deep learning | |
CN103095684B (en) | Obtain and pay close attention to the method for user's aggregation information, Apparatus and system | |
Li et al. | Adaptive resource allocation based on the billing granularity in edge-cloud architecture | |
CN104468838B (en) | A kind of P2P networkings and the web service selection method of publish-subscribe model | |
CN111083519A (en) | VR content distribution system and method based on cloud and edge computing | |
CN101702653B (en) | Message announcing system based on locating user behavior and method thereof | |
CN102118803A (en) | Video cross-layer scheduling method of mobile communication system on basis of QoE prediction | |
CN103944917A (en) | Video distribution optimization method applied to microblog social network | |
CN103026575B (en) | For area of computer aided control the multiple energy consumption devices in electric flux network electric flux consume method | |
CN110198339A (en) | A kind of edge calculations method for scheduling task based on QoE perception | |
CN103763206B (en) | Network scheduling method and gateway | |
CN101667961A (en) | Policy-routing system based on grid service and dynamic policy-generating method | |
CN105491329A (en) | Large-scale monitoring video stream converging method based on stream-oriented computation | |
CN109657830A (en) | A kind of meeting room reserving method and device | |
CN101917406A (en) | Data transmission method and data transmission system | |
Lohitha et al. | Integrated publish/subscribe and push-pull method for cloud based IoT framework for real time data processing | |
CN104244020A (en) | Request routing method for could environment video live service | |
CN103581329A (en) | Construction method for topological structure based on clustered peer-to-peer network streaming media direct broadcast system | |
Naresh et al. | Deep reinforcement learning based QoE-aware actor-learner architectures for video streaming in IoT environments | |
CN103326916A (en) | System and method for automatic partition of intelligent substation and optimization of VLAN |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20130904 |