Implementation and solution of weibo @ function

Source: Internet
Author: User
The implementation of weibo @ function is under development. I want to implement the function like weibo @. who gives me a solution ?, Is it the target feature ?? The general idea is that you don't need to think too complicated. for example, if a user clicks the target user, the first consideration is to let the user filter his or her friends, then select the corresponding friend (you can set the upper limit or no upper limit) to take the lead in the uid of the friend selected by him, and implement the group Weibo @ function.
In a development project, I want to implement the function like weibo @. who gives me a solution?

------ Solution --------------------
Is it the target feature ??
The general idea is that you don't need to think too complicated. for example, if a user clicks the target user, the first consideration is to let the user filter his or her friends, then select the corresponding friend (which can be set to an upper limit or no upper limit), and combine the uid of the friend Selected first into an array. the array is passed as a parameter to a method, for example, public function _ send ($ uid) {}, which is written into your processing, such as notifications and other Prompts. During this step, you can also create a separate table to notify the record table, write a status (notified or not notified), but you must add an index. when going online, you can trigger reading the table's notifications about yourself, or let the server regularly run the program again.
------ Solution --------------------
It can be understood as the Mail sending function. @, It will put this information in his message queue.
------ Solution --------------------
Weibo is a half-pushing model.

@ Is push. put @ in the database first, and then notify the online user that there is a @. then the user clicks the button to pull @ to the database @.

It seems that both the client and the browser can push @, that is, if @ is not refreshed and detected, both the browser and the client should be ajax's timed pull model.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.