How is the function designed to forward data to fans?

Source: Internet
Author: User
How is this function designed for forwarding to fans? For example, if there are 10000 fans, we cannot write 10 thousand data records? How can I tell fans to forward articles to fans. What about followers? How to design this function ?, This problem. You can search for "Weibo technical architecture". let's take a look and get a message queue to write it slowly, how do you design the SQL statement that allows php to run 10000 fans and forward it to fans?
For example, if there are 10000 fans, we cannot write 10 thousand data records?

How can I tell fans to forward articles to fans. What about followers? How to design this function?

------ Solution --------------------
This problem. You can search for "Weibo technical architecture,
------ Solution --------------------
Let's get a message queue and write it slowly. you thought you could just let php run SQL insert statements of 10000 fans.

Php simply throws the SQL request to RabbitQ, and consumer processes written in other languages read the request to the database.

After the database is imported into the database, the next layout is where the user pulls the data.

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.