Summary of the invention
The main purpose of the application is to provide a kind of data processing method and device for social activity, to solve to frequent
The problem of social data operation lacks effective treating method.
To achieve the goals above, it according to the one aspect of the application, provides a kind of for social data processing side
Method.
According to the application for social data processing method, comprising: detection first user in social operation interface
Whether have and default interactive operation is carried out to second user;If the first user of detection, which has, carries out default interaction behaviour to second user
Make, then first user is subjected to the locally stored storage of related data that default interactive operation generates to second user and be situated between
Matter;If monitoring first user, will be in locally stored storage medium in the default trigger event of social operation interface
First user related data that default interactive operation generates is carried out to second user upload and store to preset cache system
Related data is sent to asynchronous queue for related data storage to database by system simultaneously simultaneously;When reception is for obtaining
When stating the request for the related data that the first user preset to second user interactive operation generation, read from the caching system
First user is taken to carry out the related data that default interactive operation generates to second user.
Further, if the first user of detection, which has, carries out default interactive operation to second user, described first is used
If it includes: detection first that family, which carries out the locally stored storage medium of related data that default interactive operation generates to second user,
User, which has, to thumb up second user or cancels when thumbing up operation, then presets first user to second user
The relevant data that thumb up of object that thumbed up that interactive operation generates are stored in local storage medium;If monitoring described first
User social operation interface default trigger event, then by first user in locally stored storage medium to second
If it includes: to monitor first user in social operation interface that user, which carries out the related data upload that default interactive operation generates,
Leave or refresh events, by locally stored storage medium being thumbed up object it is relevant thumb up data upload.
Further, when reception carries out the phase that default interactive operation generates to second user for obtaining first user
When closing the request of data, further includes: judge whether to have in the default interactive operation to belong to thumb up or cancel and thumb up the pre- of operation
If operation associated;It if there is belonging to thumbs up or cancels that presetting of thumbing up is operation associated, then preset operation associated generation for described
Associated data is sent to asynchronous queue for associated data storage to database simultaneously;Wherein, it is described preset it is operation associated extremely
It less include: to thumb up operation so that operation associated when the associated data updates by thumbing up or cancelling.
Further, by the associated data for presetting operation associated generation while asynchronous queue is sent to by the association
Data are stored to database, further includes: are used log monitoring mechanism, monitored the asynchronous queue;In case of exception, then basis
Asynchronous queue's log carries out repair process to the associated data of storage to database.
Further, it if monitoring first user in the default trigger event of social operation interface, will be stored in
The related data that first user in local storage medium carries out default interactive operation generation to second user is uploaded and is deposited
Storage to preset cache system includes: that first user in locally stored storage medium is carried out default friendship to second user
The related data that interoperability generates is submitted to server and stores related data to caching system, so that when receiving for obtaining
When first user carries out the request for the related data that default interactive operation generates to second user, pass through the caching system
It reads and last updated thumbs up data.
To achieve the goals above, it according to the another aspect of the application, provides a kind of for social data processing dress
It sets.
What it is according to the application includes: detection module for social data processing equipment, operates boundary in social activity for detecting
Whether the first user, which has, on face carries out default interactive operation to second user;Storage module, for having pair detecting the first user
When second user carries out default interactive operation, then first user is subjected to the phase that default interactive operation generates to second user
Data storage is closed in local storage medium;Upload and asynchronous process module, for monitoring first user in social activity operation
When the default trigger event at interface, then first user in locally stored storage medium presets second user
The related data that interactive operation generates uploads and stores to preset cache system while by related data while being sent to asynchronous team
Column store the related data to database;Module for reading and writing, for being used for obtaining first user second when reception
When family carries out the request for the related data that default interactive operation generates, first user is read from the caching system to the
Two users carry out the related data that default interactive operation generates.
Further, the storage module includes: first processing units, for having in the first user of detection to second user
It is thumbed up or is cancelled when thumbing up operation, then first user is subjected to the quilt that default interactive operation generates to second user
The relevant data that thumb up of object are thumbed up to be stored in local storage medium;The uploading module includes: the second processing unit, is used
If in monitor first user social operation interface leave or refresh events, will be in locally stored storage medium
Thumbed up object it is relevant thumb up data upload.
Further, device further include: asynchronous queue's processing module, asynchronous queue's processing module include: that judgement is single
Member thumbs up or cancels that thumb up presetting for operation operation associated for judging whether to have in the default interactive operation to belong to;Association
Unit, for belonging to that thumb up or cancel presetting of thumbing up operation associated having, then by the association for presetting operation associated generation
Data are sent to asynchronous queue for associated data storage to database simultaneously;Wherein, described preset operation associated is at least wrapped
It includes: thumbing up operation so that operation associated when the associated data updates by thumbing up or cancelling.
Further, device further include: asynchronous queue's monitoring module, asynchronous queue's monitoring module include: asynchronous team
Liege will acquisition unit monitors the asynchronous queue for using log monitoring mechanism;Unit is repaired, in case of different
Often, then repair process is carried out according to the associated data of the asynchronous queue's log to storage to database.
Further, it uploads and asynchronous process module includes: updating unit, for will be in locally stored storage medium
First user carries out the related data that default interactive operation generates to second user and is submitted to server and by related data
Caching system is stored, so as to carry out what default interactive operation generated to second user for obtaining first user when receiving
When the request of related data, data are thumbed up by the way that caching system reading is last updated.
In the embodiment of the present application for social data processing method and device, using detection in social operation interface
Whether the first user has the mode that default interactive operation is carried out to second user, if had by detecting the first user to the second use
Family carries out default interactive operation, then first user is carried out the related data that default interactive operation generates to second user and stored up
There are local storage mediums, monitor first user in the default trigger event of social operation interface if reached, incite somebody to action
First user in locally stored storage medium carries out second user in the related data that default interactive operation generates
It passes and stores to preset cache system and by related data while being sent to asynchronous queue simultaneously and store the related data to number
According to library;When receiving the request for carrying out the related data that default interactive operation generates to second user for obtaining first user
When, first user is read from the caching system, and related data that default interactive operation generates is carried out to second user
Purpose, thus realize more efficiently, more decoupling and meanwhile service more stable technical effect, and then solve frequently social activity number
The technical issues of occupying a large amount of Internet resources according to operation.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application
Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only
The embodiment of the application a part, instead of all the embodiments.Based on the embodiment in the application, ordinary skill people
Member's every other embodiment obtained without making creative work, all should belong to the model of the application protection
It encloses.
It should be noted that the description and claims of this application and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to embodiments herein described herein.In addition, term " includes " and " tool
Have " and their any deformation, it is intended that cover it is non-exclusive include, for example, containing a series of steps or units
Process, method, system, product or equipment those of are not necessarily limited to be clearly listed step or unit, but may include without clear
Other step or units listing to Chu or intrinsic for these process, methods, product or equipment.
In this application, term " on ", "lower", "left", "right", "front", "rear", "top", "bottom", "inner", "outside",
" in ", "vertical", "horizontal", " transverse direction ", the orientation or positional relationship of the instructions such as " longitudinal direction " be orientation based on the figure or
Positional relationship.These terms are not intended to limit indicated dress primarily to better describe the application and embodiment
Set, element or component must have particular orientation, or constructed and operated with particular orientation.
Also, above-mentioned part term is other than it can be used to indicate that orientation or positional relationship, it is also possible to for indicating it
His meaning, such as term " on " also are likely used for indicating certain relations of dependence or connection relationship in some cases.For ability
For the those of ordinary skill of domain, the concrete meaning of these terms in this application can be understood as the case may be.
In addition, term " installation ", " setting ", " being equipped with ", " connection ", " connected ", " socket " shall be understood in a broad sense.For example,
It may be a fixed connection, be detachably connected or monolithic construction;It can be mechanical connection, or electrical connection;It can be direct phase
It even, or indirectly connected through an intermediary, or is two connections internal between device, element or component.
For those of ordinary skills, the concrete meaning of above-mentioned term in this application can be understood as the case may be.
The data processing method and device for social activity in the embodiment of the present application, may be significantly in following several respects
Promotion: 1) it is more efficient: not need frequently with server-side interaction, server-side processing thumbs up association requests ability and is substantially improved.2)
More decouple: server-side is stored in cache systems thumbing up relevant hot spot data, other business associations are little
Operation, which is all placed in asynchronous queue, to be handled.3) user experience is more preferable: most due to reducing the interaction with server-side
It thumbs up interrelated logic all locally to be completed by client, user experience can be more smooth.4) it services more stable: asynchronous due to using
Logic is handled, the synchronous behavior that thumbs up becomes more light weight, will not handle because of the business of too many complexity, cause more to anticipate
Outer behavior occurs.
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.
As shown in Figure 1, this method includes the following steps, namely S102 to step S108:
Step S102, whether detection first user in social operation interface, which has, carries out default interaction behaviour to second user
Make;
First user, the second user refer to the user that can mutually carry out social operation in social networks.
I.e. described first user can interact operation to the second user, while the second user can also be to described first
User interacts operation.
The social activity operation interface can be upper application program or browser of terminal etc., in embodiments herein
And without specifically limiting, as long as being capable of social operation interface requirement.
Step S104 is used if the first user of detection, which has, carries out default interactive operation to second user by described first
Family carries out the locally stored storage medium of related data that default interactive operation generates to second user;
The related data that the default interactive operation generates is used for locally stored storage medium.
It should be noted that the local storage medium is in embodiments herein and without specifically limiting, ability
Field technique personnel can select according to the actual situation.
Step S106 will be stored in if monitoring first user in the default trigger event of social operation interface
The related data that first user in local storage medium carries out default interactive operation generation to second user is uploaded and is deposited
Related data is sent to asynchronous queue for related data storage to database simultaneously to preset cache system by storage simultaneously;
Step S108 carries out the phase that default interactive operation generates to second user for obtaining first user when receiving
When closing the request of data, first user is read from the caching system, default interactive operation generation is carried out to second user
Related data.
Monitoring first user can be by running background correlation in the default trigger event of social operation interface
Oracle listener carries out the monitoring of default trigger event.
The related data that the default interactive operation generates, operating time of format, data including data, data class
Type and calling interface information etc..
Specifically, above-mentioned steps are related to thumbing up data high-speed read-write strategy based on caching, when by locally stored storage
First user in medium carries out the data that the related data that default interactive operation generates uploads to second user and is submitted to
After server-side, server-side stores the data to caching system for example, redis, memcached etc., all acquisitions thumb up data
Request all will thumb up data from the reading of caching system the inside is newest.Specifically, it is provided in the above method and is based on being locally stored
Social interaction data mode, when user thumb up or cancel the behavior of thumbing up social activity interaction when, pass through local
Equipment will be thumbed up the relevant data that thumb up of object and is stored in local storage medium, and whole process is not all needed with service
Interaction is done at end, until can monitor current operation circle in the application program of client when user leaves current operation interface
Event or interface refresh events are left in face, and when the event is triggered, client application is again equipment local
The data that thumb up of storage are sent to server-side.After end success response to be serviced, client can be issued to server-side and be requested, and be pulled
It is newest to thumb up data.
It can be seen from the above description that the application realizes following technical effect:
Using detection, whether the first user has to second user progress in social operation interface in the embodiment of the present application
The mode of default interactive operation carries out default interactive operation to second user if had by the first user of detection, will be described
First user carries out the locally stored storage medium of related data that default interactive operation generates to second user, if reached
First user is monitored in the default trigger event of social operation interface, then by described in locally stored storage medium
The related data that one user carries out default interactive operation generation to second user uploads and stores to preset cache system while inciting somebody to action
Related data is sent to asynchronous queue for related data storage to database simultaneously;It is used when receiving for obtaining described first
When family carries out the request for the related data that default interactive operation generates to second user, described the is read from the caching system
One user carries out the purpose for the related data that default interactive operation generates to second user, to realize more efficiently, more
It decouples while servicing more stable technical effect, and then solve the technology that frequent social data operation occupies a large amount of Internet resources
Problem.
According to the embodiment of the present application, as preferred in the present embodiment, as shown in Fig. 2, if the first user of detection has pair
Second user carries out default interactive operation, then first user is carried out the correlation that default interactive operation generates to second user
Data storage includes: in local storage medium
Step S202 thumbs up second user or cancels when thumbing up operation if the first user of detection has, will
First user carries out the relevant data that thumb up of object that thumbed up that default interactive operation generates to second user and is stored in this
In the storage medium on ground;
Specifically, when user thumbs up or cancel thumb up behavior when, local device will be thumbed up object correlation
The data that thumb up be stored in local storage medium process and all do not need to do interaction with server-side.
If monitoring first user in the default trigger event of social operation interface, locally stored storage is situated between
First user in matter carries out the related data upload that default interactive operation generates to second user and includes:
Step S204, if monitor first user social operation interface leave or refresh events, will store
The being thumbed up relevant data that thumb up of object in local storage medium upload.
Specifically, until client application can monitor current operation when user leaves current operation interface
Event or interface refresh events are left in interface, and when the event is triggered, client application is again equipment sheet
The data that thumb up of ground storage are sent to server-side.After end success response to be serviced, client can be issued to server-side and be requested, and be drawn
It takes and newest thumbs up data.
It should be noted that the caching system is in embodiments herein and without specifically limiting, as long as can expire
Sufficient memory requirement.
According to the embodiment of the present application, as preferred in the present embodiment, first user carries out second user pre-
If the locally stored storage medium of related data that interactive operation generates includes: to carry out first user in advance to second user
If the related data that interactive operation generates is stored in following any or a variety of storage mediums: the local data of application program
Library, local file;Cookie in H5, local storage is locally stored.
Specifically, may include application client local data base, local file or H5 in cookie,
Local storage, but specific storage medium is not defined in embodiments herein, those skilled in the art can
To be selected according to the actual situation.
According to the embodiment of the present application, as preferred in the present embodiment, as shown in figure 3, when receiving for obtaining described the
When one user carries out the request for the related data that default interactive operation generates to second user, further includes:
Whether step S302, judge to have in the default interactive operation to belong to and thumb up or cancel the default association for thumbing up operation
Operation;
Step S304 is thumbed up or to cancel presetting of thumbing up operation associated if there is belonging to, then by it is described preset it is operation associated
The associated data of generation is sent to asynchronous queue for associated data storage to database simultaneously;
It is described to preset operation associated include at least: to thumb up operation so that the associated data occurs more by thumbing up or cancelling
It is operation associated when new.Specifically, it can be and thumb up relevant business function with thumbing up, cancelling, including but not limited to integral prize
Encourage, message informing, thumb up ranking list data update etc., be placed in asynchronous process task and handled.
Related data that default interactive operation generates is carried out to second user for obtaining first user when receiving
When request, it is also necessary to judge whether to have in the default interactive operation to belong to and thumb up or cancel the default association behaviour for thumbing up operation
Make, is thumbed up or to cancel presetting of thumbing up operation associated if there is belonging to, then by the various associations for presetting operation associated generation
Data are sent to asynchronous queue simultaneously and store the associated data to database, those related datas are also placed in asynchronous queue
It is handled.
According to the embodiment of the present application, as preferred in the present embodiment, as shown in figure 4, presetting operation associated production for described
Raw associated data is sent to asynchronous queue for associated data storage to database simultaneously, further includes:
Step S402 monitors the asynchronous queue using log monitoring mechanism;
Step S404, in case of abnormal, the then association according to asynchronous queue's log to storage to database
Data carry out repair process.
Asynchronous queue uses log monitoring mechanism simultaneously, once task processing is abnormal, can be repaired according to queue log
Multiple processing, guarantees the reliable execution of asynchronous task.Specifically, it by the associated data for presetting operation associated generation while sending
The above-mentioned steps for storing the associated data to database to asynchronous queue are related to thumbing up logical process based on asynchronous queue
Mechanism after the operation for completing data write-in caching system in related read-write operation, is simultaneously sent to corresponding data different
Queue system is walked, after queue system receives data, queuing data is taken out by queue processing client, stores the data to number
According to library.Data in database can be convenient for business scenarios such as data statistics, data sheet generations.At the same time,
He thumbs up relevant business function with thumbing up, cancelling, including but not limited to reward on total mark, message informing, thumb up ranking list data
Update etc., it can also all be placed in asynchronous process task and be handled.
It is appreciated that the database can be mysql, mssql, oracle etc., in embodiments herein not
It is specifically limited, as long as call data storage can be expired.
According to the embodiment of the present application, as preferred in the present embodiment, as shown in figure 5, if monitoring first user
In the default trigger event of social operation interface, then by first user in locally stored storage medium to second user
The related data for carrying out default interactive operation generation, which is uploaded and stored to preset cache system, includes:
First user in locally stored storage medium is carried out default interaction behaviour to second user by step S502
The related data for making to generate is submitted to server and stores related data to caching system, so that described for obtaining when receiving
When first user carries out the request for the related data that default interactive operation generates to second user, read by the caching system
It is last updated to thumb up data.
Data high-speed read-write strategy is thumbed up based on caching, by first user couple in locally stored storage medium
Second user carries out the related data that default interactive operation generates and is submitted to server and stores related data to caching system
Afterwards, server-side stores the data to caching system, all to obtain the request for thumbing up data, will all read most inside caching system
New thumbs up data.
It should be noted that the caching system can be redis, memcached etc., in embodiments herein simultaneously
Without specifically limiting.
It should be noted that step shown in the flowchart of the accompanying drawings can be in such as a group of computer-executable instructions
It is executed in computer system, although also, logical order is shown in flow charts, and it in some cases, can be with not
The sequence being same as herein executes shown or described step.
According to the embodiment of the present application, additionally provide a kind of for implementing the above-mentioned dress for social data processing method
It sets, as shown in fig. 6, the device includes: detection module 10, for detecting whether the first user in social operation interface has to the
Two users carry out default interactive operation;Storage module 20 carries out default interaction to second user for having in the first user of detection
When operation, then first user is subjected to the locally stored storage of related data that default interactive operation generates to second user
Medium;Upload and asynchronous process module 30, for monitoring first user in the default trigger event of social operation interface
When, then first user in locally stored storage medium is subjected to the correlation that default interactive operation generates to second user
Data are uploaded and are stored to preset cache system and by related data while being sent to asynchronous queue simultaneously and deposit the related data
Store up database;Module for reading and writing 40, for carrying out default interaction behaviour to second user for obtaining first user when reception
When making the request of the related data generated, first user is read from the caching system, default friendship is carried out to second user
Interoperate the related data generated.
The first user described in detection module 10, the second user refer in social networks in embodiments herein
The user of social operation can mutually be carried out.I.e. described first user can interact operation to the second user, simultaneously
The second user can also interact operation to first user.
The social activity operation interface can be upper application program or browser of terminal etc., in embodiments herein
And without specifically limiting, as long as being capable of social operation interface requirement.
The related data that interactive operation generates is preset described in the storage module 20 of embodiments herein to be used to be stored in
Local storage medium.
It should be noted that the local storage medium is in embodiments herein and without specifically limiting, ability
Field technique personnel can select according to the actual situation.
First user is monitored in the upload and asynchronous process module 30 of embodiments herein in social operation interface
Default trigger event when can be by carrying out the monitoring of default trigger event in running background associated snoop program.
The related data that the default interactive operation generates, operating time of format, data including data, data class
Type and calling interface information etc..
Specifically, above-mentioned module for reading and writing 40 is related to thumbing up data high-speed read-write strategy based on caching, when will be stored in this
First user in ground storage medium carries out the data that the related data that default interactive operation generates uploads to second user
After being submitted to server-side, server-side stores the data to caching system for example, redis, memcached etc., all acquisitions thumb up
The request of data all will thumb up data from the reading of caching system the inside is newest.Specifically, it is provided in the above method based on this
The mode of the social interaction data of ground storage is led to when user thumbs up or cancel the social activity interaction for the behavior of thumbing up
It crosses local device and will be thumbed up the relevant data that thumb up of object and be stored in local storage medium, whole process does not all need
Interaction is done with server-side, until can monitor currently when user leaves current operation interface in the application program of client
Operation interface leaves event or interface refresh events, and when the event is triggered, client application is again setting
The standby data that thumb up being locally stored are sent to server-side.After end success response to be serviced, client can be issued to server-side and be asked
It asks, pulls and newest thumb up data.
According to the embodiment of the present application, as preferred in the present embodiment, as shown in fig. 7, the storage module includes: first
Processing unit 201, for detect the first user have second user is thumbed up or cancel thumb up operation when, then will be described
First user to second user carry out that default interactive operation generates thumbed up object it is relevant thumb up data be stored in it is local
In storage medium;The upload and asynchronous process module include: the second processing unit 301, if used for monitoring described first
Family social operation interface leave or refresh events, the relevant point of object will be thumbed up in locally stored storage medium
Praise data upload.
In the first processing units 201 of the embodiment of the present application specifically, when user thumbs up or cancel the behavior of thumbing up
When, local device will be thumbed up object it is relevant thumb up data and be stored in local storage medium process be all not required to
Interaction is done with server-side.
In the second processing unit 301 of the embodiment of the present application specifically, until when user leaves current operation interface,
What client application can monitor current operation interface leaves event or interface refresh events, is triggered when the event
When, the data that thumb up that client application is again locally stored equipment are sent to server-side.After end success response to be serviced,
Client can be issued to server-side and be requested, and pulled and newest thumbed up data.
It should be noted that the caching system is in embodiments herein and without specifically limiting, as long as can expire
Sufficient memory requirement.
According to the embodiment of the present application, as preferred in the present embodiment, the storage module 20 by described first for using
Family carries out the related data that default interactive operation generates to second user and is stored in following any or a variety of storage mediums:
Local data base, the local file of application program;Cookie in H5, local storage is locally stored.
According to the embodiment of the present application, as preferred in the present embodiment, as shown in figure 8, device further include: further include: it is different
Queue processing module 50 is walked, asynchronous queue's processing module 50 includes: judging unit 501, for judging the default interaction
Whether have to belong in operation and thumbs up or cancel that thumb up presetting for operation operation associated;Associative cell 502, for thumbing up having to belong to
Or to cancel presetting of thumbing up operation associated, then by the associated data for presetting operation associated generation while being sent to asynchronous queue
By associated data storage to database;Wherein, described to preset operation associated include at least: to thumb up behaviour by thumbing up or cancelling
Make so that operation associated when the associated data updates.
Operation associated include at least is preset described in embodiments herein: thumbing up operation so that institute by thumbing up or cancelling
It states operation associated when associated data updates.Specifically, it can be and thumb up relevant business function with thumbing up, cancelling, wrap
Include but be not limited to reward on total mark, message informing, thumb up the update of ranking list data etc., it is placed in asynchronous process task
Reason.
Related data that default interactive operation generates is carried out to second user for obtaining first user when receiving
When request, it is also necessary to judge whether to have in the default interactive operation to belong to and thumb up or cancel the default association behaviour for thumbing up operation
Make, is thumbed up or to cancel presetting of thumbing up operation associated if there is belonging to, then by the various associations for presetting operation associated generation
Data are sent to asynchronous queue simultaneously and store the associated data to database, those related datas are also placed in asynchronous queue
It is handled.
According to the embodiment of the present application, as preferred in the present embodiment, as shown in figure 9, device further include: monitoring module
60, asynchronous queue's monitoring module 60 includes: asynchronous queue's log collection unit 601, for using log monitoring mechanism, prison
Control the asynchronous queue;Unit 602 is repaired, for if it happens abnormal, then according to asynchronous queue's log to storage to number
Repair process is carried out according to the associated data in library.
Asynchronous queue uses log monitoring mechanism simultaneously, once task processing is abnormal, can be repaired according to queue log
Multiple processing, guarantees the reliable execution of asynchronous task.Specifically, it by the associated data for presetting operation associated generation while sending
The above-mentioned steps for storing the associated data to database to asynchronous queue are related to thumbing up logical process based on asynchronous queue
Mechanism after the operation for completing data write-in caching system in related read-write operation, is simultaneously sent to corresponding data different
Queue system is walked, after queue system receives data, queuing data is taken out by queue processing client, stores the data to number
According to library.Data in database can be convenient for business scenarios such as data statistics, data sheet generations.At the same time,
He thumbs up relevant business function with thumbing up, cancelling, including but not limited to reward on total mark, message informing, thumb up ranking list data
Update etc., it can also all be placed in asynchronous process task and be handled.
It is appreciated that the database can be mysql, mssql, oracle etc., in embodiments herein not
It is specifically limited, as long as call data storage can be expired.
According to the embodiment of the present application, as preferred in the present embodiment, as shown in Figure 10, upload and asynchronous process module 30
Include:
Updating unit 301, it is pre- for carrying out first user in locally stored storage medium to second user
If the related data that interactive operation generates is submitted to server and stores related data to caching system, so as to be used for when receiving
When obtaining the request for the related data that first user preset to second user interactive operation generation, pass through the caching
System reading is last updated to thumb up data.
Data high-speed read-write strategy is thumbed up based on caching, by first user couple in locally stored storage medium
Second user carries out the related data that default interactive operation generates and is submitted to server and stores related data to caching system
Afterwards, server-side stores the data to caching system, all to obtain the request for thumbing up data, will all read most inside caching system
New thumbs up data.
It should be noted that the caching system can be redis, memcached etc., in embodiments herein simultaneously
Without specifically limiting.
Obviously, those skilled in the art should be understood that each module of above-mentioned the application or each step can be with general
Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed
Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored
Be performed by computing device in the storage device, perhaps they are fabricated to each integrated circuit modules or by they
In multiple modules or step be fabricated to single integrated circuit module to realize.In this way, the application be not limited to it is any specific
Hardware and software combines.
The foregoing is merely preferred embodiment of the present application, are not intended to limit this application, for the skill of this field
For art personnel, various changes and changes are possible in this application.Within the spirit and principles of this application, made any to repair
Change, equivalent replacement, improvement etc., should be included within the scope of protection of this application.