CN110209510A - Data processing method and device for social contact - Google Patents

Data processing method and device for social contact Download PDF

Info

Publication number
CN110209510A
CN110209510A CN201910453684.3A CN201910453684A CN110209510A CN 110209510 A CN110209510 A CN 110209510A CN 201910453684 A CN201910453684 A CN 201910453684A CN 110209510 A CN110209510 A CN 110209510A
Authority
CN
China
Prior art keywords
user
data
interactive operation
default
related 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
Application number
CN201910453684.3A
Other languages
Chinese (zh)
Other versions
CN110209510B (en
Inventor
尹传文
吴峰
郭伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mafengwo Guizhou Tourism Group Co ltd
Original Assignee
Shanghai Yidianshikong Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Yidianshikong Network Co Ltd filed Critical Shanghai Yidianshikong Network Co Ltd
Priority to CN201910453684.3A priority Critical patent/CN110209510B/en
Publication of CN110209510A publication Critical patent/CN110209510A/en
Application granted granted Critical
Publication of CN110209510B publication Critical patent/CN110209510B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/544Buffers; Shared memory; Pipes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/01Social networking

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Economics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a data processing method and device for social contact. The method comprises the steps of detecting whether a first user carries out preset interaction operation on a second user on a social operation interface; if the first user is detected to perform preset interactive operation on the second user, storing related data generated by the first user performing the preset interactive operation on the second user in a local storage medium; and if a preset trigger event of the first user on the social operation interface is monitored, uploading related data generated by the first user performing preset interactive operation on the second user in a local storage medium. The method and the device solve the technical problem that frequent social data operation occupies a large amount of network resources. Through the method and the device, the service related to the social praise is more efficient, more decoupled and more stable.

Description

For social data processing method and device
Technical field
This application involves social interaction server fields, in particular to a kind of for social data processing method and device.
Background technique
In internet social intercourse system, social interactive operation includes thumbing up, cancelling and thumb up etc. operation.
Inventors have found that frequent social activity interactive operation can network communication consumption.Further influence upper line service and user Experience.
Aiming at the problem that operating shortage effective treating method to frequent social data in the related technology, not yet propose have at present The solution of effect.
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.
Detailed description of the invention
The attached drawing constituted part of this application is used to provide further understanding of the present application, so that the application's is other Feature, objects and advantages become more apparent upon.The illustrative examples attached drawing and its explanation of the application is for explaining the application, not Constitute the improper restriction to the application.In the accompanying drawings:
Fig. 1 is according to the application first embodiment for social data processing method flow diagram;
Fig. 2 is according to the application second embodiment for social data processing method flow diagram;
Fig. 3 is according to the application 3rd embodiment for social data processing method flow diagram;
Fig. 4 is according to the application fourth embodiment for social data processing method flow diagram;
Fig. 5 is according to the 5th embodiment of the application for social data processing equipment structural diagram;
Fig. 6 is according to the application first embodiment for social data processing equipment structural diagram;
Fig. 7 is according to the application second embodiment for social data processing equipment structural diagram;
Fig. 8 is according to the application 3rd embodiment for social data processing equipment structural diagram;
Fig. 9 is according to the application fourth embodiment for social data processing equipment structural diagram;
Figure 10 is according to the 5th embodiment of the application for social data processing equipment structural diagram;
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.

Claims (10)

1. a kind of for social data processing method characterized by comprising
Whether detection first user in social operation interface, which has, carries out default interactive operation to second user;
If the first user of detection, which has, carries out default interactive operation to second user, by first user to second user into The locally stored storage medium of related data that the default interactive operation of row generates;
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 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 the related data that default interactive operation generates is carried out to second user.
2. data processing method according to claim 1, which is characterized in that
If the first user of detection, which has, carries out default interactive operation to second user, by first user to second user into Row presets the locally stored storage medium of related data that interactive operation generates
If the first user of detection has second user is thumbed up or is cancelled when thumbing up operation, by first user couple Second user carries out the relevant data that thumb up of object that thumbed up that default interactive operation generates and is stored in local storage medium;
If monitoring first user, will be in locally stored storage medium in the default trigger event of social operation interface First user related data upload that default interactive operation generates carried out to second user include:
If monitor first user social operation interface leave or refresh events, by locally stored storage medium In thumbed up object it is relevant thumb up data upload.
3. data processing method according to claim 1, which is characterized in that when reception is for obtaining first user couple When second user carries out the request for the related data that default interactive operation generates, further includes:
Judge whether to have in the default interactive operation to belong to and thumbs up or cancel that thumb up presetting for operation operation associated;
It is thumbed up or to cancel presetting of thumbing up operation associated if there is belonging to, then by the associated data for presetting operation associated generation It is sent to asynchronous queue simultaneously by associated data storage to database;
Wherein, described to preset operation associated include at least: to thumb up operation so that the associated data occurs by thumbing up or cancelling It is operation associated when update.
4. data processing method according to claim 1, which is characterized in that by the association for presetting operation associated generation Data are sent to asynchronous queue for associated data storage to database simultaneously, further includes:
Using log monitoring mechanism, the asynchronous queue is monitored;
In case of exception, then repair place is carried out according to the associated data of the asynchronous queue's log to storage to database Reason.
5. data processing method according to claim 1, which is characterized in that grasped if monitoring first user in social activity Make the default trigger event at interface, then presets first user in locally stored storage medium to second user The related data that interactive operation generates, which is uploaded and stored to preset cache system, includes:
First user in locally stored storage medium is subjected to the correlation that default interactive operation generates to second user Data are submitted to server and store related data to caching system, so that when receiving for obtaining first user to the When two users carry out the request for the related data that default interactive operation generates, last updated point is read by the caching system Praise data.
6. a kind of for social data processing equipment characterized by comprising
Whether detection module has for detecting the first user in social operation interface and carries out default interaction behaviour to second user Make;
Storage module, for detect the first user have default interactive operation is carried out to second user when, then described first is used Family carries out the locally stored storage medium of related data that default interactive operation generates to second user;
Upload and asynchronous process module, for monitoring first user in the default trigger event of social operation interface, First user in locally stored storage medium is then subjected to the dependency number that default interactive operation generates to second user It by related data while being sent to asynchronous queue simultaneously according to uploading and storing to preset cache system and stores the related data To database;
Module for reading and writing, for carrying out the phase that default interactive operation generates to second user for obtaining first user when reception 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.
7. data processing equipment according to claim 6, which is characterized in that the storage module includes: the first processing list Member, for detect the first user have second user is thumbed up or cancel thumb up operation when, then by first user The relevant data that thumb up of object that thumbed up that default interactive operation generates are carried out to second user and are stored in local storage medium In;
The uploading module includes: the second processing unit, if for monitor first user social operation interface from It opens or refresh events, the being thumbed up relevant data that thumb up of object in locally stored storage medium is uploaded.
8. data processing equipment according to claim 6, which is characterized in that further include: asynchronous queue's processing module, it is described Asynchronous queue's processing module includes:
Judging unit thumbs up the default association of operation for judging whether to have in the default interactive operation to belong to thumb up or cancel Operation;
Associative cell then presets operation associated production for described for belonging to that thumb up or cancel presetting of thumbing up operation associated having Raw associated data is sent to asynchronous queue for associated data storage to database simultaneously;
Wherein, described to preset operation associated include at least: to thumb up operation so that the associated data occurs by thumbing up or cancelling It is operation associated when update.
9. data processing equipment according to claim 8, which is characterized in that further include: asynchronous queue's monitoring module, it is described Asynchronous queue's monitoring module includes:
Asynchronous queue's log collection unit monitors the asynchronous queue for using log monitoring mechanism;
Unit is repaired, in case of exception, then arriving the association of database to storage according to asynchronous queue's log Data carry out repair process.
10. data processing equipment according to claim 6, which is characterized in that upload and asynchronous process module includes:
Updating unit, for first user in locally stored storage medium to be carried out default interaction behaviour to second user 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.
CN201910453684.3A 2019-05-28 2019-05-28 Data processing method and device for social contact Active CN110209510B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910453684.3A CN110209510B (en) 2019-05-28 2019-05-28 Data processing method and device for social contact

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910453684.3A CN110209510B (en) 2019-05-28 2019-05-28 Data processing method and device for social contact

Publications (2)

Publication Number Publication Date
CN110209510A true CN110209510A (en) 2019-09-06
CN110209510B CN110209510B (en) 2021-10-15

Family

ID=67789162

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910453684.3A Active CN110209510B (en) 2019-05-28 2019-05-28 Data processing method and device for social contact

Country Status (1)

Country Link
CN (1) CN110209510B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109683786A (en) * 2018-12-25 2019-04-26 北京微播视界科技有限公司 Update method, electronic equipment and the computer storage medium of user interface information
CN110995781A (en) * 2019-11-01 2020-04-10 腾讯科技(深圳)有限公司 Praise information processing method, device and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103116634A (en) * 2012-06-12 2013-05-22 上海雷腾软件有限公司 System for supporting high concurrent cache task queue and asynchronous batch operation method thereof
CN105577810A (en) * 2015-12-30 2016-05-11 青岛海尔智能家电科技有限公司 Flexible service method, device and system for open interface
CN106033648A (en) * 2015-03-13 2016-10-19 浙江成瑞软件科技有限公司 Cloud-platform-based interactive system, interactive cooperative education system, and method thereof
CN106302750A (en) * 2016-08-17 2017-01-04 北京奇虎科技有限公司 A kind of show the method for user interface interaction content, device, server and system
CN106484738A (en) * 2015-09-01 2017-03-08 腾讯科技(深圳)有限公司 A kind of page processing method and device
EP3346379A1 (en) * 2017-01-09 2018-07-11 Sap Se Database management system with dynamic allocation of database requests

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103116634A (en) * 2012-06-12 2013-05-22 上海雷腾软件有限公司 System for supporting high concurrent cache task queue and asynchronous batch operation method thereof
CN106033648A (en) * 2015-03-13 2016-10-19 浙江成瑞软件科技有限公司 Cloud-platform-based interactive system, interactive cooperative education system, and method thereof
CN106484738A (en) * 2015-09-01 2017-03-08 腾讯科技(深圳)有限公司 A kind of page processing method and device
CN105577810A (en) * 2015-12-30 2016-05-11 青岛海尔智能家电科技有限公司 Flexible service method, device and system for open interface
CN106302750A (en) * 2016-08-17 2017-01-04 北京奇虎科技有限公司 A kind of show the method for user interface interaction content, device, server and system
EP3346379A1 (en) * 2017-01-09 2018-07-11 Sap Se Database management system with dynamic allocation of database requests

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109683786A (en) * 2018-12-25 2019-04-26 北京微播视界科技有限公司 Update method, electronic equipment and the computer storage medium of user interface information
CN110995781A (en) * 2019-11-01 2020-04-10 腾讯科技(深圳)有限公司 Praise information processing method, device and system

Also Published As

Publication number Publication date
CN110209510B (en) 2021-10-15

Similar Documents

Publication Publication Date Title
CN103404193B (en) The connection that adjustment data transmission is established with the transmission being optimized for through wireless network
CN108134691A (en) Model building method, Internet resources preload method, apparatus, medium and terminal
CN108400946B (en) It is a kind of for reducing the method, apparatus, system and medium of Internet traffic
CN108156265B (en) A kind of application control method and mobile device
US8549101B2 (en) Portable embedded local server for write-through cache
CN103620576B (en) It is applicable to the caching of mobile applications behavior and network condition
CN106664254A (en) Optimizing network traffic management in a mobile network
CN109120461B (en) A kind of service feature end-to-end monitoring method, system and device
CN105357246B (en) Caching method based on information centre's network and system
CN106657349A (en) Message subscription processing device, system and method
CN103686354B (en) Smart television terminal and method for counting reporting key use behaviors
CN102273167A (en) Method and system for data management in peer-to- peer network
CN110209510A (en) Data processing method and device for social contact
CN109740089A (en) Collecting method, device, system, readable storage medium storing program for executing and electronic equipment
CN109190070A (en) A kind of data processing method, device, system and application server
CN106060909A (en) Network access method and mobile terminal
CN108965587A (en) A kind of message prompt method, device and equipment
CN107391276A (en) Distributed monitor method, interception control device and system
CN107450952B (en) Using management-control method, device, storage medium and electronic equipment
CN106403186A (en) Household air conditioner energy consumption comparison system based on social platform
CN109361525A (en) Restart method, apparatus, controlling terminal and medium that distributed deployment services more
CN108540356B (en) Processing method and processing apparatus
CN106649856A (en) Database access device, system and method
CN106209412A (en) Resource monitoring system and method thereof
CN108763046A (en) Thread operation and monitoring method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 200135 Room 308, floor 3, unit 2, No. 231, Expo Village Road, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai

Patentee after: Wheel interconnection technology (Shanghai) Co.,Ltd.

Address before: 200125 Room 501, 5 / F, building 3, 3601 Dongfang Road, Pudong New Area, Shanghai

Patentee before: SHANGHAI YIDIAN SPACE NETWORK Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220511

Address after: 200233 room 802b, building 2, 2570 Hechuan Road, Minhang District, Shanghai

Patentee after: SHANGHAI CHELUN INTERNET SERVICES Co.,Ltd.

Address before: 200135 Room 308, floor 3, unit 2, No. 231, Expo Village Road, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai

Patentee before: Wheel interconnection technology (Shanghai) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20221123

Address after: No. 407, 4th Floor, Digital Content Industrial Park, Building 19, Group A3-3, Yuncheng Shangpin, Yuncheng Street, Baiyun District, Guiyang City, Guizhou Province, 550000

Patentee after: Mafengwo (Guizhou) Tourism Group Co.,Ltd.

Address before: 200233 room 802b, building 2, 2570 Hechuan Road, Minhang District, Shanghai

Patentee before: SHANGHAI CHELUN INTERNET SERVICES Co.,Ltd.