I’m going to work on an NGO inspirational site, and I’m going to implement some kind of Facebook-esque stream of events with events like “Michael recommended apple pie”, “John commented on a chocolate cake”, “Caramel fudge was posted 8 hours ago Alice, "etc.
The fact is that these events are based on interests, so someone is only interested in caramel and cherry, and then you should not see apple pies or chocolate cakes. There are many permutations for this, and generating a personalized stream of user events on the fly means several fairly expensive database queries.
So, I was thinking about pre-creating a relationship between the receiving user and the hosted event (possibly a simple SQL JOIN table), doing some kind of background processing whenever an action event occurs.
The work needed to weigh the preferences of hundreds of users regarding the event must be substantial, so this cannot be done as part of the POST request that starts the work, so I have to do most of the work in another process. Im currently looking at Gearman for this task, but Im very open to suggestions.
I am not looking for someone to do my work for me, but if someone has any previous experience in creating these kinds of things, I would like to hear your thoughts.
source
share