WO2014029332A1 - 一种获取动态消息的方法和装置 - Google Patents

一种获取动态消息的方法和装置 Download PDF

Info

Publication number
WO2014029332A1
WO2014029332A1 PCT/CN2013/081933 CN2013081933W WO2014029332A1 WO 2014029332 A1 WO2014029332 A1 WO 2014029332A1 CN 2013081933 W CN2013081933 W CN 2013081933W WO 2014029332 A1 WO2014029332 A1 WO 2014029332A1
Authority
WO
WIPO (PCT)
Prior art keywords
user
dynamic
predetermined time
time period
message
Prior art date
Application number
PCT/CN2013/081933
Other languages
English (en)
French (fr)
Inventor
罗茂政
张�浩
林树扬
郑荣金
杨雍
王志豪
郑闫强
Original Assignee
腾讯科技(深圳)有限公司
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 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Priority to RU2015109286/08A priority Critical patent/RU2595622C1/ru
Priority to EP13831583.3A priority patent/EP2890077B1/en
Priority to KR1020157007322A priority patent/KR101544394B1/ko
Priority to US14/423,586 priority patent/US9396265B2/en
Priority to JP2015527777A priority patent/JP5847361B2/ja
Publication of WO2014029332A1 publication Critical patent/WO2014029332A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9536Search customisation based on social or collaborative filtering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/306User profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/20Services signaling; Auxiliary data signalling, i.e. transmitting data via a non-traffic channel
    • H04W4/21Services signaling; Auxiliary data signalling, i.e. transmitting data via a non-traffic channel for social networking applications

Definitions

  • Embodiments of the present invention relate to the field of Internet application technologies, and in particular, to a method and apparatus for obtaining a dynamic message. Background of the invention
  • the Internet has played an increasingly important role in people's daily life, study and work. Moreover, with the development of the Internet, the Internet is also developing in the direction of mobility and socialization.
  • Social networks the Social Network Service (SNS) play an important role in people's lives. It has become a part of people's lives and has an inestimable impact on people's information acquisition, thinking and life. Social networking has become a window for people to get information, express themselves, and promote marketing.
  • SNS Social Network Service
  • friends In social networks, users learn about each other's latest developments through various social applications (eg, Weibo, blog, personal space). In various social applications, friends often have some dynamic updates, such as posting space logs, sending pictures, issuing new Weibo, making sharing questions, posting schedules, uploading music files, etc. These can be collectively referred to as friends. Has a new dynamic message. In order to keep track of your friends' dynamics and better interactions with your friends, there is usually a need to get your friends' dynamic messages in a timely manner.
  • the friend dynamic message update interval is the same for all users, and it is difficult to personalize the processing for different scenarios and different users. For example, if the user whose current dynamic message update is active is updated, if the update interval is too long, these users will not be able to obtain timely updates of the friends in time, and the user experience will be reduced.
  • the embodiment of the present invention provides a method for obtaining a dynamic message, so as to ensure the dynamic message request of the friend, and reduce the processing load of the server, thereby reducing the processing load of the server.
  • the embodiment of the present invention further provides a device for acquiring a dynamic message, so as to reduce the dynamic message update request amount of the friend and reduce the processing load of the server under the premise of ensuring the real-time performance of the friend dynamic message update.
  • a method for obtaining a dynamic message comprising:
  • the first client of the first user acquires a relationship chain of the first user, where the relationship chain of the first user includes at least one second user;
  • An apparatus for acquiring a dynamic message comprising: a user relationship chain obtaining unit, an activity degree and a message update degree calculating unit, and a dynamic message requesting unit, wherein: the user relationship chain acquiring unit is configured to acquire a relationship chain of the user, wherein the relationship chain of the first user includes at least one second user;
  • the activity level and message update degree calculation unit is configured to determine an activity level of the second user in a first predetermined time period, and determine a dynamic message request time interval reference value based on the activity level; determining the second user a message update degree in a second predetermined time period, and determining a dynamic message request time interval adjustment value based on the message update degree;
  • the dynamic message requesting unit is configured to determine a dynamic message request time interval value by using the dynamic message request time interval reference value and the dynamic message request time interval adjustment value, and request a second according to the dynamic message request time interval value User's dynamic message.
  • the first client of the first user acquires a relationship chain of the first user, where the relationship chain of the first user includes at least one second user; Determining, by the client, the activity level of the second user in the first predetermined time period, and determining a dynamic message request time interval reference value based on the activity level; determining a message update degree of the second user in the second predetermined time period And determining, according to the message update degree, a dynamic message request time interval adjustment value; the first client determining, by using the dynamic message request time interval reference value and the dynamic message request time interval adjustment value, a dynamic message request time interval value, and And requesting the dynamic message of the second user according to the dynamic message request time interval value.
  • the embodiment of the present invention does not need to continuously send a friend dynamic message request to the server, so balance between real-time and service request quantity, which saves cost and ensures real-time acquisition of dynamic messages.
  • FIG. 1 is a schematic diagram of a method for obtaining a dynamic message according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of an exemplary method for obtaining a dynamic message according to an embodiment of the present invention
  • FIG. 3 is a structural diagram of an apparatus for acquiring a dynamic message according to an embodiment of the present invention.
  • FIG. 4 is a structural diagram of an apparatus for acquiring a dynamic message according to another embodiment of the present invention. Mode for carrying out the invention
  • an implementation of determining the dynamic message request time interval value according to the second user dynamic information update situation in the relationship chain of each first user and the first user is proposed.
  • the dynamic message request sent by the first user is reasonably reduced on the premise that the dynamic message updated by the second user in real time is obtained.
  • FIG. 1 is a schematic diagram of a method for acquiring a dynamic message according to an embodiment of the present invention.
  • the method can be performed by the first client of the first user.
  • the first client may be a computing device such as a personal computer or an intelligent terminal used by the first user.
  • the method includes: Step 101: The first client of the first user acquires a first user relationship chain.
  • the relationship chain of the first user includes at least one second user.
  • the second user refers to the friend of the first user.
  • the relationship chain specifically includes user identification information of the second user (for example, a user's QQ account).
  • Various social applications generally obtain information through a user relationship chain, and the user's own relationship chain relationship can be stored in a remote server or in a local terminal. For each user, their own relationship chain is subject to change.
  • the user's own relationship chain is first acquired from a storage medium storing the user's own relationship chain.
  • Step 102 The first client determines an activity level of the second user in the relationship chain of the first user in a first predetermined time period, and determines a dynamic message request time interval reference value based on the activity level; determining the The message update degree of the second user in the second predetermined time period, and determining a dynamic message request time interval adjustment value based on the message update degree.
  • determining two parameters includes determining a dynamic message request time interval reference value, and determining a dynamic message request time interval adjustment value.
  • Dynamic Message The request interval reference value is used to determine the reference value for the interval at which the dynamic message request is sent, and the dynamic message request interval adjustment value is used to adjust the dynamic message request interval reference value.
  • the specific process of determining the dynamic message request time interval reference value may include:
  • the second user updates the dynamic message within the first predetermined time period.
  • the dynamic message refers to the space log published by the user, the sent picture, the sent Weibo, the proposed sharing question, the posted schedule, the uploaded music file, and the like.
  • User friends often update some dynamic messages.
  • the release of a new dynamic message or the modification of a previously published dynamic message or the like is collectively referred to as updating the dynamic information.
  • the second user number of the dynamic message is updated, and the second user number of the dynamic message is updated with the record and the first predetermined time
  • the length of time of the segment calculates the activity of the second user during the first predetermined time period.
  • the activity is a parameter used to determine a dynamic message request time interval reference value. This parameter is related to the number of second users whose dynamic messages are updated. The greater the number of second users whose dynamic messages are updated in the user's own relationship chain, the higher the activity.
  • the first predetermined time period is used to quantitatively evaluate the historical activity level of the second user.
  • the first predetermined period of time may be set to: a continuous period of time from the current moment.
  • the time length can be measured according to the time stamp.
  • the timestamp can be from January 1, 1970 (00:00:00 GMT) to the number of seconds that need to be indicated.
  • the specific meanings or expressions of the time stamps may be changed correspondingly for different application environments and system requirements, and the embodiments of the present invention are not particularly limited.
  • the selection of the first predetermined time period may have various embodiments, which are not limited by the present invention.
  • different lengths of time may be selected as the length of time of the first predetermined time period set, such as 30 minutes, 60 minutes, 2 hours, and the like.
  • the activity M in the first predetermined time period of the second user may be calculated by:
  • the internal dynamic message has an updated number of second users.
  • the first predetermined time period is 10 minutes before the current time (ie, 600 seconds), and the activity reference coefficient is set to 200, in the first predetermined time period.
  • the determined dynamic message request interval reference value is inversely proportional to the activity.
  • determining the dynamic message request time interval reference value based on the activity level includes:
  • A T _ M
  • T is a preset time value.
  • the determined dynamic message request interval reference value A is:
  • Message update is a parameter used to determine the dynamic message request interval adjustment value.
  • the message update is related to the number of dynamic messages that all second users update over a period of time (e.g., within a second predetermined time period).
  • the second predetermined time period is used to quantify the degree of recent activity of the second user.
  • the second predetermined time period may be set to: a time interval between the first user last sent a dynamic message request and the current time to issue a dynamic message request.
  • the time can be measured according to the time stamp.
  • the second predetermined time period may also be set as a time interval between the request closest to the current time and a request before the request.
  • the determined dynamic message request interval adjustment value is proportional to the message update degree. Specifically, determining, by using the dynamic message number and the second predetermined time period, a message update degree of the friend in the second predetermined time period includes:
  • N (n ta) /nb
  • n is a preset message update degree reference coefficient, the value of n is adjustable
  • ta is the second The length of time of the predetermined time period, the value of which is adjustable
  • nb is the number of dynamic message updates of all friends in the friend relationship chain during the second predetermined time period.
  • ⁇ n is 5, and the time interval between the last dynamic message request and the current dynamic message request is 10 seconds, that is, the second predetermined time period is 10 seconds, and the dynamic message request is sent this time.
  • the number of dynamic message updates requested is 10;
  • the dynamic message request time interval adjustment value B is determined based on the message update degree by:
  • ⁇ , where ⁇ is the preset adjustment value reference coefficient, and its value is adjustable.
  • the dynamic message request time interval reference value is related to the historical activity level of the second user in the first user relationship chain
  • the dynamic message request interval adjustment value is related to the recent activity level of the second user in the first user relationship chain.
  • Step 103 The first client determines, by using the dynamic message request time interval reference value and the dynamic message request time interval adjustment value, a dynamic message request time interval value, and according to The dynamic message request interval value requests a dynamic message updated by the second user.
  • the dynamic message request time interval value may be determined, and finally the dynamic message of the second user is requested according to the dynamic message request time interval value.
  • the dynamic message request interval reference value dominates, reflecting the size trend of the dynamic message request interval value; that is, the larger the dynamic message request interval reference value, the larger the dynamic message request interval value should be.
  • the dynamic message request interval adjustment value corrects the dynamic message request interval reference value.
  • the time interval between this time and the next time requesting the dynamic message of the second user is 87.8 seconds.
  • the determined dynamic message request interval value can be set to the timing time by a timing mechanism.
  • the computing device of the first user's client for example, the client or browser on the computing device where the client is located
  • the message and can again determine the interval between requesting the dynamic message of the second user from the server according to the above process, and looping through, and repeating.
  • embodiments of the present invention can be applied to a variety of social applications. For example, embodiments of the present invention can be applied to information management in a social space.
  • the first user can focus on the dynamic information of the second user in the first user relationship chain in real time without affecting the operation of the web page theme page.
  • the browser or client needs to continuously send a request to the server to obtain the second user user data.
  • the server needs to process a large number of query requests.
  • the performance of the server needs to be increased to support the service, which increases system operating costs.
  • FIG. 2 is a schematic diagram of an exemplary method of obtaining a dynamic message in accordance with an embodiment of the present invention.
  • the method includes:
  • Step 201 The first client of the first user acquires a first user relationship chain.
  • Step 202 Obtain a time when each second user in the first user relationship chain has the last update message.
  • Step 203 Determine, according to the time when the second message is updated by each second user in the acquired first user relationship chain, at a preset time (preferably from a current time to a moment before the current time) The number of friends of the dynamic message is updated within the time to obtain the activity of the second user during that time.
  • the dynamic message request time interval reference value is determined based on the activity level.
  • Step 204 Acquire a time when the first user initiates the second user dynamic message request last time, for the determination of the time interval in the subsequent step 206.
  • Step 205 The user initiates a second user dynamic request this time, and acquires a second user dynamic message.
  • Step 206 Determine, according to the time of requesting the second user dynamic message and the time of requesting the second user dynamic message, determine the time interval between the two, and according to the determined The time interval and the number of second user message updates obtained by requesting the second user dynamic message this time calculate the message update degree of the second user.
  • the dynamic message request interval adjustment value is determined according to the degree of message update.
  • Step 207 According to the determined dynamic message request time interval reference value and the dynamic message request time interval adjustment value, the time interval between the user and the next time the friend dynamic message request is sent is obtained. A dynamic message of the second user is requested according to the dynamic message request time interval value.
  • an embodiment of the present invention also provides an apparatus for acquiring a dynamic message.
  • FIG. 3 is a structural diagram of an apparatus for acquiring a dynamic message according to an embodiment of the present invention.
  • the device is located at the first client of the first user.
  • the apparatus includes a user relationship chain acquisition unit 301, an activity and message update degree calculation unit 302, and a dynamic message request unit 303.
  • a user relationship chain obtaining unit 301 configured to acquire a first user relationship chain
  • the activity and message update degree calculation unit 302 is configured to determine an activity level of the second user in the first user relationship chain in the first predetermined time period, and determine a dynamic message request time interval reference value based on the activity level; a message update degree of the second user in the second predetermined time period in the first user relationship chain, and determining a dynamic message request time interval adjustment value based on the message update degree, wherein the relationship chain of the first user includes at least one second User
  • the dynamic message requesting unit 303 is configured to determine a dynamic message request time interval value by using the dynamic message request time interval reference value and the dynamic message request time interval adjustment value, and request a dynamic of the second user according to the dynamic message request time interval value. Message.
  • the activity and message update degree calculation unit 302 is configured to determine whether the second user in the first user relationship chain updates the dynamic message within the first predetermined time period, and if so, the record dynamic message is updated.
  • the number of second users, and use the dynamics of the record The message has an updated second user number and a length of time of the first predetermined time period to calculate an activity level of the second user during the first predetermined time period.
  • m is a preset activity reference coefficient
  • ti is the length of time of the first predetermined time period
  • na is the number of second users whose dynamic messages are updated during the first predetermined time period.
  • the activity and message update degree calculation unit 302 is configured to determine whether the second user in the first user relationship chain updates the dynamic message in the second predetermined time period, and if yes, obtain the first message. The number of dynamic messages of all the second users in the user relationship chain within a predetermined time period, and calculating the message update of the second user in the second predetermined time period by using the dynamic message number and the length of the second predetermined time period And determining a dynamic message request interval adjustment value based on the message update degree, wherein the determined dynamic message request interval adjustment value is in a proportional relationship with the message update degree.
  • n is a preset message update degree reference coefficient
  • ta is the length of time of the second predetermined time period
  • nb is a dynamic message update of all second users in the first user relationship chain during the second predetermined time period number.
  • FIG. 4 is a schematic structural diagram of an apparatus for acquiring a dynamic message according to another embodiment of the present invention.
  • the apparatus includes at least a memory 401 and a processor 402 in communication with the memory, wherein the memory 402 includes a user relationship chain acquisition instruction 4011 executable by the processor 402, and an activity and message update degree calculation instruction 4012. , dynamic message request instruction 4013.
  • the user relationship chain obtaining instruction 4011 is configured to acquire a relationship chain of the first user, where the relationship chain of the first user includes at least one second user;
  • the activity level and message update degree calculation instruction 4012 is configured to determine an activity level of the second user in a first predetermined time period, and determine a dynamic message request time interval reference value based on the activity level; a message update degree of the second user within a second predetermined time period, and determining a dynamic message request time interval adjustment value based on the message update degree;
  • the dynamic message requesting instruction 4013 is configured to determine the dynamic message request time by using the dynamic message request time interval reference value and the dynamic message request time interval adjustment value. Interval, and requesting a dynamic message of the second user according to the dynamic message request interval value.
  • the activity and message update degree calculation instruction 4012 is configured to determine whether the second user updates the dynamic message within the first predetermined time period, and if so, records the second user that updates the dynamic message. Counting, and using the updated number of the second user of the dynamic message and the length of time of the first predetermined time period, calculating the activity of the second user in the first predetermined time period.
  • the activity and message update degree calculation instruction 4012 is configured to calculate the activity level of the second user in the first predetermined time period by:
  • n is the number of second users whose dynamic messages are updated during the first predetermined time period.
  • the activity and message update degree calculation instruction 4012 is configured to calculate the dynamic message request time interval reference value A by:
  • T is a preset time value
  • M is an activity level of the second user in the first predetermined time period
  • the activity and message update degree calculation instruction 4012 is configured to determine whether the second user updates the dynamic message in the second predetermined time period, and if yes, obtain all the second users at the predetermined time. The number of dynamic messages in the segment, and using the length of the dynamic message and the length of the second predetermined time period, calculating a message update degree of the second user in the second predetermined time period, and based on the message The update determines the dynamic message request interval adjustment value.
  • n is a preset message update degree reference coefficient
  • ta is the length of time of the second predetermined time period
  • nb is the number of dynamic message updates of all the second users during the second predetermined time period.
  • the activity and message update degree calculation instruction 4012 is configured to determine the dynamic message request interval adjustment value B by:
  • the first client of the first user acquires the relationship chain of the first user, where the relationship chain of the first user includes at least one second user; Determining, by the client, the activity level of the second user in the first predetermined time period, and determining a dynamic message request time interval reference value based on the activity level; determining a message update degree of the second user in the second predetermined time period, And determining, according to the message update degree, a dynamic message request time interval adjustment value; the first client determining, by using the dynamic message request time interval reference value and the dynamic message request time interval adjustment value, a dynamic message request time interval value, and according to The dynamic message request interval value requests the dynamic message of the second user.
  • the present invention can precisely control the time interval of requesting a dynamic message according to the activity level of the second user. Therefore, under the premise of ensuring the real-time performance of the second user dynamic message update, the second user dynamic message request amount is reasonably reduced, and the processing load of the server is reduced.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明实施方式提出了一种获取动态消息的方法和装置。方法包括:第一用户的第一客户端获取第一用户的关系链,其中所述第一用户的关系链包括至少一个第二用户;所述第一客户端确定该第二用户在第一预定时间段内的活跃度,并基于所述活跃度确定动态消息请求时间间隔基准值;确定该第二用户在第二预定时间段内的消息更新度,并基于所述消息更新度确定动态消息请求时间间隔调整值;所述第一客户端利用所述动态消息请求时间间隔基准值和动态消息请求时间间隔调整值确定动态消息请求时间间隔值,并根据所述动态消息请求时间间隔值请求所述第二用户的动态消息。应用本发明实施方式之后,在实时性和服务请求量之间实现平衡,既节约了成本,又保证了动态消息的实时获取。

Description

一种获取动态消息的方法和装置
技术领域
本发明实施方式涉及互联网应用技术领域, 更具体地, 涉及一种获 取动态消息的方法和装置。 发明背景
随着计算机技术和网络技术的飞速发展, 互联网 (Internet )在人们 的曰常生活、 学习和工作中发挥的作用也越来越大。 而且, 随着互联网 的发展, 互联网也在向移动化、 社交化等方向发展。
社交网络即社交网络服务( SNS , Social Network Service )在人们的 生活中扮演着重要的角色, 它已成为人们生活的一部分, 并对人们的信 息获得、思考和生活产生不可低估的影响。社交网络成为人们获取信息、 展现自我、 营销推广的窗口。
在社交网络中, 用户通过各种社交应用 (例如, 微博, 博客, 个人 空间) 了解彼此的最新动态。 在各种社交应用中, 好友经常会有一些动 态更新, 比如发表空间日志、 发送图片、 发出新的微博、提出分享问题、 贴出日程安排、 上传音乐文件等等, 这些都可以统称为好友具有了新的 动态消息。 为了及时了解好友动态以及与好友更好的交互, 通常会有及 时获取好友动态消息的需求。
在现有技术中, 为了实现向用户实时展现好友动态消息, 基本都采 用了浏览器定时从服务器获取数据的方法, 即当用户处于需要实时展示 好友动态消息的场景时, 用户终端上的浏览器会每隔一个固定的时间 (例如 1分钟) , 向服务器发起一次请求, 来询问是否有新的好友动态 数据可以展示给用户。 然而, 在这种技术中, 至少具有如下缺点:
( 1 )好友动态消息更新时间间隔对于所有用户都是相同的, 4艮难 针对不同的场景和不同的用户个性化处理。 比如, 对于好友当前动态消 息更新活跃的用户, 如果更新时间间隔太长, 会导致这些用户无法及时 获取到好友的及时更新, 而使用户体验降低。
( 2 )难以针对全部用户, 合理设置固定的更新时间间隔值。 如果 更新时间间隔太短, 则请求服务器过于频繁。 对于好友当前动态消息更 新不活跃的用户, 服务器可能返回没有更新的数据, 从而导致产生大量 的空请求, 使得服务器处理负担加重。 然而如果更新时间间隔太长, 又 会导致好友当前动态消息更新活跃的用户无法及时获取到好友的及时 更新, 而使这部分用户体验降低。 发明内容
本发明实施方式提出一种获取动态消息的方法, 以保证好友动态消 息更新实时性的前提下, 合理的减少好友动态消息请求量, 降低了服务 器的处理负担。
本发明实施方式还提出了一种获取动态消息的装置, 以在保证好友 动态消息更新实时性的前提下, 合理的减少好友动态消息更新请求量, 降低了服务器的处理负担。
本发明实施方式的具体方案如下:
一种获取动态消息的方法, 其特征在于, 该方法包括:
第一用户的第一客户端获取第一用户的关系链, 其中所述第一用户 的关系链包括至少一个第二用户;
所述第一客户端确定该第二用户在第一预定时间段内的活跃度, 并 基于所述活跃度确定动态消息请求时间间隔基准值; 确定该第二用户在 第二预定时间段内的消息更新度, 并基于所述消息更新度确定动态消息 请求时间间隔调整值;
所述第一客户端利用所述动态消息请求时间间隔基准值和动态消 息请求时间间隔调整值确定动态消息请求时间间隔值, 并根据所述动态 消息请求时间间隔值请求所述第二用户的动态消息。
一种获取动态消息的装置, 其特征在于, 该装置包括用户关系链获 取单元、 活跃度与消息更新度计算单元, 以及动态消息请求单元, 其中: 所述用户关系链获取单元, 用于获取第一用户的关系链, 其中所述 第一用户的关系链包括至少一个第二用户;
所述活跃度与消息更新度计算单元, 用于确定所述第二用户在第一 预定时间段内的活跃度, 并基于所述活跃度确定动态消息请求时间间隔 基准值; 确定该第二用户在第二预定时间段内的消息更新度, 并基于所 述消息更新度确定动态消息请求时间间隔调整值;
所述动态消息请求单元, 用于利用所述动态消息请求时间间隔基准 值和所述动态消息请求时间间隔调整值确定动态消息请求时间间隔值, 并根据所述动态消息请求时间间隔值请求第二用户的动态消息。
从上述技术方案可以看出, 在本发明实施方式中, 第一用户的第一 客户端获取第一用户的关系链, 其中所述第一用户的关系链包括至少一 个第二用户; 所述第一客户端确定该第二用户在第一预定时间段内的活 跃度, 并基于所述活跃度确定动态消息请求时间间隔基准值; 确定该第 二用户在第二预定时间段内的消息更新度, 并基于所述消息更新度确定 动态消息请求时间间隔调整值; 所述第一客户端利用所述动态消息请求 时间间隔基准值和动态消息请求时间间隔调整值确定动态消息请求时 间间隔值, 并根据所述动态消息请求时间间隔值请求所述第二用户的动 态消息。 由此可见, 应用本发明实施方式之后, 不是针对所有用户统一 设定一个相同的时间间隔值, 而是根据用户的历史特征分别确定动态消 息请求时间间隔值, 因此本发明的控制精度更高, 可以针对各个用户精 确控制时间间隔。
而且, 本发明实施方式无需持续向服务器发出好友动态消息请求, 因此还在实时性和服务请求量之间实现平衡, 既节约了成本, 又保证了 动态消息的实时获取。 附图简要说明
图 1为根据本发明实施方式的获取动态消息的方法示意图; 图 2为根据本发明实施方式获取动态消息的示范性方法示意图; 图 3为根据本发明实施方式的获取动态消息的装置结构图。
图 4为根据本发明另一实施例的获取动态消息的装置结构图。 实施本发明的方式
为使本发明的技术方案和优点更加清楚, 下面结合附图对本发明作 进一步的详细描述。
在本发明实施方式中, 针对社交应用的特点, 提出了一种可以根据 每个第一用户及第一用户的关系链中的第二用户动态信息更新情况, 确 定动态消息请求时间间隔值的实施方式, 从而在保证获得实时地第二用 户更新的动态消息的前提下, 合理的减少第一用户发送的动态消息请求 量。
图 1为根据本发明实施方式的获取动态消息的方法示意图。 该方法 可以第一用户的第一客户端执行。 所述第一客户端可以是第一用户使用 的个人计算机、 智能终端等计算设备。
如图 1所示, 该方法包括: 步骤 101: 第一用户的第一客户端获取第一用户关系链。
其中, 第一用户的关系链包括至少一个第二用户。 该第二用户指该 第一用户的好友。 所述关系链具体包括该第二用户的用户标识信息 (例 如, 用户的 QQ账号)。各种社交应用一般通过用户关系链来获取信息, 用户自身关系链关系可以存储在远端的服务器中, 也可以保存在本地终 端。 对于每个用户而言, 其自身关系链是随时变化的。 在本发明实施方 式中, 首先从存储有用户自身关系链的存储介质中获取用户自身关系 链。
步骤 102: 所述第一客户端确定该第一用户的关系链中的第二用户 在第一预定时间段内的活跃度, 并基于所述活跃度确定动态消息请求时 间间隔基准值; 确定该第二用户在第二预定时间段内的消息更新度, 并 基于所述消息更新度确定动态消息请求时间间隔调整值。
在这里, 具体涉及确定两个参数, 包括确定一个涉及动态消息请求 时间间隔基准值的, 以及确定动态消息请求时间间隔调整值。 动态消息 请求时间间隔基准值用于确定发出动态消息请求的时间间隔的基准值, 而动态消息请求时间间隔调整值用于对动态消息请求时间间隔基准值 进行适应性调整。
在一个实施方式中, 确定动态消息请求时间间隔基准值的具体过程 可以包括:
判断该第二用户在第一预定时间段内是否更新了动态消息。 其中, 动态消息指用户所发表的空间日志、 发送的图片、 发出的微博、 提出的 分享问题、 贴出的日程安排、 上传的音乐文件等等。 用户好友经常会更 新一些动态消息。 将发布了新的动态消息或修改之前已经发布的动态信 息等统称为更新了动态信息。 如果有, 记录更新了动态消息的第二用户 数, 并利用该记录的更新了动态消息的第二用户数与所述第一预定时间 段的时间长度计算第二用户在该第一预定时间段内的活跃度。 所述活跃 度是用于确定动态消息请求时间间隔基准值的参数。 该参数与动态消息 有更新的第二用户数相关。 用户自身关系链中动态消息有更新的第二用 户数目越大, 活跃度越高。
第一预定时间段用于量化评估第二用户的历史活跃程度。 在一个实 施方式中, 第一预定时间段可以设置为: 自当前时刻起, 之前的一段连 续的时间。 在本发明实施方式中, 可以根据时间戳的方式来度量时间长 度。 示范性地, 时间戳可以为自 1970年 1月 1 日 (00:00:00 GMT )至 需要指示的时刻的秒数。 针对不同的应用环境和系统需求, 时间戳的具 体含义或表达形式可能会有相应的变化, 本发明实施方式对此并无特别 限定。 而且, 本领域技术人员可以意识到, 第一预定时间段的选择可以 具有多种实施方式, 本发明不做限定。
而且, 基于具体环境和应用的不同, 可以选择不同的时间长度作为 所设置的第一预定时间段的时间长度, 比如 30分钟、 60分钟、 2小时, 等等。
在一个实施方式中, 可以通过如下方式, 计算第二用户第一预定时 间段内的活跃度 M:
M= ( m X na ) /ti;
m为预先设定的活跃度基准系数, 而且 m的值是可调整的; ti为所 述第一预定时间段的时间长度, ti值是动态可调整的; na为在该第一预 定时间段内动态消息有更新的第二用户数。
举例说明, 假设某第一用户关系链中有 100个第二用户, 第一预定 时间段为当前时刻之前的 10分钟 (即 600秒) , 活跃度基准系数设置 为 200, 在第一预定时间段之内, 该第一用户关系链之中动态消息有更 新的第二用户数为 20个; 则 活跃度 M = ( 200 20 ) /1800 = 2.2。
其中, 所确定的动态消息请求时间间隔基准值与所述活跃度成反比 例关系。 在一个实施方式中, 基于活跃度确定动态消息请求时间间隔基 准值包括:
确定动态消息请求时间间隔基准值 A。
示范性地, A = T _ M, T为预先设定的时间值。
假设 T预先设置为 100秒, 则确定的动态消息请求时间间隔基准值 A为:
100 - 2.2 = 97.8秒。
以上详细罗列出确定动态消息请求时间间隔基准值的计算公式, 本 领域技术人员可以意识到, 上述公式仅是示范性的, 并不用于限定本发 明实施方式的保护范围。
下面再描述确定动态消息请求时间间隔调整值的步骤。
在一个实施方式中, 判断该第一用户好友关系链中的第二用户第二 预定时间段内是否有动态消息更新。 如果是, 获取该第一用户的关系链 中所有第二用户在第二预定时间段内更新的动态消息数。 然后, 利用该 更新的动态消息数与所述第二预定时间段的时间长度计算出第二用户 在该第二预定时间段内的消息更新度。 消息更新度是用于确定动态消息 请求时间间隔调整值的参数。 该消息更新度与所有第二用户在一段时间 内 (例如, 第二预定时间段内) 更新的动态消息数相关。
第二预定时间段用于量化评估第二用户的近期活跃程度。 可以将第 二预定时间段设置为: 第一用户上次发出动态消息请求与本次发出动态 消息请求之间的时间间隔。 在本发明实施方式中, 可以根据时间戳的方 式来度量时间。 可选地, 也可以将第二预定时间段设置为距当前时刻最 近的请求与该次请求之前的一次请求之间的时间间隔。 本领域技术人员 可以意识到, 可以通过多种实施方式实现第二预定时间段的选择, 本发 明不做限定。
其中, 所确定的动态消息请求时间间隔调整值与所述消息更新度成 正比例关系。 具体地, 利用该动态消息数与所述第二预定时间段的时间 长度确定好友在该第二预定时间段内的消息更新度包括:
计算该第二预定时间段内的消息更新度 N, 其中 N= (n ta) /nb; n为预先设定的消息更新度基准系数, n的值是可调整的; ta为所 述第二预定时间段的时间长度, 其值是可调整的; nb为该好友关系链中 所有好友在该第二预定时间段内的动态消息更新数。
比如, 殳 n为 5 , 殳上次发出动态消息请求与本次发出动态消 息请求之间的时间间隔为 10秒,即第二预定时间段的时间长度为 10秒, 而本次发出动态消息请求所请求到的动态消息更新数为 10条;
则该第二预定时间段内的消息更新度N = (n ta) /nb= (5x 10) /10 = 5;
而且, 通过如下方法基于所述消息更新度确定动态消息请求时间间 隔调整值 B:
Β=ΤχΝ, 其中 Τ为预先设定的调整值基准系数, 其值是可调整的。 接着上例, 假设预先设定的调整值基准系数 Τ为 2, 贝' J
Β=ΤχΝ = 5χ2 = 10秒。
至此, 分别确定出动态消息请求时间间隔基准值和动态消息请求时 间间隔调整值。 其中动态消息请求时间间隔基准值与第一用户关系链中 的第二用户的历史活跃程度相关, 而动态消息请求时间间隔调整值与第 一用户关系链中第二用户的近期活跃程度相关。
步骤 103: 所述第一客户端利用所述动态消息请求时间间隔基准值 和动态消息请求时间间隔调整值确定动态消息请求时间间隔值, 并根据 所述动态消息请求时间间隔值请求第二用户更新的动态消息。
在这里, 在分别确定了动态消息请求时间间隔基准值和动态消息请 求时间间隔之后, 可以确定动态消息请求时间间隔值, 并最终根据所述 动态消息请求时间间隔值请求第二用户的动态消息。
在利用动态消息请求时间间隔基准值和动态消息请求时间间隔调 整值确定动态消息请求时间间隔值的过程中, 基于如下原则:
( A ) 、 动态消息请求时间间隔基准值占据主导因素, 反映了动态 消息请求时间间隔值的大小趋势; 即动态消息请求时间间隔基准值越 大, 动态消息请求时间间隔值应该越大。
( B ) 、 动态消息请求时间间隔调整值对动态消息请求时间间隔基 准值进行修正。 动态消息请求时间间隔调整值越大, 动态消息请求时间 间隔值应该越小。
示范性地, 可以通过如下方法确定动态消息请求时间间隔值 X X=A-B。
接着上述示范性举例, 则动态消息请求时间间隔值 X = A-B = 97.8 - 10 = 87.8秒。
即本次与下次请求第二用户的动态消息之间的时间间隔为 87.8秒。 通过定时机制, 可以将确定的动态消息请求时间间隔值设置为定时 时间。 并且在定时时间到之后, 再由第一用户的客户端所在的计算设备 (例如, 该客户端所在计算设备上的客户端或浏览器)向服务器请求该 第一用户的关系链中更新的动态消息, 并且可以再次依据上述流程确定 向服务器请求第二用户的动态消息的间隔时间,并循环下去,周而复始。
以上虽然示范性地列出了确定动态消息请求时间间隔值 X 的一种 具体方式, 本领域技术人员可以意识到, 这种举例仅是示范性的, 并不 用于限定本发明实施方式的保护范围。 基于上述详细分析 , 可以将本发明实施方式应用到多种社交应用。 比如, 可以将本发明实施方式应用到社交空间的信息管理中。
示范性地, 假设有一种社交工具, 第一用户可以在不影响网页主题 页面的操作的情况下, 实时关注第一用户关系链中的第二用户的动态信 息。 为了保证第一用户的实时性的体验, 浏览器或客户端需要不停地发 起请求到服务器来获取第二用户用户数据。 随着客户群的增加, 服务器 需要处理大量的查询请求。 因而,服务器的性能需要提高, 以支撑服务, 这样就增加了系统运营成本。
此时, 可以应用本发明实施方式的示范性方法来尝试解决该问题。 图 2为根据本发明实施方式获取动态消息的示范性方法示意图。
如图 2所示, 该方法包括:
步骤 201 : 第一用户的第一客户端获取第一用户关系链。
步骤 202: 获取第一用户关系链中每个第二用户最后一次有更新消 息的时间。
步骤 203: 基于所获取到的第一用户关系链中的每个第二用户最后 一次更新了动态消息的时间, 确定在预先设定时间 (优选为自当前时刻 起至当前时刻之前的某一时刻) 内更新了动态消息的好友数量, 从而得 到在该时间内的第二用户的活跃度。 根据该活跃度确定动态消息请求时 间间隔基准值。
步骤 204:获取第一用户上一次发起第二用户动态消息请求的时间, 以用于后续步骤 206中关于时间间隔的确定。
步骤 205: 用户本次发起第二用户动态请求, 并获取第二用户动态 消息。
步骤 206: 根据本次请求第二用户动态消息的时间与上一次请求第 二用户动态消息的时间, 确定出两者之间的时间间隔, 并根据该确定的 时间间隔以及本次请求第二用户动态消息所获取的第二用户消息更新 数计算出第二用户的消息更新度。 根据消息更新度, 确定动态消息请求 时间间隔调整值。
步骤 207: 根据确定的动态消息请求时间间隔基准值与动态消息请 求时间间隔调整值, 得到用户距离下一次发出好友动态消息请求的间隔 时间。 根据所述动态消息请求时间间隔值, 请求第二用户的动态消息。
基于上述详细分析, 本发明实施方式还提出了一种获取动态消息的 装置。
图 3为根据本发明实施方式的获取动态消息的装置结构图。 该装置 位于第一用户的第一客户端。 如图 3所示, 该装置包括用户关系链获取 单元 301、 活跃度与消息更新度计算单元 302, 以及动态消息请求单元 303。
其中:
用户关系链获取单元 301 , 用于获取第一用户关系链;
活跃度与消息更新度计算单元 302, 用于确定该第一用户关系链中 第二用户在第一预定时间段内的活跃度, 并基于所述活跃度确定动态消 息请求时间间隔基准值; 确定该第一用户关系链中第二用户在第二预定 时间段内的消息更新度, 并基于所述消息更新度确定动态消息请求时间 间隔调整值, 其中第一用户的关系链包括至少一个第二用户;
动态消息请求单元 303 , 用于利用所述动态消息请求时间间隔基准 值和动态消息请求时间间隔调整值确定动态消息请求时间间隔值, 并根 据所述动态消息请求时间间隔值请求第二用户的动态消息。
在一个实施方式中, 活跃度与消息更新度计算单元 302, 用于判断 该第一用户关系链中第二用户在第一预定时间段内是否更新了动态消 息, 如果是, 记录动态消息有更新的第二用户数, 并利用该记录的动态 消息有更新的第二用户数与所述第一预定时间段的时间长度计算第二 用户在该第一预定时间段内的活跃度。
优选地, 活跃度与消息更新度计算单元 302, 用于计算该第一预定 时间段内的第二用户活跃度 M, 其中: M= ( m x na ) /ti;
m为预先设定的活跃度基准系数; ti为所述第一预定时间段的时间 长度; na为在该第一预定时间段内动态消息有更新的第二用户数。
优选地, 活跃度与消息更新度计算单元 302, 用于确定动态消息请 求时间间隔基准值 A, 其中 A = T - M, T为预先设定的时间值。
在一个实施方式中, 活跃度与消息更新度计算单元 302, 用于判断 该第一用户关系链中的第二用户在第二预定时间段内是否更新了动态 消息, 如果是, 获取该第一用户关系链中所有第二用户在预定时间段内 的动态消息数, 并利用该动态消息数与所述第二预定时间段的时间长度 计算第二用户在该第二预定时间段内的消息更新度, 并基于所述消息更 新度确定动态消息请求时间间隔调整值, 其中所确定的动态消息请求时 间间隔调整值与所述消息更新度成正比例关系。
优选地, 活跃度与消息更新度计算单元 302, 用于计算该第二预定 时间段内第二用户的消息更新度 N, 其中 N = ( n x ta ) /nb;
n为预先设定的消息更新度基准系数; ta为所述第二预定时间段的 时间长度; nb为该第一用户关系链中所有第二用户在该第二预定时间段 内的动态消息更新数。
优选地, 活跃度与消息更新度计算单元 302, 用于计算动态消息请 求时间间隔调整值 B, 其中 B=T X N, 其中 T为预先设定的调整值基准 系数。
在一个实施方式中, 活跃度与消息更新度计算单元 302, 用于判断 该第二用户在第一预定时间段内是否更新了动态消息, 如果是, 记录更 新了动态消息的第二用户数, 计算该第一预定时间段内该第二用户的活 跃度 M, 其中: M= (mxna) /ti; m为预先设定的活跃度基准系数; ti 为所述第一预定时间段的时间长度; na为在该第一预定时间段内动态消 息有更新的第二用户数; 计算时间间隔基准值 A, 其中 A = T- M, T为 预先设定的时间值; 判断该第二用户在第一预定时间段内是否更新了动 态消息, 如果是, 记录更新了动态消息的第二用户数, 计算该第二预定 时间段内第二用户的消息更新度 N, 其中 N= (nxta) /nb; n为预先设 定的消息更新度基准系数; ta为所述第二预定时间段的时间长度; nb为 该第一用户的关系链中所有第二用户在该第二预定时间段内的动态消 息更新数; 计算动态消息请求时间间隔调整值 B, 其中 Β=ΤχΝ, Τ为 预先设定的调整值基准系数;
动态消息请求单元 303, 用于计算动态消息请求时间间隔值 X, 其 中 Χ=Α-Β。
图 4为本发明另一实施例获取动态消息的装置结构示意图。如图 4 所示,该装置至少包括:存储器 401以及与存储器通信的处理器 402, 其中该存储器 402中包括可由处理器 402执行的用户关系链获取指令 4011、 活跃度与消息更新度计算指令 4012、 动态消息请求指令 4013。
所述用户关系链获取指令 4011, 用于获取第一用户的关系链, 其中 所述第一用户的关系链包括至少一个第二用户;
所述活跃度与消息更新度计算指令 4012,用于确定该所述第二用户 在第一预定时间段内的活跃度, 并基于所述活跃度确定动态消息请求时 间间隔基准值; 确定该第二用户在第二预定时间段内的消息更新度, 并 基于所述消息更新度确定动态消息请求时间间隔调整值;
所述动态消息请求指令 4013,用于利用所述动态消息请求时间间隔 基准值和所述动态消息请求时间间隔调整值确定动态消息请求时间间 隔值, 并根据所述动态消息请求时间间隔值请求第二用户的动态消息。 在一个实施方式中, 所述活跃度与消息更新度计算指令 4012, 用于 判断该第二用户在第一预定时间段内是否更新了动态消息, 如果是, 记 录更新了动态消息的第二用户数, 并利用该记录的所述更新了动态消息 的第二用户数与所述第一预定时间段的时间长度, 计算所述第二用户在 所述第一预定时间段内的活跃度。
在一个实施方式中, 所述活跃度与消息更新度计算指令 4012, 用于 通过如下方式计算所述第二用户所述第一预定时间段内的活跃度 Μ:
M= ( m X na ) /ti;
其中, m为预先设定的活跃度基准系数; ti为所述第一预定时间段 的时间长度; na 为在该第一预定时间段内动态消息有更新的第二用户 数。
在一个实施方式中, 所述活跃度与消息更新度计算指令 4012, 用于 通过如下方式计算所述动态消息请求时间间隔基准值 A:
A = T - M,
其中, T为预先设定的时间值, M为所述第二用户在所述第一预定 时间段内的活跃度。
在一个实施方式中, 所述活跃度与消息更新度计算指令 4012, 用于 判断该第二用户在第二预定时间段内是否更新了动态消息, 如果是, 获 取该所有第二用户在预定时间段内的动态消息数, 并利用所述动态消息 数与所述第二预定时间段的时间长度, 计算所述第二用户在该第二预定 时间段内的消息更新度, 并基于所述消息更新度确定动态消息请求时间 间隔调整值。
在一个实施方式中, 所述活跃度与消息更新度计算指令 4012, 用于 通过如下方式计算该第二预定时间段内的消息更新度 N: N = ( n x ta ) /nb,
其中, n为预先设定的消息更新度基准系数; ta为所述第二预定时 间段的时间长度; nb为所有所述第二用户在该第二预定时间段内的动态 消息更新数。
在一个实施方式中, 所述活跃度与消息更新度计算指令 4012, 用于 通过如下方式确定动态消息请求时间间隔调整值 B:
B=T N,
其中, T为预先设定的调整值基准系数, N为所述第二用户所述第 二预定时间段内的所述消息更新度。 综上所述, 在本发明实施方式中, 第一用户的第一客户端获取所述 第一用户的关系链, 其中所述第一用户的关系链包括至少一个第二用 户; 所述第一客户端确定该第二用户在第一预定时间段内的活跃度, 并 基于所述活跃度确定动态消息请求时间间隔基准值; 确定该第二用户在 第二预定时间段内的消息更新度, 并基于所述消息更新度确定动态消息 请求时间间隔调整值; 所述第一客户端利用所述动态消息请求时间间隔 基准值和动态消息请求时间间隔调整值确定动态消息请求时间间隔值, 并根据所述动态消息请求时间间隔值请求所述第二用户的动态消息。 由 此可见, 应用本发明实施方式之后, 不是针对所有用户统一设定一个相 同的时间间隔值, 而是根据第二用户的历史活跃程度与第二用户的近期 活跃程度, 分别计算动态消息请求时间间隔值, 因此本发明可以根据第 二用户的活跃程度, 精确控制请求动态消息的时间间隔。 因此, 在保证 第二用户动态消息更新实时性的前提下, 合理的减少第二用户动态消息 请求量, 降低了服务器的处理负担。
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的 保护范围。 凡在本发明的精神和原则之内, 所作的任何修改、等同替换、 改进等, 均应包含在本发明的保护范围之内。

Claims

权利要求书
1、 一种获取动态消息的方法, 其特征在于, 该方法包括: 第一用户的第一客户端获取所述第一用户的关系链, 其中所述第一 用户的关系链包括至少一个第二用户;
所述第一客户端确定该第二用户在第一预定时间段内的活跃度, 并 基于所述活跃度确定动态消息请求时间间隔基准值; 确定该第二用户在 第二预定时间段内的消息更新度, 并基于所述消息更新度确定动态消息 请求时间间隔调整值;
所述第一客户端利用所述动态消息请求时间间隔基准值和动态消 息请求时间间隔调整值确定动态消息请求时间间隔值, 并根据所述动态 消息请求时间间隔值请求所述第二用户的动态消息。
2、 根据权利要求 1 所述的获取动态消息的方法, 其特征在于, 所 述第一客户端确定所述第二用户在第一预定时间段内的活跃度, 包括: 判断该第二用户在第一预定时间段内是否更新了动态消息, 如果 是, 记录更新了动态消息的第二用户数, 并利用该记录的所述更新了动 态消息的第二用户数与所述第一预定时间段的时间长度, 计算所述第二 用户在该第一预定时间段内的活跃度。
3、 根据权利要求 2所述的获取动态消息的方法, 其特征在于, 所 述第二用户在该第一预定时间段内的活跃度 M通过如下方式计算:
M= ( m X na ) /ti;
其中, m为预先设定的活跃度基准系数; ti为所述第一预定时间段 的时间长度; na为在该第一预定时间段内动态消息有更新的所述第二用 户数。
4、 根据权利要求 1 所述的获取动态消息的方法, 其特征在于, 通 过如下方式基于活跃度确定动态消息请求时间间隔基准值 A: A = T - M,
其中, T为预先设定的时间值, Μ为所述第二用户在所述第一预定 时间段内的活跃度。
5、 根据权利要求 1 所述的获取动态消息的方法, 其特征在于, 所 述第一客户端确定该第二用户在第二预定时间段内的消息更新度, 包 括:
判断该第二用户在第二预定时间段内是否有动态消息更新, 如果 是, 获取所有第二用户在预定时间段内更新的动态消息数, 并利用该更 新的动态消息数与所述第二预定时间段的时间长度, 计算第二用户在该 第二预定时间段内的消 , 更新度。
6、 根据权利要求 5 所述的获取动态消息的方法, 其特征在于, 所 述第二用户在该第二预定时间段内的消息更新度 N通过如下方式计算:
N = ( n X ta ) /nb;
其中, n为预先设定的消息更新度基准系数; ta为所述第二预定时 间段的时间长度; nb为所有第二用户在该第二预定时间段内的动态消息 更新数。
7、 根据权利要求 1 所述的获取动态消息的方法, 其特征在于, 所 述动态消息请求时间间隔调整值 B通过如下方式确定:
B=T x N, 其中 T为预先设定的调整值基准系数, N为所述第二用 户所述第二预定时间段内的所述消息更新度。
8、 一种获取动态消息的装置, 其特征在于, 该装置位于第一用户 的第一客户端, 包括用户关系链获取单元、 活跃度与消息更新度计算单 元, 以及动态消息请求单元, 其中:
所述用户关系链获取单元, 用于获取第一用户的关系链, 其中所述 第一用户的关系链包括至少一个第二用户;
所述活跃度与消息更新度计算单元, 用于确定所述第二用户在第一 预定时间段内的活跃度, 并基于所述活跃度确定动态消息请求时间间隔 基准值; 确定该第二用户在第二预定时间段内的消息更新度, 并基于所 述消息更新度确定动态消息请求时间间隔调整值;
所述动态消息请求单元, 用于利用所述动态消息请求时间间隔基准 值和所述动态消息请求时间间隔调整值确定动态消息请求时间间隔值, 并根据所述动态消息请求时间间隔值请求第二用户的动态消息。
9、 根据权利要求 8所述的获取动态消息的装置, 其特征在于, 所述活跃度与消息更新度计算单元, 用于判断该第二用户在第一预 定时间段内是否更新了动态消息, 如果是, 记录更新了动态消息的第二 用户数, 并利用该记录的所述更新了动态消息的第二用户数与所述第一 预定时间段的时间长度, 计算所述第二用户在所述第一预定时间段内的 活跃度。
10、 根据权利要求 9的获取动态消息的装置, 其特征在于, 所述活跃度与消息更新度计算单元, 用于通过如下方式计算所述第 二用户所述第一预定时间段内的活跃度 M:
M= ( m X na ) /ti;
其中, m为预先设定的活跃度基准系数; ti为所述第一预定时间段 的时间长度; na 为在该第一预定时间段内动态消息有更新的第二用户 数。
11、 根据权利要求 8获取动态消息的装置, 其特征在于, 所述活跃度与消息更新度计算单元, 用于通过如下方式计算所述动 态消息请求时间间隔基准值 A:
A = T - M, 其中, T为预先设定的时间值, Μ为所述第二用户在所述第一预定 时间段内的活跃度。
12、 根据权利要求 8获取动态消息的装置, 其特征在于, 所述活跃度与消息更新度计算单元, 用于判断该第二用户在第二预 定时间段内是否更新了动态消息, 如果是, 获取该所有第二用户在预定 时间段内的动态消息数, 并利用所述动态消息数与所述第二预定时间段 的时间长度, 计算所述第二用户在该第二预定时间段内的消息更新度, 并基于所述消息更新度确定动态消息请求时间间隔调整值。
13、 根据权利要求 12获取动态消息的装置, 其特征在于, 所述活跃度与消息更新度计算单元, 用于通过如下方式计算该第二 预定时间段内的消息更新度 Ν:
Ν = ( η X ta ) /nb,
其中, n为预先设定的消息更新度基准系数; ta为所述第二预定时 间段的时间长度; nb为所有所述第二用户在该第二预定时间段内的动态 消息更新数。
14、 根据权利要求 8获取动态消息的装置, 其特征在于, 所述活跃度与消息更新度计算单元, 用于通过如下方式确定动态消 息请求时间间隔调整值 B:
B=T N,
其中, T为预先设定的调整值基准系数, N为所述第二用户所述第 二预定时间段内的所述消息更新度。
15、 一种获取动态消息的装置, 其特征在于, 该装置包括存储器 令、 活跃度与消息更新度计算指令、 动态消息请求指令: 所述用户关系链获取指令, 用于获取第一用户的关系链, 其中所述 第一用户的关系链包括至少一个第二用户;
所述活跃度与消息更新度计算指令, 用于确定所述第二用户在第一 预定时间段内的活跃度, 并基于所述活跃度确定动态消息请求时间间隔 基准值; 确定该第二用户在第二预定时间段内的消息更新度, 并基于所 述消息更新度确定动态消息请求时间间隔调整值;
所述动态消息请求指令, 用于利用所述动态消息请求时间间隔基准 值和所述动态消息请求时间间隔调整值确定动态消息请求时间间隔值, 并根据所述动态消息请求时间间隔值请求第二用户的动态消息。
16、 根据权利要求 15获取动态消息的装置, 其特征在于, 所述活跃度与消息更新度计算指令, 用于判断该第二用户在第一预 定时间段内是否更新了动态消息, 如果是, 记录更新了动态消息的第二 用户数, 并利用该记录的所述更新了动态消息的第二用户数与所述第一 预定时间段的时间长度, 计算所述第二用户在所述第一预定时间段内的 活跃度。
17、 根据权利要求 15获取动态消息的装置, 其特征在于, 所述活跃度与消息更新度计算指令, 用于通过如下方式计算所述动 态消息请求时间间隔基准值 A:
A = T - M,
其中, T为预先设定的时间值, M为所述第二用户在所述第一预定 时间段内的活跃度。
18、 根据权利要求 15获取动态消息的装置, 其特征在于, 所述活跃度与消息更新度计算指令, 用于判断该第二用户在第二预 定时间段内是否更新了动态消息, 如果是, 获取该所有第二用户在预定 时间段内的动态消息数, 并利用所述动态消息数与所述第二预定时间段 的时间长度, 计算所述第二用户在该第二预定时间段内的消息更新度, 并基于所述消息更新度确定动态消息请求时间间隔调整值。
19、 根据权利要求 18获取动态消息的装置, 其特征在于, 所述活跃度与消息更新度计算指令 4012,用于通过如下方式计算该 第二预定时间段内的消息更新度 N:
N = ( n X ta ) /nb,
其中, n为预先设定的消息更新度基准系数; ta为所述第二预定时 间段的时间长度; nb为所有所述第二用户在该第二预定时间段内的动态 消息更新数。
20、 根据权利要求 15获取动态消息的装置, 其特征在于, 所述活跃度与消息更新度计算指令, 用于通过如下方式确定动态消 息请求时间间隔调整值 B:
B=T N,
其中, T为预先设定的调整值基准系数, N为所述第二用户所述第 二预定时间段内的所述消息更新度。
PCT/CN2013/081933 2012-08-24 2013-08-21 一种获取动态消息的方法和装置 WO2014029332A1 (zh)

Priority Applications (5)

Application Number Priority Date Filing Date Title
RU2015109286/08A RU2595622C1 (ru) 2012-08-24 2013-08-21 Способ и устройство получения динамического сообщения
EP13831583.3A EP2890077B1 (en) 2012-08-24 2013-08-21 Method and apparatus for acquiring dynamic message
KR1020157007322A KR101544394B1 (ko) 2012-08-24 2013-08-21 동적 메시지를 획득하는 방법 및 장치
US14/423,586 US9396265B2 (en) 2012-08-24 2013-08-21 Method and apparatus for aquiring dynamic message
JP2015527777A JP5847361B2 (ja) 2012-08-24 2013-08-21 動的情報を取得する方法及び装置

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210303950.2A CN103634349B (zh) 2012-08-24 2012-08-24 一种获取动态消息的方法和装置
CN201210303950.2 2012-08-24

Publications (1)

Publication Number Publication Date
WO2014029332A1 true WO2014029332A1 (zh) 2014-02-27

Family

ID=50149452

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/081933 WO2014029332A1 (zh) 2012-08-24 2013-08-21 一种获取动态消息的方法和装置

Country Status (7)

Country Link
US (1) US9396265B2 (zh)
EP (1) EP2890077B1 (zh)
JP (1) JP5847361B2 (zh)
KR (1) KR101544394B1 (zh)
CN (1) CN103634349B (zh)
RU (1) RU2595622C1 (zh)
WO (1) WO2014029332A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106254208A (zh) * 2016-06-22 2016-12-21 中国联合网络通信集团有限公司 社交功能信息排序方法及终端

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106407238B (zh) * 2015-08-03 2021-07-13 腾讯科技(深圳)有限公司 基于媒体内容互动的方法和系统
CN106888135B (zh) * 2015-12-15 2020-03-24 阿里巴巴集团控股有限公司 一种任务状态的查询方法和装置
CN105872012A (zh) * 2016-03-11 2016-08-17 乐视网信息技术(北京)股份有限公司 基于会员用户终端进行信息发送的方法及系统
CN110535943B (zh) * 2019-08-29 2022-04-26 广州方硅信息技术有限公司 数据处理方法、装置、电子设备及存储介质
CN112633573B (zh) * 2020-12-21 2022-04-01 北京达佳互联信息技术有限公司 活跃状态的预测方法以及活跃度阈值的确定方法
CN114070551B (zh) * 2021-10-27 2024-04-09 中国建设银行股份有限公司 动态口令生成方法、授权方法、装置、设备及存储介质
CN115328620B (zh) * 2022-10-15 2023-02-03 神州医疗科技股份有限公司 一种基于虚拟技术动态调起tps的方法及系统

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100235886A1 (en) * 2009-03-16 2010-09-16 International Business Machines Corporation Automated relationship management for electronic social networks
CN101894128A (zh) * 2010-05-27 2010-11-24 北京开心人信息技术有限公司 一种可解决信息过载的获取好友动态方法及装置
CN101980497A (zh) * 2010-10-20 2011-02-23 北京开心人信息技术有限公司 一种分类显示好友动态的方法与系统
CN102447647A (zh) * 2010-10-13 2012-05-09 腾讯科技(深圳)有限公司 一种基于新消息的通知方法、装置及系统

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008046770A (ja) * 2006-08-11 2008-02-28 Fujifilm Corp 情報提供装置及び方法
JP4826498B2 (ja) * 2007-02-20 2011-11-30 大日本印刷株式会社 評価ランキング作成システム
CN102236678A (zh) * 2010-04-26 2011-11-09 腾讯科技(深圳)有限公司 一种好友动态信息管理方法、系统及好友信息管理服务器
CN102411593A (zh) * 2010-09-26 2012-04-11 腾讯数码(天津)有限公司 展示好友动态的方法及系统
US8843153B2 (en) * 2010-11-01 2014-09-23 Seven Networks, Inc. Mobile traffic categorization and policy for network use optimization while preserving user experience
CN102184253A (zh) * 2011-05-30 2011-09-14 北京搜狗科技发展有限公司 对网络资源进行抓取及更新消息推送的方法及系统
US20130054706A1 (en) * 2011-08-29 2013-02-28 Mary Graham Modulation of Visual Notification Parameters Based on Message Activity and Notification Value

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100235886A1 (en) * 2009-03-16 2010-09-16 International Business Machines Corporation Automated relationship management for electronic social networks
CN101894128A (zh) * 2010-05-27 2010-11-24 北京开心人信息技术有限公司 一种可解决信息过载的获取好友动态方法及装置
CN102447647A (zh) * 2010-10-13 2012-05-09 腾讯科技(深圳)有限公司 一种基于新消息的通知方法、装置及系统
CN101980497A (zh) * 2010-10-20 2011-02-23 北京开心人信息技术有限公司 一种分类显示好友动态的方法与系统

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2890077A4 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106254208A (zh) * 2016-06-22 2016-12-21 中国联合网络通信集团有限公司 社交功能信息排序方法及终端

Also Published As

Publication number Publication date
KR101544394B1 (ko) 2015-08-13
EP2890077A4 (en) 2015-08-05
KR20150036837A (ko) 2015-04-07
EP2890077A1 (en) 2015-07-01
RU2595622C1 (ru) 2016-08-27
JP5847361B2 (ja) 2016-01-20
US20150324463A1 (en) 2015-11-12
CN103634349A (zh) 2014-03-12
JP2015529360A (ja) 2015-10-05
US9396265B2 (en) 2016-07-19
CN103634349B (zh) 2017-12-01
EP2890077B1 (en) 2016-10-05

Similar Documents

Publication Publication Date Title
WO2014029332A1 (zh) 一种获取动态消息的方法和装置
JP6612949B2 (ja) オンラインメディアインプレッションデータを共有するための方法、装置及び記憶媒体
US9407593B1 (en) Systems and methods for storing and transferring message data
CN106548364B (zh) 信息发送方法及装置
JP5334949B2 (ja) オフライン広告サービス
CN106471543B (zh) 跨客户端设备上的多个应用的用户交互关联
AU2012333036A1 (en) Controlling notification based on power expense and social factors
WO2017016113A1 (zh) 用于监控网络业务量的方法和装置
WO2020116612A1 (ja) ストレージ管理装置、方法およびプログラム
CN111756646A (zh) 网络传输控制方法、装置、计算机设备及存储介质
CN105279034A (zh) 一致性缓存控制系统和方法
CN110413918A (zh) 数据发送方法、装置、设备及存储介质
US10366094B2 (en) Data access using aggregation
WO2020162573A1 (ja) 制御方法、サーバ、プログラム、および、データ構造
JP7470315B2 (ja) 類似性コホートに基づくユーザ管理型コンテンツおよび広告配信
CN108629039B (zh) 一种数据处理方法及装置
JP2014164479A (ja) 制御装置,制御方法,および制御プログラム
JP2021531599A (ja) サービスの成長速度を高めるためのコンピュータ処理
US20180268042A1 (en) Entity-based dynamic database lockdown
JP2016015566A (ja) 端末装置及びデータ配信方法
US10540669B2 (en) Managing object values and resource consumption
JP2004072485A (ja) プレゼンス情報通知装置、プレゼンス情報通知プログラム、プログラム記録媒体、及びプレゼンス情報通知方法
JP6791567B2 (ja) オンラインメディアインプレッションデータを共有するための装置、方法及び記憶媒体
JP2009116678A (ja) Webサーバ
JP6714117B1 (ja) 情報処理装置、プログラム、及び制御方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13831583

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2015527777

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 14423586

Country of ref document: US

REEP Request for entry into the european phase

Ref document number: 2013831583

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2013831583

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 20157007322

Country of ref document: KR

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2015109286

Country of ref document: RU

Kind code of ref document: A