CN107612982B - A kind of method, storage medium, equipment and system reducing function pages request number of times - Google Patents
A kind of method, storage medium, equipment and system reducing function pages request number of times Download PDFInfo
- Publication number
- CN107612982B CN107612982B CN201710770400.4A CN201710770400A CN107612982B CN 107612982 B CN107612982 B CN 107612982B CN 201710770400 A CN201710770400 A CN 201710770400A CN 107612982 B CN107612982 B CN 107612982B
- Authority
- CN
- China
- Prior art keywords
- request
- data
- configuration information
- client
- server
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 38
- 230000006870 function Effects 0.000 claims description 130
- 230000005540 biological transmission Effects 0.000 claims description 23
- 238000012545 processing Methods 0.000 claims description 13
- 238000004590 computer program Methods 0.000 claims description 11
- 230000008569 process Effects 0.000 claims description 7
- 238000011161 development Methods 0.000 abstract description 4
- 238000005516 engineering process Methods 0.000 abstract description 2
- 230000009467 reduction Effects 0.000 description 6
- 238000007689 inspection Methods 0.000 description 4
- 230000006872 improvement Effects 0.000 description 3
- 206010002320 anencephaly Diseases 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- PCTMTFRHKVHKIS-BMFZQQSSSA-N (1s,3r,4e,6e,8e,10e,12e,14e,16e,18s,19r,20r,21s,25r,27r,30r,31r,33s,35r,37s,38r)-3-[(2r,3s,4s,5s,6r)-4-amino-3,5-dihydroxy-6-methyloxan-2-yl]oxy-19,25,27,30,31,33,35,37-octahydroxy-18,20,21-trimethyl-23-oxo-22,39-dioxabicyclo[33.3.1]nonatriaconta-4,6,8,10 Chemical compound C1C=C2C[C@@H](OS(O)(=O)=O)CC[C@]2(C)[C@@H]2[C@@H]1[C@@H]1CC[C@H]([C@H](C)CCCC(C)C)[C@@]1(C)CC2.O[C@H]1[C@@H](N)[C@H](O)[C@@H](C)O[C@H]1O[C@H]1/C=C/C=C/C=C/C=C/C=C/C=C/C=C/[C@H](C)[C@@H](O)[C@@H](C)[C@H](C)OC(=O)C[C@H](O)C[C@H](O)CC[C@@H](O)[C@H](O)C[C@H](O)C[C@](O)(C[C@H](O)[C@H]2C(O)=O)O[C@H]2C1 PCTMTFRHKVHKIS-BMFZQQSSSA-N 0.000 description 1
- 241000251468 Actinopterygii Species 0.000 description 1
- 229910017435 S2 In Inorganic materials 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004140 cleaning Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000001747 exhibiting effect Effects 0.000 description 1
- 230000002688 persistence Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/24—Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/65—Transmission of management data between client and server
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/858—Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses a kind of method, storage medium, equipment and systems for reducing function pages request number of times, are related to application-development technologies field.This method comprises: client checks in local profile whether there is request of data configuration information, if having, directly according to the request of data configuration information in current local profile, the request of data of the function division of corresponding types is sent to the corresponding data interface of server;If not having, the configuring request of request configuration information is then sent to server, when client is successfully received the request of data configuration information of server return, the request of data configuration information is written in local profile, then sends the request of data of the function division of corresponding types to the corresponding data interface of server according to the request of data configuration information.The present invention can reduce function pages request number of times, and useless request is avoided to send, and mitigate server stress, save client traffic expense.
Description
Technical field
The present invention relates to application-development technologies fields, are specifically a kind of sides for reducing function pages request number of times
Method, storage medium, equipment and system.
Background technique
With the rapid development of mobile Internet, the APP (Application, using journey of various mobile terminals (such as mobile phone)
Sequence) it is more and more.And in order to meet the application demand of user's continuous improvement, in the development process of various mobile terminal APP usually
The subregion that some pages can be designed customizes function.The subregion customization function of the so-called page refers to is arranged many in the page
Function division, each function division have corresponding data and show form, can dynamically be showed according to the data that server returns
The content information of the page.And this page that function is customized with subregion, also referred to as function pages.For example, in live streaming APP
In the exploitation of client (as APP is broadcast live in bucket fish), the type using more function division includes order video function division, straight
Video capability subregion, the function division of banner advertisement bar, main broadcaster's recommendation function subregion etc. are broadcast, and there is the function of above-mentioned function division
The energy page then includes live streaming original list, live page etc..
Currently, the method that traditional realization function pages are shown is: when client needs to show some function pages, meeting
The request of data that the function division of corresponding types is successively sent to all data-interfaces of server, to obtain corresponding types
The data of function division.For example, the live page shown is currently needed to have the function division of 4 seed types: order video function point
Area, live video function division, the function division of banner advertisement bar, main broadcaster's recommendation function subregion;It then needs successively to server
4 corresponding data interfaces: the data-interface of order video function division, live video function division data-interface,
The data-interface of banner advertisement bar function division, the data-interface of main broadcaster's recommendation function subregion send 4 request of data, thus
Obtain corresponding data.If the data that certain data-interfaces return are sky, then the function pages of client just do not have to displaying pair
The function division answered;If what data-interface returned has data, then function pages carry out corresponding function according to the data of return
The displaying of subregion.
But in practical application, traditional function pages methods of exhibiting has the following deficiencies: due to traditional scheme and does not know
Which data-interface of road should request, which data-interface no data does not need to request, so can only be to all data-interfaces
All do request processing.But if the data that server returns are sky, current request of data does not have substantially in fact
Meaning, because server is at all without returning to any useful data information;And once this useless and " anencephaly " number
Excessive according to the transmission times of request, the access pressure that will lead to server is excessive, but also will cause the flow waste of client
And increase the power dissipation overhead of client.
Summary of the invention
The purpose of the invention is to overcome the shortcomings of above-mentioned background technique, a kind of reduction function pages request number of times is provided
Method, storage medium, equipment and system, function pages request number of times can be reduced, useless request is avoided to send, mitigate service
Device pressure saves client traffic expense.
To achieve the above objectives, the technical solution adopted by the present invention is that: providing a kind of reduces function pages request number of times
Method, method includes the following steps:
S1, when client needs to show some function pages, check local profile in whether there is request of data to match
Confidence breath, type of the request of data configuration information for the data-interface of writing function subregion, and the type recorded is
What the function pages of client needed to request to server;If no, being transferred to S2, if so, being transferred to S4;
S2, user end to server send configuring request, and the configuring request is used to which type to be inquired to server
The data-interface of function division has data and needs are requested;After server receives the configuring request of client transmission, return
Request of data configuration information is returned, S3 is transferred to;
S3, when client be successfully received server return request of data configuration information when, which is configured
Information is written in local profile, is transferred to S4;
S4, client are according to the request of data configuration information in current local profile, to the corresponding data of server
Interface sends the request of data of the function division of corresponding types.
Based on the above technical solution, in step S2, the configuring request includes client release information and operation
System version information;After server receives the configuring request of client transmission, according to the client release information in configuring request
Configuration information is requested to client returned data with operating system version information.
Based on the above technical solution, in step S2, after server receives the configuring request of client transmission, to visitor
When family end returned data requests configuration information, the time-out time of the request of data configuration information is also returned to, the time-out time is used
In judging that the request of data configuration information needs that whether fail are cleaned;
In step S3, when which is written in local profile, also by the time-out time
It is written in local profile;
Step S4 specifically includes following operation: client is according to the time-out of request of data configuration information in local profile
Time judges whether the request of data configuration information is overtime, if overtime, client deletes the data in current local profile
Configuration information is requested, then return step S2, send configuring request to server again and obtains request of data configuration information;If
It has not timed out, client is according to the request of data configuration information in current local profile, to the corresponding data interface of server
Send the request of data of the function division of corresponding types.
Based on the above technical solution, this method further include configuring request failure processing operation: when client not
When being successfully received the request of data configuration information of server return, corresponding class successively is sent to each data-interface of server
The request of data of the function division of type, and configuring request is added with before each request of data;Once certain request of data
When incidental configuring request succeeds and is successfully received the request of data configuration information of server return, then terminate subsequent number
According to the transmission of request, then the request of data configuration information is written in local profile, and is matched according to the request of data
Confidence ceases the request of data that the function division of corresponding types is sent to the corresponding data interface of server.
The present invention also provides a kind of storage mediums, are stored thereon with computer program, the computer program is by processor
The step of method of above-mentioned reduction function pages request number of times is realized when execution.
The present invention also provides a kind of equipment for reducing function pages request number of times, including memory, processor and are stored in
The computer program run on memory and on the processor, the processor are realized when executing the computer program
The step of stating the method for reducing function pages request number of times.
The present invention also provides a kind of systems for reducing function pages request number of times, which includes being set to matching for client
Confidence breath checks module, configuration request module, configuration information cache module, truthful data request sending module, Yi Jishe
It is placed in the configuration information return module of server;
The configuration information checks that module is used for: when client needs to show some function pages, inspection is locally configured
Whether request of data configuration information is had in file, and the request of data configuration information is used for the data-interface of writing function subregion
Type, and the type recorded be client function pages need to server request;If no, to configuration request
Module sends request signal, if so, sending processing signal to truthful data request sending module;
The configuration request module is used for: after receiving request signal, being sent out to the configuration information return module of server
Configuring request is sent, the configuring request is used to inquire that the data-interface of the function division of which type is with data to server
And need to request;
The configuration information return module is used for: receiving the configuring request that the configuration request module of client is sent
Afterwards, returned data requests configuration information, and sends buffered signal to configuration information cache module;
The configuration information cache module is used for: after receiving buffered signal, when client is successfully received matching for server
When setting the request of data configuration information of information return module return, which is written to local profile
In, processing signal is sent to truthful data request sending module;
The truthful data request sending module is used for: after receiving processing signal, according in current local profile
Request of data configuration information sends the request of data of the function division of corresponding types to the corresponding data interface of server.
Based on the above technical solution, the configuring request includes client release information and operating system version letter
Breath;After the configuring request that the configuration request module that the configuration information return module of server receives client is sent, according to
Client release information and operating system version information in configuring request request configuration information to client returned data.
Based on the above technical solution, the configuration information that the configuration information return module of server receives client is asked
After the configuring request that modulus block is sent, when requesting configuration information to client returned data, request of data configuration can be also returned to
The time-out time of information, the time-out time is for judging that the request of data configuration information needs that whether fail are cleaned;
It, can also be by institute when request of data configuration information is written in local profile by the configuration information cache module
Time-out time is stated to be written in local profile;
The truthful data request sending module carries out the detailed process of the transmission operation of request of data are as follows: is matched according to local
The time-out time for setting request of data configuration information in file judges whether the request of data configuration information is overtime, if overtime, deletes
Request of data configuration information in current local profile, then sends request signal to configuration request module;If not
Time-out sends to the corresponding data interface of server and corresponds to according to the request of data configuration information in current local profile
The request of data of the function division of type.
Based on the above technical solution, which further includes the configuring request failure handling mould for being set to client
Block, the configuring request failure handling module are used for: when the configuration information return module that client is unsuccessfully received server is returned
When the request of data configuration information returned, the data of the function division of corresponding types are successively sent to each data-interface of server
Request, and configuring request is added with before each request of data;Once the incidental configuring request of certain request of data at
Function and be successfully received server return request of data configuration information when, then terminate the transmission of request of data, then by the number
It is written in local profile according to request configuration information, and according to the request of data configuration information to the corresponding data of server
Interface sends the request of data of the function division of corresponding types.
The beneficial effects of the present invention are:
(1) in the present invention, before sending all request of data, a unique configuring request can be sent to server,
The configuring request can inquire that the data-interface of the function division of which type has data and needs are requested to server;And
After server receives the configuring request of client transmission, meeting returned data requests configuration information, request of data configuration information note
The type of the data-interface for the function division that record has the function pages of client to need to request to server;Client is to the data
After request configuration information is cached, the request of data configuration information according to caching is understood to send true request of data.
Compared with prior art, the present invention can effectively solve the problem of server returns to empty data, be significantly reduced " nothing
The number of brain " request, reduces the generation of invalidation request problem, thus the stream for reducing the pressure of server, reducing client
Amount, and the power dissipation overhead of client can be effectively reduced, user experience is good.
(2) in the present invention, fall configuring request and carried out special design, making it includes client release information and operation system
System version information;It, can be according to the client release information and operating system in configuring request and after server receives configuring request
Version information returns to the request of data configuration information customized to client, so that the present invention is able to satisfy different clients
The service condition of version, different client operating systems, applied widely, strong applicability.
(3) in the present invention, client can timely carry out the request of data configuration information in local profile clear
Reason and update, meet the requirement of real-time property and accuracy.
(4) process flow of configuring request failure is also devised in the present invention, it can be ensured that even configuring request fails
Also function pages can normally be loaded, to improve the fault-tolerance of program, promote user experience.
Detailed description of the invention
Fig. 1 is the flow chart that the method for function pages request number of times is reduced in the embodiment of the present invention;
Fig. 2 is the structural schematic diagram that the equipment of function pages request number of times is reduced in the embodiment of the present invention;
Fig. 3 is the structural block diagram that the system of function pages request number of times is reduced in the embodiment of the present invention.
Specific embodiment
With reference to the accompanying drawing and specific embodiment the present invention is described in further detail.
Shown in Figure 1, the embodiment of the present invention provides a kind of method for reducing function pages request number of times, and this method includes
Following steps:
Step S1, the inspection of information is locally configured: when client needs to show some function pages, inspection is locally configured
Whether have request of data configuration information in file, the request of data configuration information be used for record client function pages need to
The type of the data-interface of the function division of server request;If not having request of data configuration information, it is transferred to step S2, if there is number
According to request configuration information, it is transferred to step S4.For example, the corresponding data-interface of three function divisions is that have in current server
Data, the function pages of client can send request of data to the corresponding data-interface of these three function divisions, then the number
According to the type of the data-interface for these three function divisions that can recorde request in need in request configuration information.
Step S2, the request of information is locally configured: user end to server sends configuring request, and the configuring request is used for
The data-interface that the function division of which type is inquired to server is with data, and client needs to request;Server
After the configuring request for receiving client transmission, configuration information is requested to client returned data, is transferred to step S3.
It is understood that due in practical operation, the operation of the version and client of client used by a user
System is different, and the function point that different client release, different client operating systems can show or use
Area is different.Therefore, in order to be able to satisfy the service condition of different client releases, different client operating systems, this
In inventive embodiments, the request of data configuration information of different customization can be made for version information and operation system information.
For example, the possible different friendly certain module informations of displaying of some operating system, to cannot achieve certain type of function point
Area, then system, server would not match when returned data requests configuration information in the request of data of return for this operation
It include the type of the data-interface of the above-mentioned certain type of function division that cannot achieve in confidence breath, to realize a kind of customization
The request of data configuration information of change.
Specifically, in step S2, the configuring request includes client release information and operating system version information;?
On the basis of this, server receive client transmission configuring request after, can according in configuring request client release information and
Operating system version information returns to the request of data configuration information customized to client.In practical operation, the phase of configuring request
Closing description information can be as follows:
Step S3, the caching of information is locally configured: when client is successfully received the request of data configuration of server return
When information, the request of data configuration information is written in local profile, step S4 is transferred to.
It is understood that description through the above steps we can clearly know that request of data configuration information is logical
It crosses server to be returned, if showing that function pages all whereabouts server request data request configuration informations remain unchanged every time
The access times that will increase server still have certain pressure to server.In order to solve this problem, the present invention is using a kind of
The mode of persistence caches configuration information, as long as client is successfully received the request of data configuration of server return
After information, request of data configuration information will be written in local profile and be cached.
Step S4, the transmission of truthful data request: client is configured according to the request of data in current local profile
Information sends the request of data of the function division of corresponding types to the corresponding data interface of server.
Further, in order to meet the requirement of real-time property and accuracy, client needs timely to being locally configured
Request of data configuration information in file is cleared up and is updated.To achieve the goals above, in one embodiment, step S2
In, after server receives the configuring request of client transmission, when requesting configuration information to client returned data, it can also return to this
The time-out time of request of data configuration information, the time-out time for judge the request of data configuration information whether fail need by
Cleaning;It, can also be by the time-out time when request of data configuration information is written in local profile in step S3
It is written in local profile;On this basis, step S4 specifically includes following operation:
Step S401: client judges the data according to the time-out time of request of data configuration information in local profile
It requests configuration information whether overtime, if overtime, is transferred to step S402;If having not timed out, it is transferred to step S403.
Step S402: client deletes the request of data configuration information in current local profile, then return step
S2 sends configuring request to server again and obtains request of data configuration information.
Step S403: client is according to the request of data configuration information in current local profile, to the phase of server
Data-interface is answered to send the request of data of the function division of corresponding types.
Further, since the configuring request that user end to server is sent substantially is a HTTP (HyperText
Transfer Protocol, hypertext transfer protocol) request, as long as HTTP request is possible to will appear request failure
Situation.Even also can normally be loaded to function pages in order to ensure configuring request has failed, to improve program
Fault-tolerance, promoted user experience, in one embodiment, further include configuring request failure processing operation.Specifically, when
When client is unsuccessfully received the request of data configuration information of server return, successively sent out to each data-interface of server
The request of data of the function division of corresponding types is sent, and is added with configuring request before each request of data;Once certain
When the incidental configuring request of request of data succeeds and is successfully received the request of data configuration information of server return, then terminate
Then the request of data configuration information is written in local profile and according to the data by the transmission of subsequent request of data
Configuration information is requested, the request of data of the function division of corresponding types is sent to the corresponding data interface of server.That is
When occurring obtaining the failure of request of data configuration information, client is not to be loaded directly into wrong page info, but turn
By carrying out order request in the way of traditional scheme.But unlike traditional approach, before each request of data
Configuring request can be carried, as long as there is any configuring request success once carried, is asked then terminating above-mentioned traditional sequence
Process is sought, remaining request of data is directly sent according to the request of data configuration information of return.Even which guarantee match
Setting request and having failed also can normally load function pages, to improve the fault-tolerance of program, promote user experience;Together
When, moreover it is possible to the request number of times to server is reduced as far as possible.
In order to better understand above-mentioned treatment process, now it is illustrated below: if the type of function division has 4, then
The corresponding data interface of server has 4, and the request of data of the function division of corresponding types also has 4.Assuming that the number of 4 seed types
It is respectively ABCD, configuring request M according to request, then when client is unsuccessfully received the request of data of server return with confidence
It, can be false according to first sending MA, retransmit MB, then send MC, finally send the transmission that successively makes requests of sequence of MD when breath
Such as, after having sent MB request, client is successfully received server and matches confidence according to the request of data that configuring request M is returned
Breath then terminates the transmission of subsequent MC, MD request, then matches confidence according to the request of data after data cached request configuration information
Cease the request of data that the function division of corresponding types is sent to the corresponding data interface of server.
When realizing the displaying of the client functionality page using the above method, true need can be obtained by configuration data interface
The data-interface of (request) is accessed, the number of " anencephaly " request can be significantly reduced in this way, reduces invalidation request problem
Occur, thus the flow for reducing the pressure of server, reducing client, and the power consumption that can effectively reduce client is opened
Pin, user experience are good.
A kind of method of corresponding above-mentioned reduction function pages request number of times, the embodiment of the present invention also provide a kind of storage Jie
Matter is stored thereon with computer program, and the reduction in the various embodiments described above can be realized when which is executed by processor
The step of method of function pages request number of times.It should be noted that the storage medium includes USB flash disk, mobile hard disk, ROM
(Read-Only Memory, read-only memory), RAM (Random Access Memory, random access memory), magnetic disk or
The various media that can store program code such as person's CD.
In addition, shown in Figure 2, a kind of method of corresponding above-mentioned reduction function pages request number of times, the present invention is implemented
Example also provides a kind of equipment for reducing function pages request number of times, including memory, processor and storage are on a memory and can
The computer program run on a processor, the processor can realize the reduction in the various embodiments described above when executing computer program
The step of method of function pages request number of times.
Shown in Figure 3, the embodiment of the present invention also provides a kind of system for reducing function pages request number of times, the system packet
The configuration information inspection module for being set to client, configuration request module, configuration information cache module, truthful data is included to ask
Sending module is sought, and is set to the configuration information return module of server.
Wherein, the configuration information of client checks that module is used for: when client needs to show some function pages, checking
Whether request of data configuration information is had in local profile, and the request of data configuration information is used to record the function of client
The type of the data-interface for the function division that the page needs to request to server;If no, being sent to configuration request module
Request signal, if so, sending processing signal to truthful data request sending module;
The configuration request module of client is used for: after receiving request signal, returning to mould to the configuration information of server
Block sends configuring request, and the configuring request is used to inquire that the data-interface of the function division of which type is that have to server
What data and needs were requested;
The configuration information return module of server is used for: being received the configuration that the configuration request module of client is sent and is asked
After asking, returned data requests configuration information, and sends buffered signal to configuration information cache module;
The configuration information cache module of client is used for: after receiving buffered signal, when client is successfully received server
Configuration information return module return request of data configuration information when, which is written to and is locally configured
In file, processing signal is sent to truthful data request sending module;
The truthful data request sending module of client is used for: after receiving processing signal, according to current local profile
In request of data configuration information, to the corresponding data interface of server send corresponding types function division request of data.
Further, in order to be able to satisfy the service condition of different client releases, different client operating systems, this
In inventive embodiments, the request of data configuration information of different customization can be made for version information and operation system information.
Specifically, the configuring request includes client release information and operating system version information;The configuration information of server returns
It returns after module receives the configuring request that the configuration request module of client is sent, it can be according to the client edition in configuring request
This information and operating system version information request configuration information to client returned data.
Further, in order to meet the requirement of real-time property and accuracy, client needs timely to match to local
The request of data configuration information set in file is cleared up and is updated.To achieve the goals above, in one embodiment, it services
After the configuring request that the configuration request module that the configuration information return module of device receives client is sent, returned to client
When request of data configuration information, the time-out time of the request of data configuration information is also returned;The configuration information cache module will
When request of data configuration information is written in local profile, also the time-out time can be written to local profile
In.
On this basis, the truthful data request sending module carries out the detailed process of the transmission operation of request of data
Are as follows: judge whether the request of data configuration information surpasses according to the time-out time of request of data configuration information in local profile
When, if overtime, the request of data configuration information in current local profile is deleted, is then sent to configuration request module
Request signal;If having not timed out, according to the request of data configuration information in current local profile, to the corresponding data of server
Interface sends the request of data of the function division of corresponding types.
Further, even can also carry out normally adding to function pages in order to ensure configuring request has failed
It carries, to improve the fault-tolerance of program, promote user experience, in one embodiment, which further includes being set to client
Configuring request failure handling module.The configuring request failure handling module is used for: when client is unsuccessfully received server
Configuration information return module return request of data configuration information when, successively to each data-interface of server send correspond to
The request of data of the function division of type, and configuring request is added with before each request of data;Once certain data is asked
When asking incidental configuring request success and being successfully received the request of data configuration information of server return, then terminates data and ask
Then the request of data configuration information is written in local profile by the transmission asked, and match confidence according to the request of data
Cease the request of data that the function division of corresponding types is sent to the corresponding data interface of server.
It should be understood that system provided by the above embodiment realize function pages displaying when, only with above-mentioned each function
Can module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different function module
It completes, i.e., the internal structure of system is divided into different functional modules, to complete all or part of the functions described above.
The present invention is not limited to the above-described embodiments, for those skilled in the art, is not departing from
Under the premise of the principle of the invention, several improvements and modifications can also be made, these improvements and modifications are also considered as protection of the invention
Within the scope of.
The content being not described in detail in this specification belongs to the prior art well known to professional and technical personnel in the field.
Claims (10)
1. a kind of method for reducing function pages request number of times, which is characterized in that method includes the following steps:
S1, when client needs to show some function pages, check in local profile whether there is request of data with confidence
Breath, type of the request of data configuration information for the data-interface of writing function subregion, and the type recorded is client
What the function pages at end needed to request to server;If no, being transferred to S2, if so, being transferred to S4;
S2, user end to server send configuring request, and the configuring request is used to inquire the function of which type to server
The data-interface of subregion has data and needs are requested;After server receives the configuring request of client transmission, number is returned
According to request configuration information, it is transferred to S3;
S3, when client be successfully received server return request of data configuration information when, by the request of data configuration information
It is written in local profile, is transferred to S4;
S4, client are according to the request of data configuration information in current local profile, to the corresponding data interface of server
Send the request of data of the function division of corresponding types.
2. reducing the method for function pages request number of times as described in claim 1, it is characterised in that: described to match in step S2
Setting request includes client release information and operating system version information;
On this basis, after server receives the configuring request that client is sent, believed according to the client release in configuring request
Breath and operating system version information request configuration information to client returned data.
3. reducing the method for function pages request number of times as described in claim 1, it is characterised in that: in step S2, server
After the configuring request for receiving client transmission, when requesting configuration information to client returned data, also returns to the request of data and match
The time-out time of confidence breath, the time-out time is for judging that the request of data configuration information needs that whether fail are cleaned;
In step S3, when which is written in local profile, also the time-out time is written
Into local profile;
On this basis, step S4 specifically includes following operation:
Client judges the request of data configuration information according to the time-out time of request of data configuration information in local profile
It is whether overtime,
If overtime, client deletes the request of data configuration information in current local profile, then return step S2, again
Configuring request is sent to server and obtains request of data configuration information;
If having not timed out, client is according to the request of data configuration information in current local profile, to the respective counts of server
The request of data of the function division of corresponding types is sent according to interface.
4. reducing the method for function pages request number of times as described in claim 1, which is characterized in that this method further includes configuration
Request the processing operation of failure:
When client is unsuccessfully received the request of data configuration information of server return, successively to each data of server
Interface sends the request of data of the function division of corresponding types, and configuring request is added with before each request of data;One
When the incidental configuring request of certain request of data of denier succeeds and is successfully received the request of data configuration information of server return,
Then terminate the transmission of subsequent request of data, then the request of data configuration information is written in local profile, and root
The request of data of the function division of corresponding types is sent to the corresponding data interface of server according to the request of data configuration information.
5. a kind of storage medium, is stored thereon with computer program, it is characterised in that: the computer program is executed by processor
The step of any one of Shi Shixian the claims 1 to 4 the method.
6. a kind of equipment for reducing function pages request number of times, including memory, processor and be stored on the memory simultaneously
The computer program run on the processor, it is characterised in that: the processor is realized when executing the computer program
The step of any one of the claims 1 to 4 the method.
7. a kind of system for reducing function pages request number of times, it is characterised in that: the system includes being set to the configuration of client
Information checks module, configuration request module, configuration information cache module, truthful data request sending module, and setting
In the configuration information return module of server;
The configuration information checks that module is used for: when client needs to show some function pages, checking local profile
In whether have a request of data configuration information, class of the request of data configuration information for the data-interface of writing function subregion
Type, and the type recorded be client function pages need to server request;If no, to configuration request mould
Block sends request signal, if so, sending processing signal to truthful data request sending module;
The configuration request module is used for: after receiving request signal, being matched to the transmission of the configuration information return module of server
Request is set, the configuring request is used to inquire that the data-interface of the function division of which type is with data and to need to server
It to be requested;
The configuration information return module is used for: after receiving the configuring request that the configuration request module of client is sent, being returned
Request of data configuration information is returned, and sends buffered signal to configuration information cache module;
The configuration information cache module is used for: after receiving buffered signal, when client be successfully received server with confidence
When ceasing the request of data configuration information that return module returns, which is written in local profile,
Processing signal is sent to truthful data request sending module;
The truthful data request sending module is used for: after receiving processing signal, according to the data in current local profile
Configuration information is requested, the request of data of the function division of corresponding types is sent to the corresponding data interface of server.
8. reducing the system of function pages request number of times as claimed in claim 7, it is characterised in that: the configuring request includes
Client release information and operating system version information;
On this basis, the configuration information return module of server receives the configuration that the configuration request module of client is sent
After request, according in configuring request client release information and operating system version information to client returned data request match
Confidence breath.
9. reducing the system of function pages request number of times as claimed in claim 7, it is characterised in that: the configuration information of server
After the configuring request that the configuration request module that return module receives client is sent, request to configure to client returned data
When information, the time-out time of the request of data configuration information is also returned to, the time-out time is for judging that the request of data configures
The information needs that whether fail are cleaned;
When request of data configuration information is written in local profile by the configuration information cache module, described it can will also surpass
When the time be written in local profile;
On this basis, the truthful data request sending module carries out the detailed process of the transmission operation of request of data are as follows: root
Judge whether the request of data configuration information is overtime according to the time-out time of request of data configuration information in local profile, if super
When, the request of data configuration information in current local profile is deleted, then sends request letter to configuration request module
Number;If having not timed out, according to the request of data configuration information in current local profile, sent out to the corresponding data interface of server
Send the request of data of the function division of corresponding types.
10. reducing the system of function pages request number of times as claimed in claim 7, it is characterised in that: the system further includes setting
It is placed in the configuring request failure handling module of client, which is used for: when client connects not successfully
When receiving the request of data configuration information of configuration information return module return of server, successively connect to each data of server
Mouth sends the request of data of the function division of corresponding types, and configuring request is added with before each request of data;Once
When the incidental configuring request of certain request of data succeeds and is successfully received the request of data configuration information of server return, then
The request of data configuration information, is then written in local profile, and according to the data by the transmission for terminating request of data
Configuration information is requested to send the request of data of the function division of corresponding types to the corresponding data interface of server.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710770400.4A CN107612982B (en) | 2017-08-31 | 2017-08-31 | A kind of method, storage medium, equipment and system reducing function pages request number of times |
PCT/CN2017/117388 WO2019041670A1 (en) | 2017-08-31 | 2017-12-20 | Method, device and system for reducing frequency of functional page requests, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710770400.4A CN107612982B (en) | 2017-08-31 | 2017-08-31 | A kind of method, storage medium, equipment and system reducing function pages request number of times |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107612982A CN107612982A (en) | 2018-01-19 |
CN107612982B true CN107612982B (en) | 2019-06-18 |
Family
ID=61055595
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710770400.4A Active CN107612982B (en) | 2017-08-31 | 2017-08-31 | A kind of method, storage medium, equipment and system reducing function pages request number of times |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107612982B (en) |
WO (1) | WO2019041670A1 (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109936476A (en) * | 2019-02-26 | 2019-06-25 | 珠海天燕科技有限公司 | A kind of call method of configuration data, device and its equipment |
CN110377328A (en) * | 2019-07-15 | 2019-10-25 | 深圳乐信软件技术有限公司 | A kind of data capture method, device, equipment and storage medium |
CN111666493B (en) * | 2020-04-30 | 2024-05-03 | 平安科技(深圳)有限公司 | Page data generation method, device, computer equipment and storage medium |
CN112732757B (en) * | 2020-12-30 | 2023-07-25 | 北京奇艺世纪科技有限公司 | Method, system, device, equipment and storage medium for processing degraded data |
CN114519158B (en) * | 2022-01-11 | 2022-11-25 | 北京中交兴路信息科技有限公司 | Page display method and device, storage medium and terminal |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6118493A (en) * | 1997-04-01 | 2000-09-12 | Ati Technologies, Inc. | Method and apparatus for selecting a channel from a multiple channel display |
CN104519081A (en) * | 2013-09-27 | 2015-04-15 | 阿里巴巴集团控股有限公司 | Page access method and device |
CN105472437A (en) * | 2015-11-24 | 2016-04-06 | 广州华多网络科技有限公司 | Video playing method and apparatus thereof |
CN106559427A (en) * | 2016-11-22 | 2017-04-05 | 台州库得软件有限公司 | A kind of data storage and data transmission system |
CN106599296A (en) * | 2016-12-28 | 2017-04-26 | 北京微影时代科技有限公司 | Method and system for acquiring page data |
CN106658144A (en) * | 2016-12-20 | 2017-05-10 | 北京奇虎科技有限公司 | Display method and device of streaming media data |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9641898B2 (en) * | 2013-12-24 | 2017-05-02 | JBF Interlude 2009 LTD | Methods and systems for in-video library |
-
2017
- 2017-08-31 CN CN201710770400.4A patent/CN107612982B/en active Active
- 2017-12-20 WO PCT/CN2017/117388 patent/WO2019041670A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6118493A (en) * | 1997-04-01 | 2000-09-12 | Ati Technologies, Inc. | Method and apparatus for selecting a channel from a multiple channel display |
CN104519081A (en) * | 2013-09-27 | 2015-04-15 | 阿里巴巴集团控股有限公司 | Page access method and device |
CN105472437A (en) * | 2015-11-24 | 2016-04-06 | 广州华多网络科技有限公司 | Video playing method and apparatus thereof |
CN106559427A (en) * | 2016-11-22 | 2017-04-05 | 台州库得软件有限公司 | A kind of data storage and data transmission system |
CN106658144A (en) * | 2016-12-20 | 2017-05-10 | 北京奇虎科技有限公司 | Display method and device of streaming media data |
CN106599296A (en) * | 2016-12-28 | 2017-04-26 | 北京微影时代科技有限公司 | Method and system for acquiring page data |
Also Published As
Publication number | Publication date |
---|---|
CN107612982A (en) | 2018-01-19 |
WO2019041670A1 (en) | 2019-03-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107612982B (en) | A kind of method, storage medium, equipment and system reducing function pages request number of times | |
CN102546612B (en) | Remote procedure call implementation method based on remote direct memory access (RDMA) protocol in user mode | |
RU2008108838A (en) | ACCESSIBILITY DATA SERVICE | |
CN107404480B (en) | A kind of transmission method of stream medium data, storage medium and streaming media server | |
CN201846366U (en) | Intelligent medical imaging storage and transmission system | |
US20150319238A1 (en) | Method, device and storage medium for data processing | |
CN104519130B (en) | A kind of data sharing caching method across IDC | |
CN105812482B (en) | The sharing method and server platform of communication information | |
CN105681472B (en) | A kind of log transmission method and device | |
CN105516733B (en) | Interactive system and its exchange method | |
CN104866528B (en) | Multi-platform collecting method and system | |
CN110062004A (en) | A kind of message handling system and method based on Internet of Things fidonetFido | |
CN109327511A (en) | A kind of data request method and server based on http protocol | |
US20150006622A1 (en) | Web contents transmission method and apparatus | |
CN105610917A (en) | Method and system for achieving repair of synchronous data in system | |
US8621016B2 (en) | Adaptive differential propagation of soap messages | |
CN113722114A (en) | Data service processing method and device, computing equipment and storage medium | |
CN108039954A (en) | It is a kind of to realize the method, apparatus and system for checking Medical Devices daily record | |
CN103581119B (en) | System and method for displaying production process data at high speed | |
WO2023155437A1 (en) | Online-consultation-based data processing method, apparatus, and computer device | |
CN115473858A (en) | Data transmission method and streaming data transmission system | |
CN102902593A (en) | Protocol distribution processing system based on cache mechanism | |
CN102882952A (en) | Network data sharing method and system | |
CN1997005A (en) | System and method for management and control of the network communication data | |
CN111090818A (en) | Resource management method, resource management system, server, and computer 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |