CN106790158A - A kind of data processing method based on B/S frameworks, system and client - Google Patents

A kind of data processing method based on B/S frameworks, system and client Download PDF

Info

Publication number
CN106790158A
CN106790158A CN201611245626.4A CN201611245626A CN106790158A CN 106790158 A CN106790158 A CN 106790158A CN 201611245626 A CN201611245626 A CN 201611245626A CN 106790158 A CN106790158 A CN 106790158A
Authority
CN
China
Prior art keywords
user
response
request
response results
memory cell
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611245626.4A
Other languages
Chinese (zh)
Inventor
李娟�
袁鹏飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201611245626.4A priority Critical patent/CN106790158A/en
Publication of CN106790158A publication Critical patent/CN106790158A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Landscapes

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

Abstract

The invention discloses a kind of data processing method based on B/S frameworks, system and browser client, browser client includes memory cell, and the method includes receiving user's request;Judge whether that user's operation can be responded according to user's request;When user's operation can be responded, pre-stored data are obtained from memory cell and is operated according to pre-stored data response user.It can be seen that, the present invention is expanded the function of browser client, there is provided be locally stored, the characteristic of local computing, when user is made requests on by browser, browser client is judged user's request first, if can process, then operated directly in response to user, and processed by server to server end without sending, reduce server request number of times, alleviate the burden of server, response speed is improve, Consumer's Experience is improved, the utilization of resources of browser client is increased.

Description

A kind of data processing method based on B/S frameworks, system and client
Technical field
The present invention relates to B/S architecture technologies field, more particularly to a kind of data processing method of B/S frameworks, system and Client.
Background technology
Traditional Web applications follow B/S (Browser/Server, browser/server) framework, by data and function collection In in server end, browser client is only responsible for rendering the simple html page of presentation.This architecture causes browser The disposal ability of client is too weak, and all calculating are all performed in server, namely all requests that user sends are required for leading to Network transmission is crossed to server, is processed by server, which increases the processing pressure of server, while increased network The number of transmissions, and in the case of unstable networks or blocking, certainly exist the response of user not in time, when user waits Between it is long, Consumer's Experience is bad, be more likely to result in data it is dangerous the problems such as.
Therefore, how a kind of data processing method based on B/S frameworks for solving above-mentioned technical problem, system and visitor are provided Family end is the problem that those skilled in the art need to solve at present.
The content of the invention
It is an object of the invention to provide a kind of data processing method based on B/S frameworks, server request number of times is reduced, The burden of server is alleviated, response speed is improve, Consumer's Experience is improved, the resource profit of browser client is increased With;It is a further object of the present invention to provide a kind of data handling system based on B/S frameworks and including above-mentioned based on B/S frameworks The browser client of data handling system.
In order to solve the above technical problems, the invention provides a kind of data processing method based on B/S frameworks, being applied to clear Look at device client, the browser client includes memory cell, the method includes:
Receive user's request;
Judge whether that can respond user operates according to the user's request;
When user's operation can be responded, pre-stored data are obtained from the memory cell and according to described pre-stored Data response user operation.
Preferably, it is described to judge whether that the process that respond user's operation is specially according to the user's request:
Judge whether that can respond user operates according to the type and/or content of the user's request.
Preferably, the method also includes:
When user's operation can not be responded, the user's request is sent to server;
The response results that the server sends are received, and is operated according to response results response user.
Preferably, before response user's operation according to the response results, the method also includes:
According to the change of the type and/or value of the response results and/or the quantity of information judge that the sound can be preserved Result is answered, if it can, then preserving the response results, otherwise, subsequent operation is directly carried out;
It is then described pre-stored data to be obtained described in the memory cell and is responded according to the pre-stored data Before user's operation, the method also includes:
Judge whether preserve response results corresponding with the user's request in the browser client, when preserving During response results corresponding with the user's request, then response results response user's operation described in direct basis.
In order to solve the above technical problems, present invention also offers a kind of data handling system based on B/S frameworks, being applied to Browser client, the system includes:
Receiving unit, for receiving user's request;
First computing unit, for judging whether that can respond user operates according to the user's request;
First execution unit, for when user's operation can be responded, pre-stored data being obtained from memory cell simultaneously Operated according to the pre-stored data response user;
The memory cell, for storing the pre-stored data.
Preferably, first computing unit is specifically for the type according to the user's request and/or content judgement It is no to respond user's operation.
Preferably, first execution unit is additionally operable to when that can not respond user's operation, by user's request hair Deliver to server;The response results that the server sends are received, and is operated according to response results response user.
Preferably, the system also includes:
Second computing unit, sentences for the change of type and/or value and/or the quantity of information according to the response results It is disconnected to preserve the response results, if it can, then the response results are preserved to the memory cell, otherwise, trigger institute State the first execution unit;
It is then described that pre-stored data are obtained described in memory cell and user is responded according to the pre-stored data Before operation, whether first execution unit is additionally operable to judge preserve corresponding with the user's request in the memory cell Response results, when response results corresponding with the user's request are preserved, then response results response is used described in direct basis Family operates.
In order to solve the above technical problems, present invention also offers a kind of browser client based on B/S frameworks, including such as Upper described data handling system.
The invention provides a kind of data processing method based on B/S frameworks, system and browser client, browser visitor Family end includes memory cell, and the method includes receiving user's request;Judge whether that user's operation can be responded according to user's request; When user's operation can be responded, pre-stored data are obtained from memory cell and is grasped according to pre-stored data response user Make.It can be seen that, the present invention is expanded the function of browser client, there is provided be locally stored, the characteristic of local computing, when with When family is made requests on by browser, browser client is judged user's request first, if can process, is directly rung Operated using family, and processed by server to server end without sending, reduce server request number of times, alleviate service The burden of device, improves response speed, improves Consumer's Experience, increased the utilization of resources of browser client.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be to institute in prior art and embodiment The accompanying drawing for needing to use is briefly described, it should be apparent that, drawings in the following description are only some implementations of the invention Example, for those of ordinary skill in the art, on the premise of not paying creative work, can also obtain according to these accompanying drawings Obtain other accompanying drawings.
A kind of flow chart of the process of data processing method based on B/S frameworks that Fig. 1 is provided for the present invention;
The functional diagram of browser client in a kind of new B/S frameworks that Fig. 2 is provided for the present invention;
The system assumption diagram of browser client in a kind of B/S frameworks that Fig. 3 is provided for the present invention;
A kind of structural representation of data handling system based on B/S frameworks that Fig. 4 is provided for the present invention.
Specific embodiment
Core of the invention is to provide a kind of data processing method based on B/S frameworks, reduces server request number of times, The burden of server is alleviated, response speed is improve, Consumer's Experience is improved, the resource profit of browser client is increased With;Another core of the invention is to provide a kind of data handling system based on B/S frameworks and including above-mentioned based on B/S frameworks The browser client of data handling system.
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Refer to Fig. 1, a kind of flow of the process of data processing method based on B/S frameworks that Fig. 1 is provided for the present invention Figure, is applied to browser client, and browser client includes memory cell, and the method includes:
Step S11:Receive user's request;
Firstly the need of explanation, the data processing method that the present invention is provided is applied to based on the browser in B/S frameworks Client, increases loading/memorizing unit newly, for prestoring the data corresponding with certain user's request in the browser client. For example, the purpose of some user's requests is the number for obtaining the memory in server, because this number is fixed, therefore Without going by network to send user's request to server as in the prior art every time, then response is gone by server. Certainly, pre-stored data here can data fixed with some other comparing, not changing with factors such as times, or Person other data, the present invention is not particularly limited herein, is determined according to actual conditions.
Step S12:Judge whether that user's operation can be responded according to user's request;
Step S13:When user's operation can be responded, pre-stored data are obtained from memory cell and according to pre-stored Data response user operation.
After user's request is received, type or content first according to user's request go to judge whether can be local Response user's operation, when that can respond user's operation, then obtains pre-stored data directly instead to user from memory cell Or user is returned to after processing these data again, specifically determined according to user's request using which kind of mode.In addition, here Deterministic process be also calculating process.
Fig. 2 is refer to, the functional diagram of browser client in a kind of new B/S frameworks that Fig. 2 is provided for the present invention.
Functionally see, browser client has shared two-part role in new B/S frameworks:Application program and fortune Row environment.Application program is, to meet user's request, to complete the computer program of particular task exploitation, and running environment refers to branch The running environment of the software and hardware that application program is correctly run is held, the running environment of browser is contained and is locally stored, local computing Function.
Fig. 3 is refer to, the system assumption diagram of browser client in a kind of B/S frameworks that Fig. 3 is provided for the present invention.
Architecturally the function to browser client is divided, and browser client is according to MVC (Model View Control ler, view, model, controller) framework divided:Using preservation data model, logarithm is locally stored According to being processed, calculate;Application program no longer renders the whole static pages of HTML, but is carried out according to the data that server is returned The refreshing of partial view, and whole framework renders just be stored in locally first;Simultaneously with data model and view complexity Increase the relation, it is necessary between single program module coordination view and data model, be that client increases controller treatment industry Business logic.
To sum up, the present invention browser client increase is locally stored and local computing function, when client can be straight Connect when being responded to user's request just directly in response to, and server need not be sent the request to, not only can quickly improve response Speed, lifting Consumer's Experience, and the utilization of browser client resource is increased, reduce service end load.
The invention provides a kind of data processing method based on B/S frameworks, browser client includes memory cell, should Method includes receiving user's request;Judge whether that user's operation can be responded according to user's request;Operated when user can be responded When, pre-stored data are obtained from memory cell and according to pre-stored data response user's operation.It can be seen that, the present invention is to clear The function of device client of looking at is expanded, there is provided be locally stored, the characteristic of local computing, when user is asked by browser When asking, browser client is judged user's request first, if can process, directly in response to user's operation, and need not Transmission is processed to server end by server, reduces server request number of times, alleviates the burden of server, improves sound Speed is answered, Consumer's Experience is improved, the utilization of resources of browser client is increased.
Preferably, judge whether that the process that can respond user's operation is specially according to user's request:
Judge whether that user's operation can be responded according to the type and/or content of user's request.
Specifically, judge to respond what is determined according to user's request when user operates, for different user's requests, The particular content of foundation is also different, the type of some foundation user's requests, the content of some foundation user's requests, and the present invention is herein It is not particularly limited, is determined according to actual conditions.
Preferably, the method also includes:
When user's operation can not be responded, user's request is sent to server;
The response results that the reception server sends, and according to response results response user's operation.
Preferably, before according to response results response user's operation, the method also includes:
According to the change of the type and/or value of response results and/or the quantity of information judge that response results can be preserved, such as Fruit energy, then preserve response results, otherwise, directly carries out subsequent operation;
Before pre-stored data and the pre-stored data response user's operation of foundation are then obtained from memory cell, the method Also include:
Judge whether preserve response results corresponding with user's request in browser client, please with user when preserving When seeking corresponding response results, then direct basis response results response user operation.
When receiving the response results of server return, particular content according to response results determines whether to storage To memory cell, for example for some real-time refreshings data then without storage, fixed for some comparings mentioned above Data can then be stored.Which specifically store response results according to actual conditions to determine, the present invention is not particularly limited herein.
It can be seen that, the present invention can preserve some response results, and so, when user has same demand next time, client is clear Device of looking at can further reduce service end load directly in response to result, quickly respond user's operation.
Fig. 4 is refer to, Fig. 4 is a kind of structural representation of the data handling system based on B/S frameworks for providing of the invention, Browser client is applied to, the system includes:
Receiving unit 1, for receiving user's request;
First computing unit 2, for judging whether that user's operation can be responded according to user's request;
First execution unit 3, for when user's operation can be responded, pre-stored data being obtained from memory cell 4 And according to pre-stored data response user's operation;
Memory cell 4, for storing pre-stored data.
Preferably, the first computing unit 2 judges whether energy specifically for the type and/or content according to user's request Enough response user operations.
Preferably, the first execution unit 3 be additionally operable to when can not respond user operate when, by user's request send to Server;The response results that the reception server sends, and according to response results response user's operation.
Preferably, the system also includes:
Second computing unit, energy is judged for the change of type and/or value and/or the quantity of information according to response results No preservation response results, if it can, then preserving to memory cell 4 response results, otherwise, trigger the first execution unit;
Before pre-stored data and the pre-stored data response user's operation of foundation are then obtained from memory cell 4, first Whether execution unit 3 is additionally operable to judge preserve response results corresponding with user's request in memory cell 4, when preserve with When corresponding response results are asked at family, then direct basis response results response user operation.
The introduction of the data handling system based on B/S frameworks provided for the present invention refer to above method embodiment, The present invention will not be repeated here.
In order to solve the above technical problems, present invention also offers a kind of browser client based on B/S frameworks, including such as On data handling system.
The introduction of the data handling system based on B/S frameworks in the browser client provided for the present invention refer to Above method embodiment, the present invention will not be repeated here.
It should be noted that in this manual, such as first and second or the like relational terms are used merely to one Individual entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operate it Between there is any this actual relation or order.And, term " including ", "comprising" or its any other variant be intended to Cover including for nonexcludability, so that process, method, article or equipment including a series of key elements not only include those Key element, but also other key elements including being not expressly set out, or also include for this process, method, article or set Standby intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that Also there is other identical element in the process including the key element, method, article or equipment.
The foregoing description of the disclosed embodiments, enables professional and technical personnel in the field to realize or uses the present invention. Various modifications to these embodiments will be apparent for those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, the present invention The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one The scope most wide for causing.

Claims (9)

1. a kind of data processing method based on B/S frameworks, is applied to browser client, it is characterised in that the browser Client includes memory cell, and the method includes:
Receive user's request;
Judge whether that can respond user operates according to the user's request;
When user's operation can be responded, pre-stored data are obtained from the memory cell and according to the pre-stored number Operated according to response user.
2. data processing method as claimed in claim 1, it is characterised in that described to judge whether energy according to the user's request The process of enough response user operations is specially:
Judge whether that can respond user operates according to the type and/or content of the user's request.
3. data processing method as claimed in claim 1, it is characterised in that the method also includes:
When user's operation can not be responded, the user's request is sent to server;
The response results that the server sends are received, and is operated according to response results response user.
4. data processing method as claimed in claim 3, it is characterised in that described to be grasped according to response results response user Before work, the method also includes:
Judge that the response knot can be preserved according to the change of the type and/or value of the response results and/or the quantity of information Really, if it can, then preserving the response results, otherwise, subsequent operation is directly carried out;
It is then described that pre-stored data are obtained described in the memory cell and user is responded according to the pre-stored data Before operation, the method also includes:
Judge whether preserve response results corresponding with the user's request in the browser client, when preserving and institute When stating the corresponding response results of user's request, then response results response user's operation described in direct basis.
5. a kind of data handling system based on B/S frameworks, is applied to browser client, it is characterised in that the system includes:
Receiving unit, for receiving user's request;
First computing unit, for judging whether that can respond user operates according to the user's request;
First execution unit, for when user's operation can be responded, pre-stored data and foundation being obtained from memory cell Pre-stored data response user's operation;
The memory cell, for storing the pre-stored data.
6. data handling system as claimed in claim 5, it is characterised in that first computing unit is specifically for according to institute The type and/or content for stating user's request judge whether that user's operation can be responded.
7. data handling system as claimed in claim 5, it is characterised in that first execution unit is additionally operable to when can not When response user operates, the user's request is sent to server;Receive the response results that the server sends, and foundation Response results response user's operation.
8. data handling system as claimed in claim 7, it is characterised in that the system also includes:
Second computing unit, energy is judged for the change of type and/or value and/or the quantity of information according to the response results It is no to preserve the response results, if it can, then the response results are preserved to the memory cell, otherwise, trigger described the One execution unit;
It is then described pre-stored data to be obtained described in memory cell and is operated according to the pre-stored data response user Before, whether first execution unit is additionally operable to judge preserve response corresponding with the user's request in the memory cell As a result, when response results corresponding with the user's request are preserved, then response results response user grasps described in direct basis Make.
9. a kind of browser client based on B/S frameworks, it is characterised in that including as described in claim any one of 5-8 Data handling system.
CN201611245626.4A 2016-12-29 2016-12-29 A kind of data processing method based on B/S frameworks, system and client Pending CN106790158A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611245626.4A CN106790158A (en) 2016-12-29 2016-12-29 A kind of data processing method based on B/S frameworks, system and client

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611245626.4A CN106790158A (en) 2016-12-29 2016-12-29 A kind of data processing method based on B/S frameworks, system and client

Publications (1)

Publication Number Publication Date
CN106790158A true CN106790158A (en) 2017-05-31

Family

ID=58929197

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611245626.4A Pending CN106790158A (en) 2016-12-29 2016-12-29 A kind of data processing method based on B/S frameworks, system and client

Country Status (1)

Country Link
CN (1) CN106790158A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107635019A (en) * 2017-11-06 2018-01-26 湖南红手指信息技术有限公司 A kind of long-distance cloud control platform and its control method
CN110233843A (en) * 2019-06-13 2019-09-13 优信拍(北京)信息科技有限公司 A kind of processing method and processing device of user's request

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101997927A (en) * 2010-11-18 2011-03-30 厦门市美亚柏科信息股份有限公司 Method and system for caching data of WEB platform
CN102665127A (en) * 2012-04-23 2012-09-12 中山大学 Browser system of digital television
CN103218434A (en) * 2013-04-15 2013-07-24 北京小米科技有限责任公司 Method and device for loading static resource
CN104601691A (en) * 2015-01-13 2015-05-06 北京中交兴路车联网科技有限公司 Method and system for increasing loading speed of Web site resource
CN105095360A (en) * 2015-06-25 2015-11-25 小米科技有限责任公司 Method and device for processing user requests for browser

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101997927A (en) * 2010-11-18 2011-03-30 厦门市美亚柏科信息股份有限公司 Method and system for caching data of WEB platform
CN102665127A (en) * 2012-04-23 2012-09-12 中山大学 Browser system of digital television
CN103218434A (en) * 2013-04-15 2013-07-24 北京小米科技有限责任公司 Method and device for loading static resource
CN104601691A (en) * 2015-01-13 2015-05-06 北京中交兴路车联网科技有限公司 Method and system for increasing loading speed of Web site resource
CN105095360A (en) * 2015-06-25 2015-11-25 小米科技有限责任公司 Method and device for processing user requests for browser

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107635019A (en) * 2017-11-06 2018-01-26 湖南红手指信息技术有限公司 A kind of long-distance cloud control platform and its control method
CN110233843A (en) * 2019-06-13 2019-09-13 优信拍(北京)信息科技有限公司 A kind of processing method and processing device of user's request

Similar Documents

Publication Publication Date Title
US9619275B2 (en) Data processing method, apparatus and mobile terminal
CN103544324B (en) A kind of data access method of kernel state, apparatus and system
US10666758B2 (en) Browser resource pre-pulling method, terminal and storage medium
US20110321058A1 (en) Adaptive Demand-Driven Load Balancing
US10693816B2 (en) Communication methods and systems, electronic devices, and computer clusters
US20160171074A1 (en) Multi-dimensional decomposition computing method and system
CN108446575A (en) Disk management method, electronic equipment based on cloud desktop, storage medium, system
CN104980472A (en) Network traffic control method and device
CN110061924A (en) A kind of message forwarding method, device and Related product
CN104378428B (en) A kind of method and apparatus for file download
CN109684079A (en) Data display processing method, device and electronic equipment
CN109495553A (en) A kind of webpage display control method, system and Reverse Proxy
CN106790158A (en) A kind of data processing method based on B/S frameworks, system and client
CN108200132A (en) Resource acquiring method, device, equipment and computer readable storage medium
CN105100203B (en) Show the method and terminal of monitoring data
CN115277566A (en) Load balancing method and device for data access, computer equipment and medium
CN115567594A (en) Microservice request processing method, microservice request processing device, computer equipment and storage medium
CN103905484B (en) Handle the method and device of hypertext transfer protocol requests
CN112559172A (en) Method, system, equipment and storage medium for optimizing memory of web browser
CN105162837B (en) The method and system of I/O throughputs are promoted under mass data storage environment
CN115567602A (en) CDN node back-to-source method, device and computer readable storage medium
CN107360059B (en) Network detecting method, network detection device and intelligent terminal
CN108932329A (en) A kind of data query processing method and processing device
EP2700023B1 (en) Reducing latency for served applications by anticipatory preprocessing
CN115599571A (en) Data processing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170531

RJ01 Rejection of invention patent application after publication