CN103685326A - WEB concurrent data transmission method and WEB application system - Google Patents
WEB concurrent data transmission method and WEB application system Download PDFInfo
- Publication number
- CN103685326A CN103685326A CN201210315917.1A CN201210315917A CN103685326A CN 103685326 A CN103685326 A CN 103685326A CN 201210315917 A CN201210315917 A CN 201210315917A CN 103685326 A CN103685326 A CN 103685326A
- Authority
- CN
- China
- Prior art keywords
- web
- web service
- client
- request
- information
- 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 discloses a WEB concurrent data transmission method and a WEB application system comprising a server and a client side. The method comprises the following steps: the WEB client side screens and reduces repeated request information, compresses multiple pieces of data request information according to rules, and then sends the request information to the server so as to improve the performance and throughput of the server. By deleting and compressing repeated service requests, one-time response waiting becomes more efficient and safer, and the waiting time of the client side and the occupancy rate of a network channel are reduced to a great extent, so as to greatly improve and optimize the client side and network resources.
Description
Technical field
The present invention relates to a kind of long-range Web service data transmission method, key relates to Web service data transmission method for uplink, is applicable to the optimization that server performance and client in Web, cloud computing and distribution application system present effect and promotes.
Background technology
Along with the high speed development of the network information technology, the B/S framework applications of Web application system is more and more extensive, compares the C/S framework graphic user interface that client-side program need to be installed, and the advantage of Web application system is more and more obvious.
In Web application system, user end to server sends a request message and substantially adopts asynchronous remote service call to realize the transmission of Web service solicited message, Web server is according to the solicited message of client, return to the required packet of client, client is processed according to return information and is presented.
The present inventor finds, in existing Web application system, usually has repetition Web service request and is sent to server, has caused the request of server duplicate responses; The asynchronous remote service call of customer end adopted has caused the concurrent Web service request of same client to roll up in addition, and the every secondary response Web service of server request all needs to take CPU, the network bandwidth, storage resources etc., thereby caused server performance relatively to reduce.
Summary of the invention
The present invention is directed to above-mentioned the deficiencies in the prior art provides a kind of transmission method and Web application system of Web concurrent data, be intended to improve the transmission performance of Web service information, reduce the resources such as the network bandwidth, storage, thereby promote the service performance of Web application system.
Described method comprises:
1, client produces Web service request and judges whether and by HTTP, asks to send Web service information;
If be judged as "No", client directly sends to server the HTTP request that comprises current Web service request;
If be judged as "Yes", Web service request enters waiting list by service broker;
2, client judges entering the Web service request of waiting list, if comprised identical Web service information in waiting list, does not allow this Web service information to enter waiting list;
3, when described client is being initiated HTTP request, the information on services in waiting list is compressed by rule, make a plurality of Web service requests be compressed into a HTTP request;
4,, when client is not initiated HTTP request, the HTTP request in waiting list is sent to server;
5, server decomposites Web request information queue from the HTTP request of compression, and response request.
By technique scheme, found out, when Web client sends service request, can preferentially judge whether to have repeated to send identical request, if repeat to send request, can screening solicited message, that is to say that client only need send once request for same service service, server also only needs response once; In addition, many Web service solicited messages in waiting list after compression, merge and become a Http request, that is to say that each client only can send a Http request, has reduced solicited message amount.So just reduced the transmitted data amount of client and server, reduced largely the network bandwidth, server CPU and storage resources and taken, thus the service performance of lifting Web application system.
Accompanying drawing explanation
Fig. 1 is Web concurrent data transmission method Web solicited message structure chart of the present invention.
Fig. 2 is the flow chart of Web concurrent data transmission method execution mode of the present invention.
Embodiment
Accompanying drawing and concrete case study on implementation will be utilized below; further set forth the present invention; following instance only fits for illustrating that the present invention joins the method realizing; and be not used in, limit the scope of the invention; after reading the present invention; by modification, replacement or the simple modifications of the equivalent form of value, all fall within the affiliated right protection range of the present invention arbitrarily.
As shown in Figure 2, the step of Web concurrent data transmission method is as follows:
(1) client produces Web service request and judges whether and by HTTP, asks to send Web service information;
If be judged as "No", client directly sends to server the HTTP request that comprises current Web service request;
If be judged as "Yes", Web service request enters waiting list by service broker;
(2) client judges entering the Web service request of waiting list, if comprised identical Web service information in waiting list, does not allow this Web service information to enter waiting list;
(3) when described client is being initiated HTTP request, the information on services in waiting list is compressed by rule, make a plurality of Web service requests be compressed into a HTTP request;
(4), when client is not initiated HTTP request, the HTTP request in waiting list is sent to server;
(5) server decomposites Web request information queue from the HTTP request of compression, and response request.
It should be noted that, in above step (2), be to judge in waiting list whether exist according to the language message, version information and the semantic information that comprise as the web services solicited message in Fig. 2, by contrasting language message, version information and the semantic information of Web service information, just can judge in waiting list, whether there has been identical Web service request.
In addition, the judgement that repeats Web service request can also be identified by sign.Whether for example: client generating Web service request is, can in ETAG extended attribute, carry solicited message, judge module is by the judgement to ETAG carry information, identify and had identical service request in waiting list.
The present invention also provides a kind of Web application system, and this application system comprises client and server end.Wherein, client comprises: judging unit, compression module and sending module.
Described judge module, for judging that whether enter the Web service request of described waiting list identical with the Web service solicited message of described waiting list;
Described compression module, for asking HTTP of the Web service request boil down to of described waiting list lunch;
Described sending module, for sending described customer side HTTP request.
For making the art personnel can more clear understanding the technology of the present invention content, the actual application of take be below set forth technical scheme of the present invention as example.
Suppose that client is by AJAX code initiation remote procedure call, the content of current Web request service information (as shown in Figure 1: language message, version information and semantic information) and the Web service information in waiting list are compared, as repeat automatic fitration.As do not repeated, by Web service, act on behalf of and join waiting list last treats calling station, and check whether current state sends HTTP solicited status in.
If active client transmission interface is not in sending state, immediately first in waiting list waited to call group and takes out, according to specified rule, be encapsulated as AJAX request, then send AJAX request, simultaneously by client transmission interface status indicator for just sending.
If active client transmission interface state for just sending, enters each the Web service solicited message of group to be called and is compressed in a HTTP request, until becoming, the maximum of HTTP request or client transmission interface state do not send.
Client sends after AJAX request, starts to enter wait-for-response state.Receive server response or response failure information, according to specified rule, call client service code, this DTD.
Claims (8)
1. a WEB concurrent data transmission method, is characterized in that: described method is applicable to the WEB application system that comprises server and client, and described method step comprises:
(1) client produces Web service request and judges whether and by HTTP, asks to send Web service information;
(2), if be judged as "No", client directly sends to server the HTTP request that comprises current Web service request;
(3) if be judged as "Yes", Web service request enters waiting list by service broker;
(4) client judges entering the Web service request of waiting list, if comprised identical Web service information in waiting list, does not allow this Web service information to enter waiting list;
(5) when described client is being initiated HTTP request, the information on services in waiting list is compressed by rule, make a plurality of Web service requests be compressed into a HTTP request;
(6), when client is not initiated HTTP request, the HTTP request in waiting list is sent to server;
(7) server decomposites Web request information queue from the HTTP request of compression, and response request.
2. Web concurrent data transmission method as claimed in claim 1, is characterized in that: the Web service request in step (1) comprises programming language, version information and semantic information;
Described client judges whether to have had identical Web service request to enter waiting list in the following manner;
Described client is compared the programming language of described Web service request, version information and semantic information with programming language, version information and the semantic information of the service request of described client awaits queue;
If the programming language of described Web service request, version information and semantic information are identical with programming language, version information and the semantic information of Web service request in described client awaits queue, described Web service request repeats.
3. Web concurrent data transmission method as claimed in claim 1, is characterized in that: in step (4), synchronization can only allow to send a HTTP request.
4. Web concurrent data transmission method as claimed in claim 1, it is characterized in that: the text transfer protocol that described in step (4), client is sent is HTTP request message, if described HTTP request carries, do not mate IF-None-Else extended attribute, described IF-None-Else extended attribute carries programming language, version information and the semantic information of Web service request.
5. a Web application system that realizes WEB concurrent data transmission method described in claim 1, is characterized in that, draws together client and server end; Described client comprises judge module, compression module and sending module;
Described judge module, for judging that whether enter the Web service request of described waiting list identical with the Web service solicited message of described waiting list;
Described compression module, for asking HTTP of the Web service request boil down to of described waiting list lunch;
Described sending module, for sending described customer side HTTP request.
6. Web application system as claimed in claim 5, is characterized in that, language message, version information and the semantic information of described Web service request carried in the described HTTP request that described client is sent;
Described judge module: the language message, version information and the semantic information that relatively enter Web solicited message in language message, version information and the semantic information of Web service solicited message of waiting list and waiting list compare, and whether confirm has the Web solicited message identical with language message, version information and the semantic information of described Web solicited message in waiting list.
7. client as claimed in claim 5, it is characterized in that, the text transfer protocol sending is HTTP request message, if described HTTP request carries, do not mate IF-None-Else extended attribute, described IF-None-Else extended attribute carries programming language, version information and the semantic information of Web service request.
8. Web application system as claimed in claim 5, is characterized in that, described server end Web service interface and described client Web interface are applied logic DLL (dynamic link library).
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210315917.1A CN103685326A (en) | 2012-08-31 | 2012-08-31 | WEB concurrent data transmission method and WEB application system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210315917.1A CN103685326A (en) | 2012-08-31 | 2012-08-31 | WEB concurrent data transmission method and WEB application system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103685326A true CN103685326A (en) | 2014-03-26 |
Family
ID=50321639
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210315917.1A Pending CN103685326A (en) | 2012-08-31 | 2012-08-31 | WEB concurrent data transmission method and WEB application system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103685326A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107688978A (en) * | 2016-08-05 | 2018-02-13 | 北京京东尚科信息技术有限公司 | The method and device of sequence information is repeated for detecting |
CN108337301A (en) * | 2018-01-24 | 2018-07-27 | 深圳乐信软件技术有限公司 | Network request processing method, device, server and the storage medium of application program |
CN111064771A (en) * | 2019-11-14 | 2020-04-24 | 福建天晴数码有限公司 | Network request processing method and system |
CN112948108A (en) * | 2021-01-26 | 2021-06-11 | 北京字节跳动网络技术有限公司 | Request processing method and device and electronic equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101719929A (en) * | 2009-11-20 | 2010-06-02 | 山东中创软件商用中间件股份有限公司 | Method for realizing real-time data transmission under Web Service |
CN102035890A (en) * | 2010-12-08 | 2011-04-27 | 中国科学院声学研究所 | Web service concurrency control method and system based on IOT (Internet of Things)-oriented application |
CN102088398A (en) * | 2009-12-08 | 2011-06-08 | 华为技术有限公司 | World wide web (WEB) concurrent event processing method and device |
CN102387206A (en) * | 2011-10-20 | 2012-03-21 | 镇江睿泰信息科技有限公司 | Synthesis method and system of concurrent request of Web service |
-
2012
- 2012-08-31 CN CN201210315917.1A patent/CN103685326A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101719929A (en) * | 2009-11-20 | 2010-06-02 | 山东中创软件商用中间件股份有限公司 | Method for realizing real-time data transmission under Web Service |
CN102088398A (en) * | 2009-12-08 | 2011-06-08 | 华为技术有限公司 | World wide web (WEB) concurrent event processing method and device |
CN102035890A (en) * | 2010-12-08 | 2011-04-27 | 中国科学院声学研究所 | Web service concurrency control method and system based on IOT (Internet of Things)-oriented application |
CN102387206A (en) * | 2011-10-20 | 2012-03-21 | 镇江睿泰信息科技有限公司 | Synthesis method and system of concurrent request of Web service |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107688978A (en) * | 2016-08-05 | 2018-02-13 | 北京京东尚科信息技术有限公司 | The method and device of sequence information is repeated for detecting |
CN107688978B (en) * | 2016-08-05 | 2021-05-25 | 北京京东尚科信息技术有限公司 | Method and device for detecting repeated order information |
CN108337301A (en) * | 2018-01-24 | 2018-07-27 | 深圳乐信软件技术有限公司 | Network request processing method, device, server and the storage medium of application program |
CN111064771A (en) * | 2019-11-14 | 2020-04-24 | 福建天晴数码有限公司 | Network request processing method and system |
CN111064771B (en) * | 2019-11-14 | 2022-07-05 | 福建天晴数码有限公司 | Network request processing method and system |
CN112948108A (en) * | 2021-01-26 | 2021-06-11 | 北京字节跳动网络技术有限公司 | Request processing method and device and electronic equipment |
CN112948108B (en) * | 2021-01-26 | 2024-03-15 | 北京字节跳动网络技术有限公司 | Request processing method and device and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106850788B (en) | Integrated framework and integrated approach towards multi-source heterogeneous geographic information resources | |
CN102377686B (en) | Message subscription system, method and device | |
CN102387206A (en) | Synthesis method and system of concurrent request of Web service | |
CN102394925B (en) | Communication method and device for remote monitoring diagnosis center and area regulation center | |
CN109151056B (en) | Method and system for pushing messages based on Canal | |
CN104980289A (en) | Message pushing method, device and system | |
CN109992433B (en) | Distributed tgt communication optimization method, device, equipment and storage medium | |
CN103685326A (en) | WEB concurrent data transmission method and WEB application system | |
CN112019597B (en) | Distributed data receiving system and data receiving method | |
CN111786939B (en) | Method, device and system for testing management platform of Internet of things | |
CN103326951A (en) | Bandwidth control method and device for electric power communication network | |
EP2913977A2 (en) | Resource information acquisition method, system and device for internet of things terminal device | |
CN110831168B (en) | Communication method, system, internet of things platform and computer readable storage medium | |
CN111541555A (en) | Group chat optimization method and related product | |
CN103885997A (en) | Dynamic page information displaying method and dynamic page information displaying system | |
CN105553871A (en) | Method and system for remotely managing equipment parameters | |
CN103516788A (en) | Data pushing method and Flash client terminal and server thereof | |
CN111124717A (en) | Message delivery method, system and computer storage medium | |
CN105207860A (en) | Business acceleration system and method | |
CN103220343A (en) | Big data multi-system forwarding method | |
CN104427633A (en) | Control method for random access backoff | |
CN103873443A (en) | Information processing method, local proxy server and network proxy server | |
CN112131014A (en) | Decision engine system and business processing method thereof | |
CN112165353A (en) | Satellite Internet of things terminal network access authentication method | |
CN102238505B (en) | Method and system for processing multi-user parallel signalling tracking at client |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C41 | Transfer of patent application or patent right or utility model | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20160614 Address after: 200131 Shanghai City, Pudong New Area Chinese (Shanghai) free trade zone on Heidelberg Road No. 38 Building 1 floor 109-29 room 1 Applicant after: Shanghai sword Mdt InfoTech Ltd Address before: The 224000 Jiangsu province people's Road No. 33 Yancheng City Rundu building 16-18 Applicant before: YANCHENG RUITAI DIGITAL TECHNOLOGY CO., LTD. |
|
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20140326 |