Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 614637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:07:59+00:00 2026-05-13T18:07:59+00:00

Been using PHP for quite some time now and I was wondering what this

  • 0

Been using PHP for quite some time now and I was wondering what this whole “message queue” is all about. Let’s take facebook for example. I can update my status but then I have to show that status updates to all my friends (let’s say I have 3000 followers). Even more work if there are comments and they have to be notified to all friends who left a comment via email. With the example I’ve seen, it appears that all a message queue does is take the “message” (my status update) and puts it into some temporary space (filesystem or DB table). I then have a cron job that pulls it out and updates my table.

With that said, how do I go about manipulating that data? I guess I’m getting confused as to how this would really help me. How do I translate the following function into a message queue and then schedule for function to run at a later time?

1 – Update my status
2 – Now publish it across my page and all my friends.
3 – If comment is left, now email that latest comment to those who “subscribe” to that comment.

My question is, how do I manipulate that data? Do I just insert the “comment” then have a “job” that pulls that comment out and plug it into a function that processes it?

Here’s an example I plan on looking into.

http://www.freeopenbook.com/php-hacks/phphks-CHP-5-SECT-18.html

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T18:07:59+00:00Added an answer on May 13, 2026 at 6:07 pm

    My question is, how do I manipulate that data? Do I just insert
    the “comment” then have a “job”
    that pulls that comment out and plug
    it into a function that processes it?

    Exactly.

    Publishing status updates across Facebook pages probably doesn’t involve message queueing – I don’t actually know their specific design, but I’d guess that updated data is just supplied on-demand via a query when users load their pages. (Unless Facebook has a separate process to denormalize status update data.)1

    By contrast, sending status update email notifications is a great candidate for message queuing.

    A typical implementation would involve writing a new message (generally minimal, perhaps just your user id) to a specific message queue – perhaps the “EmailStatusUpdateNotifications” queue.

    Another process then dequeues messages and knows exactly what to do with them. A process dedicated to sending status update email messages would use the user id (the contents of the message) to load your current status and a list of your friends’ email addresses, build the email messages, and dispatch them.

    1It turns out you can find a lot of good information about Facebook’s architecture in Why are Facebook, Digg, and Twitter so hard to scale? at High Scalability.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Been using PHP/MySQL for a little while now, and I'm wondering if there are
I've been doing some HTML scraping in PHP using regular expressions. This works, but
I've been using PHP & MySQL for ages and am about to start using
I have been using the mysql api in PHP, and am now converting to
I have been using PHP and JavaScript for building my dad's website. He wants
I've been using PHP for too long, but I'm new to JavaScript integration in
I have been programming using PHP, Javascript and have been a designer for a
Does anyone have any recommendations for implementations of ActiveRecord in PHP? I've been using
We have been using CruiseControl for quite a while with NUnit and NAnt. For
I've been using WatiN as a testing tool for my current project. Besides the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.