CN102694847A - Method and device for capturing user dynamic state in third-party open platform - Google Patents

Method and device for capturing user dynamic state in third-party open platform Download PDF

Info

Publication number
CN102694847A
CN102694847A CN2012101357680A CN201210135768A CN102694847A CN 102694847 A CN102694847 A CN 102694847A CN 2012101357680 A CN2012101357680 A CN 2012101357680A CN 201210135768 A CN201210135768 A CN 201210135768A CN 102694847 A CN102694847 A CN 102694847A
Authority
CN
China
Prior art keywords
user
extracting
priority
open platform
party
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
CN2012101357680A
Other languages
Chinese (zh)
Other versions
CN102694847B (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.)
Beijing Feinno Communication Technology Co Ltd
Original Assignee
Beijing Feinno Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Feinno Communication Technology Co Ltd filed Critical Beijing Feinno Communication Technology Co Ltd
Priority to CN201210135768.0A priority Critical patent/CN102694847B/en
Publication of CN102694847A publication Critical patent/CN102694847A/en
Application granted granted Critical
Publication of CN102694847B publication Critical patent/CN102694847B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method and a device for capturing a user dynamic state in a third-party open platform. The method for capturing the user dynamic state in the third-party open platform provided by the embodiment of the invention comprises the steps of: building a corresponding relation between user identification and user information of a user, storing the user identification by using a polling queue, storing the user information according to the corresponding relation, polling the polling queue, extracting the user information by utilizing the user identification in the polling queue, determining the current user to be captured according to a capture scheduling strategy and the user information, wherein the user information comprises an authorization message bound on the third-party open platform by the user, utilizing the authorization message of the current user to be captured, and capturing the corresponding user dynamic state on the third-party open platform by transferring an API (application programming interface) of the third-party open platform. According to the scheme, the requirement on the performance is reduced while the instantaneity is guaranteed; the generation of overmuch invalid information during capturing is avoided, and the data capturing efficiency is improved.

Description

Grasp the dynamic method and apparatus of user in third party's open platform
Technical field
The present invention relates to Internet technical field, the dynamic method and apparatus of user in particularly a kind of extracting third party open platform.
Background technology
Along with Internet development, increasing internet, applications occurs, and emerging products such as microblogging, social networks have become the part of netizen's life in recent years.In China, the Internet firm that several families are big, for example Sina, Baidu, Taobao and Tengxun etc. also compete in some key areas, and win-win cooperation has become a kind of new development trend.The depth development of cooperation is gone out own existing resources open exactly, utilizes the other side's advantage to develop the business of oneself each other, thereby reaches profit maximization.The principal mode of resources open just is based on the various application of open platform.
Some internet, applications in one side's open platform; Meeting need be carried out deep processing based on the huge volumes of content that partner's open platform provides and handle; For example, some internet, applications in the social platform can be carried out the deep processing processing to the user in the microblogging platform dynamic (Feed).Existing most open platforms all are based on the transmission that caller draws the pattern realization huge volumes of content of (Pull), send request by caller, and Requested Party sends the data to caller according to request.
Existing this processing mode, the content of partner's feedback has comprised too much invalid information usually, not only causes the wasting of resources, and has increased the difficulty of transfer of data; And, if when the user uses the content of partner, go again to obtain these contents, cause retardance bigger, if all users' content is grasped in real time, performance requirement is too high again, the feasibility in reality is less.
Summary of the invention
The dynamic method and apparatus of user in a kind of extracting third party open platform provided by the invention obtains retardance is big, the wasting of resources is more serious problem etc. to solve information in the existing scheme.
For achieving the above object, the embodiment of the invention has adopted following technical scheme:
The embodiment of the invention provides the dynamic method of user in a kind of extracting third party open platform; Set up user's ID and the corresponding relation between the user profile; Utilize snoop queue to store said ID; And store said user profile according to said corresponding relation, said method also comprises:
Said snoop queue is carried out poll; In snoop queue, utilize ID to extract user profile; And confirm the user of current required extracting based on grasping scheduling strategy and user profile, wherein, said user profile comprises the authorization message of user binding on third party's open platform;
Utilize the user's of current required extracting authorization message, through calling the API of third party's open platform, it is dynamic to grasp corresponding user at third party's open platform.
The embodiment of the invention also provides a kind of extracting engine apparatus, and said extracting engine apparatus comprises:
Grasp buffer, be used to set up user's ID and the corresponding relation between the user profile, utilize snoop queue to store said ID, and store said user profile according to said corresponding relation;
Grasp scheduling unit; Be used for said snoop queue is carried out poll; In snoop queue, utilize ID to extract user profile; And confirm the user of current required extracting based on grasping scheduling strategy and user profile; Wherein, said user profile comprises the authorization message of user binding on third party's open platform;
Grasp performance element, be used to utilize the user's of current required extracting authorization message, through calling the API of third party's open platform, it is dynamic to grasp corresponding user at third party's open platform.
The beneficial effect of the embodiment of the invention is:
The embodiment of the invention concerns through the user binding of having set up at open platform and realizes user in the open platform is grasped dynamically that the user who has solved 1,000,000 grades of user bounds dynamically grasps problem.And this programme screens with the user of user profile to required extracting through grasping scheduling strategy, can when guaranteeing real-time, reduce performance demands, and too much invalid information occurs when having avoided extracting, has improved the efficient of data extractings.
Description of drawings
The dynamic method flow diagram of user in a kind of extracting third party open platform that Fig. 1 provides for the embodiment of the invention one;
A kind of the open platform that Fig. 2 provides for the embodiment of the invention two grasps the schematic flow sheet of huge volumes of content from the microblogging open platform;
The structural representation of the user profile that Fig. 3 provides for the embodiment of the invention two;
The snoop queue structural representation that Fig. 4 provides for the embodiment of the invention two;
The logical architecture sketch map of the extracting engine that Fig. 5 provides for the embodiment of the invention two;
The structural representation of the extracting engine apparatus that Fig. 6 provides for the embodiment of the invention three.
Embodiment
For making the object of the invention, technical scheme and advantage clearer, embodiment of the present invention is done to describe in detail further below in conjunction with accompanying drawing.
Referring to Fig. 1, the dynamic method flow diagram of user in a kind of extracting third party open platform that provides for the embodiment of the invention one comprises following processing:
100: set up user's ID and the corresponding relation between the user profile, utilize snoop queue to store said ID, and store said user profile according to said corresponding relation.Concrete, this corresponding relation can adopt Hash (Hash) relation.
101: said snoop queue is carried out poll; In snoop queue, utilize ID to extract user profile; And confirm the user of current required extracting according to grasping scheduling strategy and user profile, wherein, said user profile comprises the authorization message of user binding on third party's open platform.
User to being polled in this programme; Judge according to grasping scheduling strategy and user profile current whether this user's of needs user dynamically grasps (promptly whether need continue real-time extracting to this user); If, the executive real-time grasping manipulation, if not; Wouldn't carry out grasping manipulation to this user, this user's ID is recycled to the tail of the queue of snoop queue.This mode of operation had both been avoided grasping too much invalid information, had satisfied user's real-time demand again simultaneously.
102: utilize the user's of current required extracting authorization message,, grasp corresponding user dynamically (Feed) at third party's open platform through the application programming interfaces (API) that call third party's open platform.
Above-mentioned open platform mainly refers to provide the platform of open interface (Open API).The Internet era, become the service encapsulates of website the series of computation machine to be prone to the opening of recognition data interface and go out, supply the developer to use, this behavior just is called OpenAPI.Through open platform, the website can not only provide the easy access to network (Web) webpage, can also carry out complicated data interaction, converts the Web website into the development platform of equal value with operating system.That the developer can exist based on these, disclosed Web website and develop colourful application.Above-mentioned third party's open platform can be various microbloggings or social network-i i-platform.
The dynamic method of user describes in a kind of extracting third party open platform that provides in the face of the embodiment of the invention two down.
Referring to Fig. 2; Present embodiment is the example explanation with the open platform of being paid close attention to (being referred to as this open platform) from the scene that the microblogging open platform grasps huge volumes of content; There have been user up to a million and microblogging open platform to bind (like the binding that realizes through the OAuth agreement) in this open platform, promptly set up the mandate relation of user and microblogging open platform.The extracting engine function is set on this open platform, accomplishes these 1,000,000 grades of users are grasped dynamically.
Present embodiment considers that grasping is the repetitive process continuously to each authorized user, so in user profile and the whole buffer memorys of required information setting in will grasping so that repeatedly use, improve the efficient of extracting.Specifically comprise following processing:
100: set up user's ID and the corresponding relation between the user profile, utilize snoop queue to store said ID, and store said user profile according to said corresponding relation.
Above-mentioned ID (UserId) is the uniqueness identifying information that the user is provided with, and above-mentioned user profile mainly comprises the authorization message of user at third party's open platform, as inserting sign (AccessToken) and access pin (AccessSecret).The source of user profile can have two kinds, and a kind of is the user profile that stably has been bundled in the user of third party's open platform, and another kind is the information that newly is tied to the user in third party's open platform.
Present embodiment uses the Redis caching server to realize the storage to above-mentioned ID and user profile, and has adopted the storage mode that combines based on chained list (List) and Hash (Hash).Wherein, utilize the chained list of Redis to form one or more snoop queues, user's ID is stored,, can guarantee necessary buffering and obliterated data not through using the mode of formation; Utilize the key-value pair mechanism of Redis to realize the Hash structure, with ID corresponding to the key in the Hash structure (Key), with user profile corresponding to the value in the Hash structure (Value).
This programme can be equipped with different process numbers and snoop queue number to different partner's open platforms and influence each other avoiding, and can the grabbing treatment unification to the less partner of content be configured to simultaneously in one group of process with saving system resource.
Further; Referring to Fig. 3; Except the above-mentioned user profile of authorization message can also comprise the extracting contextual information; This extracting contextual information comprises dynamic quantity, the last time of grasping of grasping priority, last extracting and grasps side-play amount that the dynamic position of user that the said extracting side-play amount indication last time is grasped specifically describes as follows:
1) authorization message (AccessToken and AccessSecret): be through the information of OAuth agreement, obtain the dynamic authority of user of visiting a certain user through this authorization message at open platform with user binding to open platform.
2) grasp side-play amount (FetchOffset): be to grasp the position (side-play amount) of this user when dynamic last time; For example be 1001 user to ID; The dynamic unique identification of last user (FeedId) that grabbed last time at the microblogging open platform is 10001112; Then be recorded in the extracting side-play amount of user profile 10001112, will from 10001112 this skews continue grasp to guarantee the data returned can not repeat when this user is grasped next time; Thereby avoided the appearance of invalid information, reduced required extracting and data quantity transmitted.
3) the last dynamic quantity (LastFetchedCount) that grasps: be the dynamic bar number that grabbed last time.Because it is poor that extracting last time and this grasp life period, this moment, the user possibly have new dynamic generation, as long as be stored in the dynamic bar number greater than FetchOffset among the LastFetchedCount, iteration was carried out in extracting at every turn when this grasped so.
4) the last time of grasping (LastFetchTime): for carrying out the timestamp that grasped last time.
Above-mentioned 3) and 4) for grasping the example of feedback information as a result; Grasping as a result, feedback information can be provided by the open platform of partner; The extracting that other can also be set in user profile as required is feedback information as a result; Such as third party's open platform to the dynamic content of extracting user analyze and feed back to the extracting engine, the extracting content that in user profile, is provided with once writes down this feedback information.
5) grasp priority: the priority that is used for recording user.
Being provided with of user profile content can combine to grasp scheduling strategy and realize; For example; In the time need not realizing grasping scheduling, also can not comprise the last time of grasping in the user profile, thereby improve the flexibility of scheduling according to the time that user's last time is grasped.
101: said snoop queue is carried out poll; Utilize the ID in the snoop queue to extract user profile; And confirm the user of current required extracting according to grasping scheduling strategy and user profile, wherein, said user profile comprises the authorization message of user binding on third party's open platform.
Begin the ID the said snoop queue is carried out poll from team's head; ID according to current poll is extracted user profile; According to grasping scheduling strategy and the user profile of extracting, determine whether and need this user's user dynamically be grasped, be then this user's user dynamically to be carried out grasping manipulation; And behind the grasping manipulation this ID behind the poll is being given back to tail of the queue, continue to begin poll from team's head; Otherwise directly this ID is given back to tail of the queue, continue to begin poll from team's head.
Referring to Fig. 4, present embodiment begins the ID the said snoop queue is carried out poll from team's head (Head), and the ID behind the poll is given back to tail of the queue (Tail).Among Fig. 3 ID is set to 1001,1002,1003 etc. respectively.After promptly ID 1001 polls of team's head being handled; Move to tail of the queue with 1001, then the ID 1002 that is positioned at team's head this moment is carried out poll, move to tail of the queue with 1002 again after poll disposes; Repetitive operation is carried out poll to the ID that is positioned at team's head successively.
This processing mode from giving back tail of the queue after the team great wheel is ask, when adopting a plurality of poll process, helping between a plurality of poll processes not can the phase mutual interference, has avoided different poll processes simultaneously same user to be repeated poll, has improved poll efficient.
Whether the extracting engine function is utilized the ID in the snoop queue from Hash table, to search and is obtained corresponding user profile, call the decision of extracting scheduling strategy then and this user is grasped.The extracting scheduling strategy that this programme provides comprises priority scheduling and priority jump.
Priority scheduling
The extracting priority that present embodiment is different for the user is provided with confirms according to user's extracting priority whether the user belongs to the user of current required extracting.The priority of three kinds of grades for example, can be set from high in the end: first priority (high priority), second priority (normal priority) and the 3rd priority (low priority) according to priority.
If when the current poll user's of institute extracting priority is first priority, confirm that this user belongs to the user of current required extracting, promptly when being polled to the user of first priority, all the user to this user dynamically grasps in real time;
When if the current poll user's of institute extracting priority is second priority, whether whether the interval of judging the time gap current time that last time of the current poll user of institute is grasped greater than second time threshold (as greater than 5 minutes), if; Confirm that this user belongs to the user of current required extracting; If not, this user does not belong to the user of current required extracting, continues to carry out poll; Promptly, whenever grasp once at a distance from second time threshold (as 5 minutes) for the user of second priority;
When if the current poll user's of institute extracting priority is the 3rd priority, whether whether the interval of judging the time gap current time that last time of the current poll user of institute is grasped greater than the 3rd time threshold (as greater than 10 minutes), if; Confirm that this user belongs to the user of current required extracting; If not, this user does not belong to the user of current required extracting, continues to carry out poll; Promptly, whenever grasp once at a distance from the 3rd time threshold (as 10 minutes) for the user of the 3rd priority.
Priority is jumped
Present embodiment is provided with extracting priority with reference to the liveness of user at this open platform and third party's open platform through following mode:
Be provided with one, when the user when just adding the new user of snoop queue, this user's extracting priority is set to first priority.The extracting priority of new user bound is set to high priority, and can new user's ID be added into team's head of snoop queue.
Be provided with two, when the existing subscriber for the user bound of third party's open platform and by during the online user of concern open platform, this user's extracting priority is set to first priority.When the user is the online user of this open platform, think that this user is higher at the liveness of this open platform, this user is added high priority also keep till this user's off-line.
Be provided with three, when the existing subscriber is not the online user of the open platform of paying close attention to; Judge that whether dynamic quantity that last time of this user grasps is greater than liveness threshold value (as greater than 2); If; This user's extracting priority is set to second priority, and if not, this user's extracting priority is set to the 3rd priority.The dynamic bar number of user that grasps the user at third party's open platform when the last time thinks that this user is higher at the liveness of third party's open platform (standing) outward more for a long time, and the user who satisfies this condition is added normal priority.
Be provided with four, when the user does not satisfy the condition of above-mentioned four kinds of settings, user's priority is set to the 3rd priority (low priority).
The above-mentioned priority that is divided into three kinds of grades, second time threshold that is set at 5 minutes, the 3rd time threshold that is set at 10 minutes only are exemplary illustrations, grasping engine function can require concrete numerical value is adjusted according to grasping.
Through above-mentioned four kinds of set-up modes, user's priority is jumped between different grade, thereby grasp the optimization of scheduling to the different scenes of different partners or same partner.
102: utilize the user's of current required extracting authorization message, through the application programming interfaces (API) that call third party's open platform, it is dynamic to grasp corresponding user at third party's open platform.
Referring to Fig. 2; Confirm the user of current required extracting down through above-mentioned steps 101 after; Grasp engine function and call the authorization message of microblogging propelling movement process according to the user of required extracting; Through the interface of microblogging open platform, visit microblogging open platform server, the user who grasps the user from microblogging open platform server is dynamic.
It is dynamic that one or more microblogging extracting processes receive the user that third party's open platforms return, and be passed to dynamic process server (processing intent end) and carry out advanced treating.
Referring to Fig. 5; The logical architecture that has shown extracting engine (Engine); Grasp moving in the engine and be directed against the process group (Processors) that a partner (Partner) is disposed; Priority scheduling, priority jump and sync cap are abstract to be the nucleus module in the logical architecture, following to each cell descriptions in the logical architecture:
Loader (D Loader): main completion is loaded into the authorization message of the user bound of partner in the Redis caching server from database, so that quick poll services;
Miter guide (Director): the operation of a function library with other modules in the support whole system is provided, and accomplishes new user bound and insert snoop queue and push dynamic formation (just descending dynamic queue) to partner;
Snoop queue (User Q): the snoop queue of storage ID;
Up dynamic queue (Mo Feed Q): be used for the user who grabs is dynamically outputed to the processing intent end, i.e. dynamic processor (Feed Worker);
Dynamic processor (Feed Worker): it is dynamic to be used to handle the user who grabs, and just native system is for the dynamic output destination that grabs; Be used for accomplishing dynamic subsequent treatment for grabbing;
Descending dynamic queue (Mt Feed Q): the dynamic synchronization that is used for that this open platform is produced is given the open platform of partner, and present embodiment mainly is illustrated the situation of up dynamic queue, and descending processing is identical with up processing;
Priority scheduling (Dispatch Policy): accomplish scheduling to different priority users;
Priority is jumped (PrioSkipper): the priority adjusting module, to different user adjustment user's priority;
Sync cap abstract (SyncProvider): with the operable interface function of API packaging cost open platform of third party's open platform; Comprise protocol conversion; Ask for an autograph; Synchronously or asynchronous call etc., can realize calling through the function that calls this open platform to the API of third party's open platform.And, can realize the development mode of extensibility to the different different interface functions of partner's encapsulation.Be that spendable form encapsulation obtains said interface function to this open platform for the application programming interfaces (API) with third party's open platform.
Preferably, loader in the above-mentioned extracting engine function and nucleus module can adopt the plug-in unit mode to realize.
From the above mentioned, the embodiment of the invention can reach following beneficial effect at least:
1) solved the extracting problem of 1,000,000 grades of user bounds;
2) avoided the extracting of a large amount of invalid informations also to satisfy user's real-time demand simultaneously through the dispatching algorithm of User Priority, had and grasp performance efficiently;
3) system is scalable strong: only need to realize that to different open platforms the different synchronization interface is abstract, can realize the information of different partners is grasped, can be equipped with different process numbers and number of queues to different partners and influence each other avoiding;
The user of partner that 4) can be simultaneously that content is less grasps unified being configured in one group of process, has saved system resource;
5) with card format dispatching algorithm is provided, transfers excellent so that grasp scheduling to different partners;
6), can guarantee that the buffering and the data of necessity are not lost through using the formation mode.
The embodiment of the invention three also provides a kind of extracting engine apparatus, and referring to Fig. 6, said extracting engine apparatus comprises:
Grasp buffer 61, be used to set up user's ID and the corresponding relation between the user profile, utilize snoop queue to store said ID, and store said user profile according to said corresponding relation;
Grasp scheduling unit 62; Be used for said snoop queue is carried out poll; In snoop queue, utilize ID to extract user profile; And confirm the user of current required extracting based on grasping scheduling strategy and user profile; Wherein, said user profile comprises the authorization message of user binding on third party's open platform;
Grasp performance element 63, be used to utilize the user's of current required extracting authorization message, through the application programming interfaces (API) that call third party's open platform, it is dynamic to grasp corresponding user at third party's open platform.
Concrete; Said extracting buffer 61 is the Redis server; The user profile of this Redis server stores also comprises the extracting contextual information; This extracting contextual information comprises the time of grasping priority, the last dynamic quantity that grasps, last extracting and grasps side-play amount, the last dynamic position of grasping of user of said extracting side-play amount indication;
ID that said Redis server is set up and the corresponding relation between the user profile are the Hash relation.
Further, said extracting scheduling strategy comprises according to user's extracting priority confirming whether the user belongs to the user of current required extracting, and said extracting scheduling unit 62 comprises the priority scheduling module,
Said priority scheduling module is used for when the extracting priority of knowing the current poll user of institute according to user profile is first priority, confirms that this user belongs to the user of current required extracting; When the extracting priority of knowing the current poll user of institute according to user profile is second priority; Whether the interval of judging the time gap current time that last time of the current poll user of institute is grasped is greater than second time threshold; If confirm that this user belongs to the user of current required extracting, if not; This user does not belong to the user of current required extracting, continues to carry out poll; When the extracting priority of knowing the current poll user of institute according to user profile is the 3rd priority; Whether the interval of judging the time gap current time that last time of the current poll user of institute is grasped is greater than the 3rd time threshold; If confirm that this user belongs to the user of current required extracting, if not; This user does not belong to the user of current required extracting, continues to carry out poll;
Wherein, said first priority is greater than said second priority, and said second priority is greater than said the 3rd priority.
Said priority jump module is used for being provided with in the following way extracting priority:
When the user is that this user's extracting priority is set to first priority when just having added the new user of snoop queue; When the existing subscriber be third party's open platform user bound and by during the online user of concern open platform, this user's extracting priority is set to first priority; When the existing subscriber is not the online user of the open platform of paying close attention to; Judge that whether dynamic quantity that last time of this user grasps is greater than the liveness threshold value, if this user's extracting priority is set to second priority; If not, this user's extracting priority is set to the 3rd priority.
Further; Said extracting performance element 63 comprises the sync cap abstract module; Being used for when the user of a plurality of third party's open platforms of needs extracting is dynamic, is interface function of each third party's open platform encapsulation, and; Through calling each interface function, it is dynamic to grasp corresponding user.Said interface function is for spendable form encapsulation obtains to this open platform with the application programming interfaces (API) of third party's open platform
The concrete working method of each unit and module is referring to method embodiment of the present invention among apparatus of the present invention embodiment.
From the above mentioned, the embodiment of the invention concerns through the user binding of having set up at open platform and realizes user in the open platform is grasped dynamically that the user who has solved 1,000,000 grades of user bounds dynamically grasps problem.And this programme screens with the user of user profile to required extracting through grasping scheduling strategy, can when guaranteeing real-time, reduce performance demands, and too much invalid information occurs when having avoided extracting, has improved the efficient of data extractings.
The above is merely preferred embodiment of the present invention, is not to be used to limit protection scope of the present invention.All any modifications of within spirit of the present invention and principle, being done, be equal to replacement, improvement etc., all be included in protection scope of the present invention.

Claims (10)

1. one kind is grasped the dynamic method of user in third party's open platform; It is characterized in that, set up user's ID and the corresponding relation between the user profile, utilize snoop queue to store said ID; And store said user profile according to said corresponding relation, said method also comprises:
Said snoop queue is carried out poll; In snoop queue, utilize ID to extract user profile; And confirm the user of current required extracting based on grasping scheduling strategy and user profile, wherein, said user profile comprises the authorization message of user binding on third party's open platform;
Utilize the user's of current required extracting authorization message, through calling the application programming interfaces API of third party's open platform, it is dynamic to grasp corresponding user at third party's open platform.
2. method according to claim 1; It is characterized in that; Said user profile also comprises the extracting contextual information; This extracting contextual information comprises the time of grasping priority, the last dynamic quantity that grasps, last extracting and grasps side-play amount, the last dynamic position of grasping of user of said extracting side-play amount indication;
ID of being set up and the corresponding relation between the user profile are the Hash relation.
3. method according to claim 2; It is characterized in that; Said extracting scheduling strategy comprises according to user's extracting priority confirming whether the user belongs to the user of current required extracting, saidly confirms that according to grasping scheduling strategy and user profile the user of current required extracting comprises:
When the extracting priority of knowing the current poll user of institute according to user profile is first priority, confirm that this user belongs to the user of current required extracting;
When the extracting priority of knowing the current poll user of institute based on user profile is second priority; Whether the interval of judging the time gap current time that last time of the current poll user of institute is grasped is greater than second time threshold; If; Confirm that this user belongs to the user of current required extracting; If not; This user does not belong to the user of current required extracting, continues to carry out poll;
When the extracting priority of knowing the current poll user of institute based on user profile is the 3rd priority; Whether the interval of judging the time gap current time that last time of the current poll user of institute is grasped is greater than the 3rd time threshold; If; Confirm that this user belongs to the user of current required extracting; If not; This user does not belong to the user of current required extracting, continues to carry out poll;
Wherein, said first priority is greater than said second priority, and said second priority is greater than said the 3rd priority.
4. method according to claim 3 is characterized in that, through following mode extracting priority is set:
When the user is that this user's extracting priority is set to first priority when just having added the new user of snoop queue;
When the existing subscriber be third party's open platform user bound and by during the online user of concern open platform, this user's extracting priority is set to first priority;
When the existing subscriber is not the online user of the open platform of paying close attention to; Judge that whether dynamic quantity that last time of this user grasps is greater than the liveness threshold value, if this user's extracting priority is set to second priority; If not, this user's extracting priority is set to the 3rd priority.
5. method according to claim 3 is characterized in that, said said snoop queue is carried out poll, in snoop queue, utilizes ID to extract user profile, and confirms that according to grasping scheduling strategy and user profile the user of current required extracting comprises:
Begin the ID the said snoop queue is carried out poll from team's head; ID according to current poll is extracted user profile; According to grasping scheduling strategy and the user profile of extracting, determine whether and need this user's user dynamically be grasped, be then this user's user dynamically to be carried out grasping manipulation; And behind the grasping manipulation this ID behind the poll is being given back to tail of the queue, continue to begin poll from team's head; Otherwise directly this ID is given back to tail of the queue, continue to begin poll from team's head.
6. method according to claim 1 is characterized in that, said method also comprises:
When needs grasp user in a plurality of third party's open platforms when dynamic; For the user bound of each third party's open platform is provided with a snoop queue and is interface function of each third party's open platform encapsulation, spendable form encapsulation obtains said interface function to this open platform for the application programming interfaces API with third party's open platform;
Through respectively each snoop queue being carried out poll and calls each interface function, it is dynamic to grasp corresponding user.
7. one kind is grasped engine apparatus, it is characterized in that said extracting engine apparatus comprises:
Grasp buffer, be used to set up user's ID and the corresponding relation between the user profile, utilize snoop queue to store said ID, and store said user profile according to said corresponding relation;
Grasp scheduling unit; Be used for said snoop queue is carried out poll; In snoop queue, utilize ID to extract user profile; And confirm the user of current required extracting based on grasping scheduling strategy and user profile; Wherein, said user profile comprises the authorization message of user binding on third party's open platform;
Grasp performance element, be used to utilize the user's of current required extracting authorization message, through calling the application programming interfaces API of third party's open platform, it is dynamic to grasp corresponding user at third party's open platform.
8. device according to claim 7 is characterized in that, said extracting buffer is the Redis server,
The user profile of said Redis server stores also comprises the extracting contextual information; This extracting contextual information comprises the time of grasping priority, the last dynamic quantity that grasps, last extracting and grasps side-play amount, the last dynamic position of grasping of user of said extracting side-play amount indication;
ID that said Redis server is set up and the corresponding relation between the user profile are the Hash relation.
9. device according to claim 7; It is characterized in that; Said extracting scheduling strategy comprises according to user's extracting priority confirming whether the user belongs to the user of current required extracting, and said extracting scheduling unit comprises priority scheduling module and priority jump module
Said priority scheduling module is used for when the extracting priority of knowing the current poll user of institute according to user profile is first priority, confirms that this user belongs to the user of current required extracting; When the extracting priority of knowing the current poll user of institute according to user profile is second priority; Whether the interval of judging the time gap current time that last time of the current poll user of institute is grasped is greater than second time threshold; If confirm that this user belongs to the user of current required extracting, if not; This user does not belong to the user of current required extracting, continues to carry out poll; When the extracting priority of knowing the current poll user of institute according to user profile is the 3rd priority; Whether the interval of judging the time gap current time that last time of the current poll user of institute is grasped is greater than the 3rd time threshold; If confirm that this user belongs to the user of current required extracting, if not; This user does not belong to the user of current required extracting, continues to carry out poll; Wherein, said first priority is greater than said second priority, and said second priority is greater than said the 3rd priority;
Said priority jump module is used for being provided with in the following way extracting priority:
When the user is that this user's extracting priority is set to first priority when just having added the new user of snoop queue; When the existing subscriber be third party's open platform user bound and by during the online user of concern open platform, this user's extracting priority is set to first priority; When the existing subscriber is not the online user of the open platform of paying close attention to; Judge that whether dynamic quantity that last time of this user grasps is greater than the liveness threshold value, if this user's extracting priority is set to second priority; If not, this user's extracting priority is set to the 3rd priority.
10. device according to claim 7 is characterized in that, said extracting performance element comprises the sync cap abstract module; Be used for when the user of a plurality of third party's open platforms of needs extracting is dynamic; Be interface function of each third party's open platform encapsulation, spendable form encapsulation obtains said interface function to this open platform for application programming interfaces API with third party's open platform, and; Through calling each interface function, it is dynamic to grasp corresponding user.
CN201210135768.0A 2012-05-03 2012-05-03 Method and device for capturing user dynamic state in third-party open platform Active CN102694847B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210135768.0A CN102694847B (en) 2012-05-03 2012-05-03 Method and device for capturing user dynamic state in third-party open platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210135768.0A CN102694847B (en) 2012-05-03 2012-05-03 Method and device for capturing user dynamic state in third-party open platform

Publications (2)

Publication Number Publication Date
CN102694847A true CN102694847A (en) 2012-09-26
CN102694847B CN102694847B (en) 2014-10-22

Family

ID=46860130

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210135768.0A Active CN102694847B (en) 2012-05-03 2012-05-03 Method and device for capturing user dynamic state in third-party open platform

Country Status (1)

Country Link
CN (1) CN102694847B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103729778A (en) * 2013-12-12 2014-04-16 广州市网威信息技术有限公司 Omni-channel advertisement accurate delivery system and method
CN103957245A (en) * 2014-04-22 2014-07-30 北京微众文化传媒有限公司 Method and device for obtaining Internet data
CN104113569A (en) * 2013-04-18 2014-10-22 腾讯科技(深圳)有限公司 Information source dynamic matching method and open platform server
CN104125254A (en) * 2013-04-27 2014-10-29 博雅网络游戏开发(深圳)有限公司 Method and system for obtaining platform user data
CN107819941A (en) * 2017-10-25 2018-03-20 努比亚技术有限公司 Contact person's message fast acquiring method, terminal and computer-readable recording medium
CN109165282A (en) * 2018-08-01 2019-01-08 王冠 A kind of network data grasping means and system
CN109885410A (en) * 2019-01-09 2019-06-14 广州视源电子科技股份有限公司 Message method, device, computer equipment and storage medium
CN112422662A (en) * 2020-11-09 2021-02-26 广州锦行网络科技有限公司 Method for overall scheduling of website global polling request
CN113282815A (en) * 2021-06-11 2021-08-20 上海淇玥信息技术有限公司 Data capture method and device for multiple verification interactions and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040117451A1 (en) * 2002-03-22 2004-06-17 Chung Michael Myung-Jin Methods and systems for electronic mail internet target and direct marketing and electronic mail banner
CN101562621A (en) * 2009-05-25 2009-10-21 阿里巴巴集团控股有限公司 User authorization method and system and device thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040117451A1 (en) * 2002-03-22 2004-06-17 Chung Michael Myung-Jin Methods and systems for electronic mail internet target and direct marketing and electronic mail banner
CN101562621A (en) * 2009-05-25 2009-10-21 阿里巴巴集团控股有限公司 User authorization method and system and device thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘镝,张智江,张尼: "基于国内开放平台的Oauth认证框架研究", 《信息通信技术》, 15 December 2011 (2011-12-15) *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104113569A (en) * 2013-04-18 2014-10-22 腾讯科技(深圳)有限公司 Information source dynamic matching method and open platform server
CN104113569B (en) * 2013-04-18 2018-09-25 腾讯科技(深圳)有限公司 A kind of method and open platform server of Dynamic Matching information source
CN104125254A (en) * 2013-04-27 2014-10-29 博雅网络游戏开发(深圳)有限公司 Method and system for obtaining platform user data
CN104125254B (en) * 2013-04-27 2017-10-13 博雅网络游戏开发(深圳)有限公司 Obtain the method and system of platform user data
CN103729778A (en) * 2013-12-12 2014-04-16 广州市网威信息技术有限公司 Omni-channel advertisement accurate delivery system and method
CN103957245A (en) * 2014-04-22 2014-07-30 北京微众文化传媒有限公司 Method and device for obtaining Internet data
CN103957245B (en) * 2014-04-22 2017-11-28 北京微众文化传媒有限公司 Internet data acquisition methods and device
CN107819941A (en) * 2017-10-25 2018-03-20 努比亚技术有限公司 Contact person's message fast acquiring method, terminal and computer-readable recording medium
CN109165282A (en) * 2018-08-01 2019-01-08 王冠 A kind of network data grasping means and system
CN109885410A (en) * 2019-01-09 2019-06-14 广州视源电子科技股份有限公司 Message method, device, computer equipment and storage medium
CN112422662A (en) * 2020-11-09 2021-02-26 广州锦行网络科技有限公司 Method for overall scheduling of website global polling request
CN113282815A (en) * 2021-06-11 2021-08-20 上海淇玥信息技术有限公司 Data capture method and device for multiple verification interactions and electronic equipment

Also Published As

Publication number Publication date
CN102694847B (en) 2014-10-22

Similar Documents

Publication Publication Date Title
CN102694847A (en) Method and device for capturing user dynamic state in third-party open platform
Song et al. Smart collaborative automation for receive buffer control in multipath industrial networks
CN102170396B (en) QoS control method of cloud storage system based on differentiated service
CN102915254B (en) task management method and device
CN104243481B (en) A kind of method and system of power information acquisition advance data processing
CN102892089A (en) Message pushing method, device and system
WO2023000940A1 (en) Data processing method and apparatus, and network element device, storage medium and program product
CN102469064A (en) Method for implementing communication and communication equipment
CN105681462A (en) Cluster system based on message router, and data communication transfer method
CN105187327A (en) Distributed message queue middleware
CN104253808A (en) Presence method and presence server for instant messaging system
CN107769992B (en) Message parsing and shunting method and device
CN110851248A (en) Asynchronous task data processing method and device and computer readable storage medium
WO2023000936A1 (en) Data processing method, function device and readable storage medium
CN113259415B (en) Network message processing method and device and network server
CN109298937A (en) Document analysis method and the network equipment
CN103678573A (en) Method and system for achieving cache acceleration
CN102148736A (en) Method and system for fusing machine-to-machine (M2M) service platform and next generation service network
CN109600240A (en) Group Communications method and device
CN102932269A (en) Method and device for balancing load
CN1433545A (en) Method and apparatus for anonymous subiject-based addressing
CN101340370B (en) Link selection method and apparatus
CN103179009A (en) Dynamic adaptive calling method of distributed management system
CN103731484B (en) A kind of power save transmission method towards mobile cloud computing and middleware system
CN103297515A (en) Mobile office system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: Room 810, 8 / F, 34 Haidian Street, Haidian District, Beijing 100080

Patentee after: BEIJING D-MEDIA COMMUNICATION TECHNOLOGY Co.,Ltd.

Address before: 100089 Beijing city Haidian District wanquanzhuang Road No. 28 Wanliu new building 6 storey block A room 602

Patentee before: BEIJING D-MEDIA COMMUNICATION TECHNOLOGY Co.,Ltd.