CN110365745A - Data processing system, method, apparatus, server and computer-readable medium - Google Patents
Data processing system, method, apparatus, server and computer-readable medium Download PDFInfo
- Publication number
- CN110365745A CN110365745A CN201910544534.3A CN201910544534A CN110365745A CN 110365745 A CN110365745 A CN 110365745A CN 201910544534 A CN201910544534 A CN 201910544534A CN 110365745 A CN110365745 A CN 110365745A
- Authority
- CN
- China
- Prior art keywords
- target data
- newest
- attribute information
- terminal device
- data
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/63—Routing a service request depending on the request content or context
Abstract
The embodiment of the present application discloses data processing system, method, apparatus, server and computer-readable medium.The system includes terminal device and server;The terminal device is configured to obtain target data from local caching, the service request of the attribute information comprising the target data and the target data is sent to server;The server is configured to determine whether the target data is expired based on the attribute information;If so, obtaining newest target data, which is handled based on the newest target data, the response message comprising the newest target data is sent to the terminal device, so that the target data in the caching is replaced with the newest target data by the terminal device.The embodiment has saved Internet resources.
Description
Technical field
The invention relates to field of computer technology, and in particular to data processing system, method, apparatus, server
And computer-readable medium.
Background technique
In server and terminal device interactive process, terminal device is usually required to server for services.It is requesting
When service, for different user or different terminal equipment, different response messages is usually returned to.For example, ordinary user requests
When a certain video resource, the permission prompt information of promotion message and the video resource is returned, there is the viewing to the video resource
When the user of permission requests the video resource, the video resource can be returned.
Existing mode, usually server after often receiving a service request, by call with user information or
The relevant interface of facility information, to determine the corresponding target data of terminal device (such as return value) of request service, Jin Erji
Different processing is carried out in the data.However, since server usually requires to handle a large amount of service request, thus this mode
It needs repeatedly to call the interface, more waste Internet resources.
Summary of the invention
The embodiment of the present application proposes data processing system, method, apparatus, server and computer-readable medium, with solution
Certainly in the prior art network resources waste the technical issues of.
In a first aspect, the embodiment of the present application provides a kind of data processing system, including terminal device and server;Terminal
Equipment is configured to obtain target data from local caching, and sending to server includes target data and target data
The service request of attribute information, wherein target data is that the user information of the user based on using terminal equipment and/or terminal are set
The standby predetermined data of facility information institute;Server is configured to determine whether target data is expired based on attribute information;
If so, obtaining newest target data, service request is handled based on newest target data, sending to terminal device includes newest target
The response message of data, so that the target data in caching is replaced with newest target data by terminal device.
In some embodiments, server is further configured to be based on target in response to determining that target data is not out of date
Data processing service request sends the response message to service request to terminal device.
In some embodiments, the newest attribute information of newest target data is stored in server;And server, into
One step is configured to match attribute information with newest attribute information;In response to determining attribute information and newest attribute information
It is identical, determine that target data is not out of date;In response to determining that attribute information and newest attribute information be not identical, target data mistake is determined
Phase.
In some embodiments, server is further configured to store newest attribute information as follows: continuing
Monitor the update of target data;In response to listening to the update of target data, using updated target data as newest target
Data obtain using the attribute information of newest target data as newest attribute information and store newest attribute information.
In some embodiments, server is further configured to obtain newest target data as follows: obtaining
Newest user information and/or latest equipment information;Preset interface is called, newest user information and/or latest equipment information are passed
Preset interface is transported to, the newest target data of preset interface return is obtained.
In some embodiments, terminal device is further configured to not include target data in caching in response to determining,
Initial service request is sent to server;Server is further configured to obtain eventually in response to receiving initial service request
The corresponding target data of end equipment;Initial service request is handled based on target data;Send to terminal device includes target data
Initial communication information so that terminal device stores target data in the buffer.
In some embodiments, terminal device is further configured to the object run in response to detecting user's triggering,
Delete the target data in caching.
In some embodiments, attribute information includes version number and/or the timestamp of target data, and, newest attribute
Information includes version number and/or the timestamp of newest target data.
Second aspect, the embodiment of the present application provide a kind of data processing method, and this method is applied to server, comprising:
The service request that receiving terminal apparatus is sent, wherein include the target data in the caching of terminal device in service request
With the attribute information of target data, target data is the user information and/or terminal device of the user based on using terminal equipment
The predetermined data of facility information institute;Determine whether target data is expired based on attribute information;If so, obtaining newest target
Data, handle service request based on newest target data, send the response message comprising newest target data to terminal device, with
Make terminal device that the target data in caching is replaced with newest target data.
In some embodiments, this method further include: in response to determining that target data is not out of date, handled based on target data
Service request sends the response message to service request to terminal device.
In some embodiments, the newest attribute information of newest target data is stored in server;And it is based on attribute
Information determines whether target data is expired, comprising: matches attribute information with newest attribute information;In response to determining attribute
Information is identical as newest attribute information, determines that target data is not out of date;In response to determining attribute information and newest attribute information not
It is identical, determine that target data is expired.
In some embodiments, newest attribute information stores as follows: persistently monitoring the update of target data;It rings
Ying Yu listens to the update of target data, using updated target data as newest target data, by newest target data
Attribute information obtains as newest attribute information and stores newest attribute information.
In some embodiments, newest target data is obtained, comprising: obtain newest user information and/or latest equipment letter
Breath;Preset interface is called, newest user information and/or latest equipment information are transmitted to preset interface, preset interface is obtained and returns
The newest target data returned.
In some embodiments, before the service request that receiving terminal apparatus is sent, this method further include: in response to connecing
The initial service request of terminal device transmission is received, the corresponding target data of terminal device is obtained;Just based on target data processing
Beginning service request;The initial communication information comprising target data is sent to terminal device, so that terminal device stores in the buffer
Target data.
In some embodiments, attribute information includes version number and/or the timestamp of target data, and, newest attribute
Information includes version number and/or the timestamp of newest target data.
The third aspect, the embodiment of the present application provide a kind of data processing equipment, the device include: applied to server,
Include: the first receiving unit, be configured to the service request of receiving terminal apparatus transmission, wherein includes terminal in service request
The attribute information of target data and target data in the caching of equipment, target data are the user's based on using terminal equipment
The predetermined data of the facility information of user information and/or terminal device institute;Determination unit is configured to based on attribute information
Determine whether target data is expired;First transmission unit is configured to if so, newest target data is obtained, based on newest target
Data processing service request sends the response message comprising newest target data to terminal device, so that terminal device will cache
In target data replace with newest target data.
In some embodiments, device further include: the second transmission unit is configured in response to determine target data not
It is expired, service request is handled based on target data, sends the response message to service request to terminal device.
In some embodiments, the newest attribute information of newest target data is stored in server;And determination unit,
It is further configured to: attribute information is matched with newest attribute information;In response to determining attribute information and newest attribute
Information is identical, determines that target data is not out of date;In response to determining that attribute information and newest attribute information be not identical, number of targets is determined
According to expired.
In some embodiments, newest attribute information stores as follows: persistently monitoring the update of target data;It rings
Ying Yu listens to the update of target data, using updated target data as newest target data, by newest target data
Attribute information obtains as newest attribute information and stores newest attribute information.
In some embodiments, the first transmission unit is configured to obtain newest target data as follows into one:
Obtain newest user information and/or latest equipment information;Preset interface is called, newest user information and/or latest equipment are believed
Breath is transmitted to preset interface, obtains the newest target data of preset interface return.
In some embodiments, device further include: the second receiving unit is configured in response to receive terminal device
The initial service request of transmission obtains the corresponding target data of terminal device;Processing unit is configured to based at target data
Manage initial service request;Third transmission unit is configured to send the initial communication information comprising target data to terminal device,
So that terminal device stores target data in the buffer.
In some embodiments, attribute information includes version number and/or the timestamp of target data, and, newest attribute
Information includes version number and/or the timestamp of newest target data.
Fourth aspect, the embodiment of the present application provide a kind of electronic equipment, comprising: one or more processors;Storage dress
Set, be stored thereon with one or more programs, when one or more programs are executed by one or more processors so that one or
Multiple processors realize the method such as any embodiment in above-mentioned first aspect.
5th aspect, the embodiment of the present application provide a kind of computer-readable medium, are stored thereon with computer program, should
The method such as any embodiment in above-mentioned first aspect is realized when program is executed by processor.
Data processing system, method, apparatus, server and computer-readable medium provided by the embodiments of the present application, pass through
Terminal device obtains target data from local caching, sends to server comprising being based on user information and/or facility information
The attribute information of predetermined target data and target data service request;Then server is determined based on attribute information
Whether target data is expired;If so, obtaining newest target data, service request is handled based on newest target data, is set to terminal
Preparation send the response message comprising newest target data, so that the target data in caching is replaced with newest target by terminal device
Data.As a result, by caching target data to terminal device, and after the target data cached is expired, pass through service
Device returns to newest target data with the update cached.To which server does not need actively to obtain after receiving service request every time
Target data is taken, Internet resources have been saved, improves server to the treatment effeciency of service request.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other
Feature, objects and advantages will become more apparent upon:
Fig. 1 is the timing diagram according to one embodiment of the data processing system of the application;
Fig. 2 is the flow chart according to one embodiment of the data processing method of the application;
Fig. 3 is the structural schematic diagram according to one embodiment of the data processing equipment of the application;
Fig. 4 is adapted for the structural schematic diagram for the computer system for realizing the server of the embodiment of the present application.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to
Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase
Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Referring to FIG. 1, it illustrates the timing diagrams according to one embodiment of the data processing system of the application.
Above-mentioned data processing system includes terminal device and server.Wherein, above-mentioned terminal device may include but unlimited
In smart phone, tablet computer, pocket computer on knee etc..Above-mentioned terminal device and above-mentioned server can pass through network
It interacts.Above equipment can send service request to above-mentioned server, which can return to corresponding response message.
As shown in Figure 1, the timing diagram of one embodiment of data processing system, can involve the steps of:
Step 101, terminal device obtains target data from local caching.
In the present embodiment, target data, above-mentioned executing subject can be previously stored in the caching of terminal device local
The target data can be obtained from local caching.Wherein, above-mentioned target data can be based on the use for using above equipment
Data determined by the facility information of the user information at family and/or above-mentioned terminal device (such as numerical value, mark etc.).
As an example, above-mentioned target data, which can be, is input to some preset interface for user information and/or facility information
Afterwards, the return value exported by the preset interface.Herein, above-mentioned preset interface be determined for different user information and/or
The corresponding return value of facility information.
In practice, target data can serve to indicate that server chooses the processing mode to request.Different target datas
It can indicate that server chooses the processing that different processing modes makes requests.For example, terminal device can be equipped with video class
Using.When user's point opens the broadcast page of a certain video in video class application, page data can be sent to server and obtained
Request.At this point, target data can be if the user is ordinary user's (not having the user to the viewing permission of the video)
Return value " 1 ".Then, above-mentioned server can be based on the return value, and the viewing for determining that the user does not have to above-mentioned video is weighed
Limit, so that feedback is used to indicate the prompt information for carrying out customer upgrade, as the response to above-mentioned page data acquisition request.Again
For example, target information can be return value if the user is responsible consumer (having the user to the viewing permission of the video)
"0".At this point, stating server can determine that the user has the viewing permission to above-mentioned video, and then obtain based on the return value
Video data, and return to video data.
Step 102, terminal device is asked to the service that server sends the attribute information comprising target data and target data
It asks.
In the present embodiment, terminal device can inquire the attribute of target data after getting target data in caching
Information, and send to server the service request of the attribute information comprising target data and target data.Herein, target data
Attribute information can be relevant to target data various information, such as version number, timestamp, acquisition time etc..Wherein, above-mentioned
Timestamp can serve to indicate that the creation time of the target data.
Step 103, server determines whether target data is expired based on attribute information.
In the present embodiment, because of situations such as in some cases (such as service change, system upgrade), operation personnel's meeting
Configuration change is carried out, therefore, the target data based on determined by user information and/or facility information may update.Due to
It may include version number, timestamp, acquisition time etc. in attribute information, therefore, when updating target data, attribute letter
Breath also updates therewith.Above-mentioned server can determine whether above-mentioned target data is expired based on above-mentioned attribute information as a result,.
In some optional implementations of the present embodiment, newest target data can store in above-mentioned server
Newest attribute information.At this point, above-mentioned server can match above-mentioned attribute information with above-mentioned newest attribute information.Response
In determining that above-mentioned attribute information is identical as above-mentioned newest attribute information, it can determine that above-mentioned target data is not out of date.In response to true
Fixed above-mentioned attribute information and above-mentioned newest attribute information be not identical, can determine that above-mentioned target data is expired.Optionally, above-mentioned category
Property information may include version number and/or the timestamp of above-mentioned target data, and, on above-mentioned newest attribute information may include
State version number and/or the timestamp of newest target data.
As an example, the latest edition number of the above-mentioned available target data of server.If the version of above-mentioned attribute information
It is number different from latest edition number, it can determine that target data is out of date;If version number and the latest edition number of above-mentioned attribute information
It is identical, it can determine that target data is not out of date.
As another example, the newest timestamp of the available newest target data of above-mentioned server.If the above-mentioned time
Stamp is different from newest timestamp, can determine that target data is out of date;It, can be true if above-mentioned timestamp is identical as newest timestamp
The data that set the goal are not out of date.
In some optional implementations of the present embodiment, above-mentioned server can store as follows it is above-mentioned most
New attribute information: the first step persistently monitors the update of above-mentioned target data.Second step, in response to listening to above-mentioned target data
Update, using updated target data as newest target data, using the attribute information of above-mentioned newest target data as most
New attribute information obtains and stores above-mentioned newest attribute information.As a result, after updating target data, server can be deposited
Store up the newest attribute information of newest target data.In practice, above-mentioned newest attribute information be can store in the slow of above-mentioned server
In depositing.
In some optional implementations of the present embodiment, above-mentioned server is receiving above-mentioned target data and attribute
After information, above-mentioned target data and attribute information can also be verified, to guarantee the reliability of received data.?
After verification passes through, the whether expired operation of determining attribute information can be executed.If verification does not pass through, can delete received
Target data obtains newest target data.
Step 104, server is expired in response to determining target data, obtains newest target data, is based on newest number of targets
According to processing service request, the response message comprising newest target data is sent to terminal device.
In the present embodiment, server is expired in response to determining target data, available newest target data.Due to mesh
Mark data can serve to indicate that server chooses the processing mode to request, thus, after obtaining newest target data, server
The processing mode to service request can be determined based on newest target data, and is handled above-mentioned service using the processing mode and asked
It asks.Finally, sending the response message comprising newest target data to terminal device.
In some optional implementations of the present embodiment, above-mentioned server can obtain as follows it is above-mentioned most
Fresh target data:
The first step obtains the newest user information for using the user of above-mentioned terminal device and/or above-mentioned terminal device most
New equipment information.In a kind of scene, above-mentioned newest user information and/or latest equipment information can be pre-stored within server
In, at this point, above-mentioned server can obtain user information and facility information from local.In another scene, above-mentioned server
Data acquisition request can be sent to above-mentioned terminal device, to obtain newest user information and/or newest from above-mentioned terminal device
Facility information.
Second step calls preset interface, above-mentioned newest user information and/or above-mentioned latest equipment information is transmitted to above-mentioned
Preset interface obtains the newest target data that above-mentioned preset interface returns.Herein, above-mentioned preset interface is determined for difference
User information and/or the corresponding return value of facility information.
In some optional implementations of the present embodiment, above-mentioned server includes newest mesh sending to terminal device
Before the response message for marking data, it can sign to the newest target data, in order to be asked in the service next time that receives
After asking, which is verified.
Step 105, the target data in caching is replaced with newest target data by terminal device.
In the present embodiment, terminal device can will cache after receiving the response message comprising newest target data
In target data replace with newest target data, thus timely update caching in target data.
In some optional implementations of the present embodiment, server is not out of date in response to the above-mentioned target data of determination,
Above-mentioned target data can be directly based upon and handle above-mentioned service request, Xiang Shangshu terminal device sends the sound to above-mentioned service request
Answer information.
In some optional implementations of the present embodiment, above-mentioned terminal device in response to detect user triggering mesh
Mark operation, can delete the target data in above-mentioned caching.Wherein, above-mentioned object run, which can be, leads to target data failure
Operation.For example, above-mentioned object run can include but is not limited to: ordinary user upgrades to responsible consumer, user completes task and leads
Integral increase, user is caused to replace equipment or account etc..
It is understood that being not yet stored with target data in caching in the service of client first request.Thus,
In some optional implementations of the present embodiment, terminal device is not in response to including above-mentioned number of targets in the above-mentioned caching of determination
According to, can to above-mentioned server send initial service request.Herein, initial service request does not include target data.Then, it services
Device is in response to receiving above-mentioned initial service request, the corresponding target data of available above-mentioned terminal device.Later, server
Above-mentioned initial service request can be handled based on above-mentioned target data.It is wrapped finally, server can be sent to above-mentioned terminal device
Initial communication information containing above-mentioned target data, so that above-mentioned terminal device stores above-mentioned target data in above-mentioned caching.
The system provided by the above embodiment of the application obtains target data from local caching by terminal device,
To server send comprising based on user information and/or facility information predetermined target data and above-mentioned target data
The service request of attribute information;Then server determines whether above-mentioned target data is expired based on above-mentioned attribute information;If so, obtaining
Newest target data is taken, above-mentioned service request is handled based on above-mentioned newest target data, Xiang Shangshu terminal device is sent comprising upper
State the response message of newest target data so that above-mentioned terminal device the above-mentioned target data in above-mentioned caching is replaced with it is above-mentioned
Newest target data.As a result, by caching target data to terminal device, and after the target data cached is expired,
The update for returning to newest target data by server to be cached.To which server does not need to receive service request every time
Target data is actively obtained afterwards, has saved Internet resources, improves server to the treatment effeciency of service request.
Referring to FIG. 2, it illustrates the processes 200 according to one embodiment of the data processing method of the application.The number
According to processing method, comprising the following steps:
Step 201, the service request that receiving terminal apparatus is sent.
In the present embodiment, the executing subject (such as server) of data processing method can receive terminal device transmission
Service request.It wherein, may include the category for the target data and target data being located in the caching of terminal device in service request
Property information.Wherein, target data is the user information of the user based on using terminal equipment and/or the facility information of terminal device
The predetermined data of institute.
Step 202, determine whether target data is expired based on attribute information.
In the present embodiment, since in some cases, operation personnel will do it configuration change, therefore, believed based on user
Target data determined by breath and/or facility information may update.Due to may include version number, time in attribute information
Stamp, acquisition time etc., therefore, when updating target data, attribute information also updates.Therefore, above-mentioned execution master
Body can determine whether above-mentioned target data is expired based on above-mentioned attribute information.As an example, above-mentioned executing subject is available
The latest edition number of target data.If the version number of above-mentioned attribute information is different from latest edition number, target data can be determined
It is out of date;If the version number of above-mentioned attribute information is identical as latest edition number, it can determine that target data is not out of date.
In some optional implementations of the present embodiment, newest target data can store in above-mentioned executing subject
Newest attribute information.At this point, above-mentioned executing subject can match above-mentioned attribute information with above-mentioned newest attribute information.
It is identical as above-mentioned newest attribute information in response to the above-mentioned attribute information of determination, it can determine that above-mentioned target data is not out of date.Response
In determining that above-mentioned attribute information and above-mentioned newest attribute information be not identical, it can determine that above-mentioned target data is expired.
In some optional implementations of the present embodiment, above-mentioned executing subject can store above-mentioned as follows
Newest attribute information: the first step persistently monitors the update of above-mentioned target data.Second step, in response to listening to above-mentioned number of targets
According to update, using updated target data as newest target data, using the attribute information of above-mentioned newest target data as
Newest attribute information obtains and stores above-mentioned newest attribute information.As a result, after updating target data, above-mentioned executing subject
It can store the newest attribute information of newest target data.In practice, above-mentioned newest attribute information can store to be held in above-mentioned
In the caching of row main body.Optionally, above-mentioned attribute information may include version number and/or the timestamp of above-mentioned target data, with
And above-mentioned newest attribute information may include version number and/or the timestamp of above-mentioned newest target data.
Step 203, if so, obtaining newest target data, service request is handled based on newest target data, to terminal device
The response message comprising newest target data is sent, so that the target data in caching is replaced with newest number of targets by terminal device
According to.
In the present embodiment, in response to determining that target data is expired, the above-mentioned available newest target data of executing subject,
Service request is handled based on newest target data, and sends the response message comprising newest target data to terminal device, so that
Target data in caching is replaced with newest target data by terminal device.
In some optional implementations of the present embodiment, executing subject is in response to the non-mistake of the above-mentioned target data of determination
Phase, above-mentioned service request can be handled based on above-mentioned target data, Xiang Shangshu terminal device sends the sound to above-mentioned service request
Answer information.
In some optional implementations of the present embodiment, above-mentioned terminal device in response to detect user triggering mesh
Mark operation, can delete the target data in above-mentioned caching.Wherein, above-mentioned object run, which can be, leads to target data failure
Operation.For example, above-mentioned object run can include but is not limited to: ordinary user upgrades to responsible consumer, user completes task and leads
Integral increase, user is caused to replace equipment or account etc..
It is understood that being not yet stored with target data in caching in the service of client first request.Terminal device
In response to not including above-mentioned target data in the above-mentioned caching of determination, initial service request can be sent to above-mentioned executing subject.This
Place, initial service request do not include target data.Thus, in some optional implementations of the present embodiment, executing subject
In response to receiving above-mentioned initial service request, the corresponding target data of available above-mentioned terminal device.Later, above-mentioned execution
Main body can handle above-mentioned initial service request based on above-mentioned target data.Finally, executing subject can be to above-mentioned terminal device
The initial communication information comprising above-mentioned target data is sent, so that above-mentioned terminal device stores above-mentioned number of targets in above-mentioned caching
According to.
The method provided by the above embodiment of the application, the service request sent by receiving terminal apparatus, to obtain
The attribute information of target data and above-mentioned target data in the caching of above-mentioned terminal device.Then believed based on above-mentioned attribute
Breath determines whether above-mentioned target data is expired;If so, newest target data is obtained, it is above-mentioned based on above-mentioned newest target data processing
Service request, Xiang Shangshu terminal device send the response message comprising above-mentioned newest target data, so that above-mentioned terminal device will
Above-mentioned target data in above-mentioned caching replaces with above-mentioned newest target data.As a result, by being deposited in the caching of terminal device
Target data is stored up, and after the target data cached is expired, newest target data is returned to be cached by server
Update.To which server does not need actively to obtain target data after receiving service request every time, Internet resources are saved, have been mentioned
High treatment effeciency of the server to service request.
With further reference to Fig. 3, as the realization to method shown in above-mentioned each figure, this application provides a kind of data processing dresses
The one embodiment set, the Installation practice is corresponding with embodiment of the method shown in FIG. 1, which specifically can be applied to take
It is engaged in device.
As shown in figure 3, data processing equipment 300 described in the present embodiment includes: the first receiving unit 301, it is configured to
The service request that receiving terminal apparatus is sent, wherein the target in caching in above-mentioned service request including above-mentioned terminal device
The attribute information of data and above-mentioned target data, above-mentioned target data are user's letter based on the user for using above-mentioned terminal device
The predetermined data of the facility information of breath and/or above-mentioned terminal device;Determination unit 302 is configured to based on above-mentioned category
Property information determines whether above-mentioned target data is expired;First transmission unit 303 is configured to if so, obtain newest target data,
Above-mentioned service request is handled based on above-mentioned newest target data, Xiang Shangshu terminal device is sent comprising above-mentioned newest target data
Response message, so that the above-mentioned target data in above-mentioned caching is replaced with above-mentioned newest target data by above-mentioned terminal device.
In some optional implementations of the present embodiment, the device further include: the second transmission unit is configured to ring
Above-mentioned service request, Xiang Shangshu terminal device hair should be handled based on above-mentioned target data in determining that above-mentioned target data is not out of date
Send the response message to above-mentioned service request.
In some optional implementations of the present embodiment, the newest of newest target data is stored in above-mentioned server
Attribute information;And above-mentioned determination unit, it is further configured to: above-mentioned attribute information and above-mentioned newest attribute information is carried out
Matching;It is identical as above-mentioned newest attribute information in response to the above-mentioned attribute information of determination, determine that above-mentioned target data is not out of date;Response
In determining that above-mentioned attribute information and above-mentioned newest attribute information be not identical, determine that above-mentioned target data is expired.
In some optional implementations of the present embodiment, above-mentioned newest attribute information stores as follows: holding
The continuous update for monitoring above-mentioned target data;In response to listening to the update of above-mentioned target data, updated target data is made
For newest target data, using the attribute information of above-mentioned newest target data as newest attribute information, obtain and store it is above-mentioned most
New attribute information.
In some optional implementations of the present embodiment, above-mentioned first transmission unit is configured into one by such as
Lower step obtains above-mentioned newest target data: obtaining and uses newest user information and/or latest equipment information;Call default connect
Mouthful, above-mentioned newest user information and/or above-mentioned latest equipment information are transmitted to above-mentioned preset interface, obtain above-mentioned preset interface
The newest target data returned.
In some optional implementations of the present embodiment, the device further include: the second receiving unit is configured to ring
Ying Yu receives the initial service request that above-mentioned terminal device is sent, and obtains the corresponding target data of above-mentioned terminal device;Processing
Unit is configured to handle above-mentioned initial service request based on above-mentioned target data;Third transmission unit is configured to above-mentioned
Terminal device sends the initial communication information comprising above-mentioned target data, so that above-mentioned terminal device stores in above-mentioned caching
State target data.
In some optional implementations of the present embodiment, above-mentioned attribute information includes the version number of above-mentioned target data
And/or timestamp, and, above-mentioned newest attribute information includes version number and/or the timestamp of above-mentioned newest target data.
The device provided by the above embodiment of the application obtains target data from local caching by terminal device,
The service request of the attribute information comprising above-mentioned target data and above-mentioned target data is sent to server;Then server is based on
Above-mentioned attribute information determines whether above-mentioned target data is expired;If so, obtaining newest target data, it is based on above-mentioned newest number of targets
According to above-mentioned service request is handled, Xiang Shangshu terminal device sends the response message comprising above-mentioned newest target data, so that above-mentioned
Above-mentioned target data in above-mentioned caching is replaced with above-mentioned newest target data by terminal device.As a result, by by target data
It caches to terminal device, and after the target data cached is expired, newest target data is returned to carry out by server
The update of caching.To which server does not need actively to obtain target data after receiving service request every time, network money has been saved
Source improves server to the treatment effeciency of service request.
Below with reference to Fig. 4, it illustrates the computer systems 400 for the server for being suitable for being used to realize the embodiment of the present application
Structural schematic diagram.Server shown in Fig. 4 is only an example, should not function and use scope band to the embodiment of the present application
Carry out any restrictions.
As shown in figure 4, computer system 400 includes central processing unit (CPU) 401, it can be read-only according to being stored in
Program in memory (ROM) 402 or be loaded into the program in random access storage device (RAM) 403 from storage section 408 and
Execute various movements appropriate and processing.In RAM 403, also it is stored with system 400 and operates required various programs and data.
CPU 401, ROM 402 and RAM 403 are connected with each other by bus 404.Input/output (I/O) interface 405 is also connected to always
Line 404.
I/O interface 405 is connected to lower component: the importation 406 including keyboard, mouse etc.;Including such as liquid crystal
Show the output par, c 407 of device (LCD) etc. and loudspeaker etc.;Storage section 408 including hard disk etc.;And including such as LAN
The communications portion 409 of the network interface card of card, modem etc..Communications portion 409 is executed via the network of such as internet
Communication process.Driver 410 is also connected to I/O interface 405 as needed.Detachable media 411, such as disk, CD, magneto-optic
Disk, semiconductor memory etc. are mounted on as needed on driver 410, in order to from the computer program root read thereon
According to needing to be mounted into storage section 408.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description
Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium
On computer program, which includes the program code for method shown in execution flow chart.In such reality
It applies in example, which can be downloaded and installed from network by communications portion 409, and/or from detachable media
411 are mounted.When the computer program is executed by central processing unit (CPU) 401, limited in execution the present processes
Above-mentioned function.It should be noted that computer-readable medium described herein can be computer-readable signal media or
Computer readable storage medium either the two any combination.Computer readable storage medium for example can be --- but
Be not limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.
The more specific example of computer readable storage medium can include but is not limited to: have one or more conducting wires electrical connection,
Portable computer diskette, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only deposit
Reservoir (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory
Part or above-mentioned any appropriate combination.In this application, computer readable storage medium, which can be, any include or stores
The tangible medium of program, the program can be commanded execution system, device or device use or in connection.And
In the application, computer-readable signal media may include in a base band or the data as the propagation of carrier wave a part are believed
Number, wherein carrying computer-readable program code.The data-signal of this propagation can take various forms, including but not
It is limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer
Any computer-readable medium other than readable storage medium storing program for executing, the computer-readable medium can send, propagate or transmit use
In by the use of instruction execution system, device or device or program in connection.Include on computer-readable medium
Program code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc., Huo Zheshang
Any appropriate combination stated.
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the application, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use
The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box
The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually
It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse
Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding
The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction
Combination realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard
The mode of part is realized.Described unit also can be set in the processor, wherein the title of these units is in certain situation
Under do not constitute restriction to the unit itself.
As on the other hand, present invention also provides a kind of computer-readable medium, which be can be
Included in device described in above-described embodiment;It is also possible to individualism, and without in the supplying device.Above-mentioned calculating
Machine readable medium carries one or more program, when said one or multiple programs are executed by the device, so that should
Device: the service request that receiving terminal apparatus is sent, wherein include in the caching of the terminal device in the service request
The attribute information of target data and the target data;Determine whether the target data is expired based on the attribute information;If so, obtaining
Newest target data handles the service request based on the newest target data, and sending to the terminal device includes the newest target
The response message of data, so that the target data in the caching is replaced with the newest target data by the terminal device.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art
Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic
Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature
Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein
Can technical characteristic replaced mutually and the technical solution that is formed.
Claims (24)
1. a kind of data processing system, which is characterized in that including terminal device and server;
The terminal device is configured to obtain target data from local caching, and sending to server includes the target
The service request of the attribute information of data and the target data, wherein the target data is based on being set using the terminal
The predetermined data of the facility information of the user information of standby user and/or terminal device institute;
The server is configured to determine whether the target data is expired based on the attribute information;If so, obtaining newest
Target data handles the service request based on the newest target data, and Xiang Suoshu terminal device is sent comprising described newest
The response message of target data, so that the target data in the caching is replaced with the newest mesh by the terminal device
Mark data.
2. data processing system according to claim 1, which is characterized in that the server is further configured to ring
The service request, Xiang Suoshu terminal device hair should be handled based on the target data in determining that the target data is not out of date
Send the response message to the service request.
3. data processing system according to claim 1, which is characterized in that be stored with newest number of targets in the server
According to newest attribute information;And
The server is further configured to match the attribute information with the newest attribute information;In response to
It determines that the attribute information is identical as the newest attribute information, determines that the target data is not out of date;In response to described in determination
Attribute information and the newest attribute information be not identical, determines that the target data is expired.
4. data processing system according to claim 3, which is characterized in that the server is further configured to lead to
It crosses following steps and stores the newest attribute information:
Persistently monitor the update of the target data;
It, will be described using updated target data as newest target data in response to listening to the update of the target data
The attribute information of newest target data obtains as newest attribute information and stores the newest attribute information.
5. data processing system according to claim 1, which is characterized in that the server is further configured to lead to
It crosses following steps and obtains the newest target data:
Obtain newest user information and/or latest equipment information;
Preset interface is called, the newest user information and/or the latest equipment information are transmitted to the preset interface, obtained
The newest target data returned to the preset interface.
6. data processing system according to claim 1, which is characterized in that the terminal device is further configured to
In response to not including the target data in the determination caching, Xiang Suoshu server sends initial service request;
The server is further configured to obtain the terminal device pair in response to receiving the initial service request
The target data answered;Based on the target data processing initial service request;It sends to the terminal device comprising described
The initial communication information of target data, so that the terminal device stores the target data in the caching.
7. data processing system according to claim 1, which is characterized in that the terminal device is further configured to
In response to detecting the object run of user's triggering, the target data in the caching is deleted.
8. data processing system described in one of -7 according to claim 1, which is characterized in that the attribute information includes the mesh
Version number and/or the timestamp of data are marked, and, the newest attribute information includes the version number of the newest target data
And/or timestamp.
9. a kind of data processing method, which is characterized in that be applied to server, comprising:
The service request that receiving terminal apparatus is sent, wherein include the caching positioned at the terminal device in the service request
In target data and the target data attribute information, the target data be based on the user for using the terminal device
User information and/or the terminal device the predetermined data of facility information institute;
Determine whether the target data is expired based on the attribute information;
If so, obtaining newest target data, the service request, Xiang Suoshu terminal device are handled based on the newest target data
Send include the newest target data response message so that the terminal device is by the target data in the caching
Replace with the newest target data.
10. data processing method according to claim 9, which is characterized in that the method also includes:
It is not out of date in response to the determination target data, the service request, Xiang Suoshu terminal are handled based on the target data
Equipment sends the response message to the service request.
11. data processing method according to claim 9, which is characterized in that be stored with newest target in the server
The newest attribute information of data;And
It is described to determine whether the target data is expired based on the attribute information, comprising:
The attribute information is matched with the newest attribute information;
It is identical as the newest attribute information in response to the determination attribute information, determine that the target data is not out of date;
It is not identical in response to the determination attribute information and the newest attribute information, determine that the target data is expired.
12. data processing method according to claim 11, which is characterized in that the newest attribute information by walking as follows
Rapid storage:
Persistently monitor the update of the target data;
It, will be described using updated target data as newest target data in response to listening to the update of the target data
The attribute information of newest target data obtains as newest attribute information and stores the newest attribute information.
13. data processing system according to claim 9, which is characterized in that described to obtain newest target data, comprising:
Obtain newest user information and/or latest equipment information;
Preset interface is called, the newest user information and/or the latest equipment information are transmitted to the preset interface, obtained
The newest target data returned to the preset interface.
14. data processing method according to claim 9, which is characterized in that in the clothes that the receiving terminal apparatus is sent
Before business request, the method also includes:
The initial service request sent in response to receiving the terminal device, obtains the corresponding number of targets of the terminal device
According to;
Based on the target data processing initial service request;
The initial communication information comprising the target data is sent to the terminal device, so that the terminal device is described slow
Deposit the middle storage target data.
15. the data processing method according to one of claim 9-14, which is characterized in that the attribute information includes described
The version number of target data and/or timestamp, and, the newest attribute information includes the version number of the newest target data
And/or timestamp.
16. a kind of data processing equipment, which is characterized in that be applied to server, comprising:
First receiving unit is configured to the service request of receiving terminal apparatus transmission, wherein includes institute in the service request
The attribute information of the target data and the target data in the caching of terminal device is stated, the target data is based on using
State the user information of the user of terminal device and/or the predetermined data of facility information institute of the terminal device;
Determination unit is configured to determine whether the target data is expired based on the attribute information;
First transmission unit is configured to if so, newest target data is obtained, based on the newest target data processing clothes
Business request, Xiang Suoshu terminal device send include the newest target data response message so that the terminal device is by institute
The target data stated in caching replaces with the newest target data.
17. data processing equipment according to claim 16, which is characterized in that described device further include:
Second transmission unit is configured in response to determine that the target data is not out of date, handles institute based on the target data
Service request is stated, Xiang Suoshu terminal device sends the response message to the service request.
18. data processing equipment according to claim 16, which is characterized in that be stored with newest target in the server
The newest attribute information of data;And
The determination unit, is further configured to:
The attribute information is matched with the newest attribute information;
It is identical as the newest attribute information in response to the determination attribute information, determine that the target data is not out of date;
It is not identical in response to the determination attribute information and the newest attribute information, determine that the target data is expired.
19. data processing equipment according to claim 18, which is characterized in that the newest attribute information by walking as follows
Rapid storage:
Persistently monitor the update of the target data;
It, will be described using updated target data as newest target data in response to listening to the update of the target data
The attribute information of newest target data obtains as newest attribute information and stores the newest attribute information.
20. data processing equipment according to claim 16, which is characterized in that first transmission unit is matched into one
It is set to and obtains the newest target data as follows:
Obtain newest user information and/or latest equipment information;
Preset interface is called, the newest user information and/or the latest equipment information are transmitted to the preset interface, obtained
The newest target data returned to the preset interface.
21. data processing equipment according to claim 16, which is characterized in that described device further include:
Second receiving unit, is configured in response to receive the initial service request that the terminal device is sent, described in acquisition
The corresponding target data of terminal device;
Processing unit is configured to handle the initial service request based on the target data;
Third transmission unit is configured to send the initial communication information comprising the target data to the terminal device, with
The terminal device is set to store the target data in the caching.
22. data processing equipment described in one of 6-21 according to claim 1, which is characterized in that the attribute information includes institute
Version number and/or the timestamp of target data are stated, and, the newest attribute information includes the version of the newest target data
Number and/or timestamp.
23. a kind of server characterized by comprising
One or more processors;
Storage device is stored thereon with one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real
The now method as described in any in claim 9-15.
24. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that the program is executed by processor
Method of the Shi Shixian as described in any in claim 9-15.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910544534.3A CN110365745B (en) | 2019-06-21 | 2019-06-21 | Data processing system, method, apparatus, server and computer readable medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910544534.3A CN110365745B (en) | 2019-06-21 | 2019-06-21 | Data processing system, method, apparatus, server and computer readable medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110365745A true CN110365745A (en) | 2019-10-22 |
CN110365745B CN110365745B (en) | 2022-08-05 |
Family
ID=68217458
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910544534.3A Active CN110365745B (en) | 2019-06-21 | 2019-06-21 | Data processing system, method, apparatus, server and computer readable medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110365745B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111339464A (en) * | 2020-02-19 | 2020-06-26 | 网易(杭州)网络有限公司 | Data processing method and device, electronic equipment and storage medium |
CN111752960A (en) * | 2020-06-28 | 2020-10-09 | 北京百度网讯科技有限公司 | Data processing method and device |
CN113342837A (en) * | 2021-08-06 | 2021-09-03 | 北京金山云网络技术有限公司 | Data transmission method, device, electronic equipment and computer readable medium |
CN114024982A (en) * | 2021-11-03 | 2022-02-08 | 南京炫佳网络科技有限公司 | Information transmission method, service server, terminal device, system and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1794721A (en) * | 2005-07-27 | 2006-06-28 | 华为技术有限公司 | Method and device of unloading medium object at appointed time |
US20120005586A1 (en) * | 2010-07-02 | 2012-01-05 | Nokia Corporation | Method and apparatus for dynamic network device start up |
CN103188235A (en) * | 2011-12-30 | 2013-07-03 | 北京神州泰岳软件股份有限公司 | Method and system for group information synchronization between client and server |
CN105933410A (en) * | 2016-04-20 | 2016-09-07 | 乐视控股(北京)有限公司 | Multimedia content providing method and device |
CN106385428A (en) * | 2015-09-15 | 2017-02-08 | 山东华平信息科技有限公司 | Page processing method based on medical health cloud platform and cloud platform |
CN106612250A (en) * | 2015-10-21 | 2017-05-03 | 腾讯科技(深圳)有限公司 | Resource utilization authority judgment system and method |
CN107659542A (en) * | 2016-07-26 | 2018-02-02 | 阿里巴巴集团控股有限公司 | A kind of method for authenticating and server |
-
2019
- 2019-06-21 CN CN201910544534.3A patent/CN110365745B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1794721A (en) * | 2005-07-27 | 2006-06-28 | 华为技术有限公司 | Method and device of unloading medium object at appointed time |
US20120005586A1 (en) * | 2010-07-02 | 2012-01-05 | Nokia Corporation | Method and apparatus for dynamic network device start up |
CN103188235A (en) * | 2011-12-30 | 2013-07-03 | 北京神州泰岳软件股份有限公司 | Method and system for group information synchronization between client and server |
CN106385428A (en) * | 2015-09-15 | 2017-02-08 | 山东华平信息科技有限公司 | Page processing method based on medical health cloud platform and cloud platform |
CN106612250A (en) * | 2015-10-21 | 2017-05-03 | 腾讯科技(深圳)有限公司 | Resource utilization authority judgment system and method |
CN105933410A (en) * | 2016-04-20 | 2016-09-07 | 乐视控股(北京)有限公司 | Multimedia content providing method and device |
CN107659542A (en) * | 2016-07-26 | 2018-02-02 | 阿里巴巴集团控股有限公司 | A kind of method for authenticating and server |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111339464A (en) * | 2020-02-19 | 2020-06-26 | 网易(杭州)网络有限公司 | Data processing method and device, electronic equipment and storage medium |
CN111752960A (en) * | 2020-06-28 | 2020-10-09 | 北京百度网讯科技有限公司 | Data processing method and device |
CN111752960B (en) * | 2020-06-28 | 2023-07-28 | 北京百度网讯科技有限公司 | Data processing method and device |
CN113342837A (en) * | 2021-08-06 | 2021-09-03 | 北京金山云网络技术有限公司 | Data transmission method, device, electronic equipment and computer readable medium |
CN114024982A (en) * | 2021-11-03 | 2022-02-08 | 南京炫佳网络科技有限公司 | Information transmission method, service server, terminal device, system and storage medium |
CN114024982B (en) * | 2021-11-03 | 2024-02-23 | 南京炫佳网络科技有限公司 | Information transmission method, service server, terminal device, system and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110365745B (en) | 2022-08-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110365745A (en) | Data processing system, method, apparatus, server and computer-readable medium | |
CN109697075A (en) | File updating method, system and device | |
CN108337314B (en) | Distributed system, information processing method and device for primary server | |
CN109657174A (en) | Method and apparatus for more new data | |
CN109492013A (en) | Data processing method, device and system applied to data-base cluster | |
CN109582873A (en) | Method and apparatus for pushed information | |
CN110222775A (en) | Image processing method, device, electronic equipment and computer readable storage medium | |
CN109992406A (en) | The method and client that picture requesting method, response picture are requested | |
CN109525855A (en) | Method and apparatus for handling information | |
CN110019552A (en) | User pays close attention to the method and apparatus that state updates | |
CN109766148A (en) | Method and apparatus for Processing Interface method call | |
CN109640176A (en) | Method and apparatus for generating information | |
CN110019263A (en) | Information storage means and device | |
CN109005208A (en) | Method and apparatus for pushed information | |
CN110223179A (en) | The data processing method of fund, device, system, medium | |
CN110401731A (en) | Method and apparatus for distributing content distribution nodes | |
CN110245014A (en) | Data processing method and device | |
CN108920309B (en) | Method and apparatus for handling information | |
CN111626802A (en) | Method and apparatus for processing information | |
CN111143426A (en) | Multi-system user information association method and device | |
CN109492771A (en) | Exchange method, device and system | |
CN109271224A (en) | Method and apparatus for determining position | |
CN110147368A (en) | Data capture method and device for server | |
CN109582487A (en) | Method and apparatus for sending information | |
CN109766392A (en) | Data processing method and device |
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 |