Well, I called them articles but it's not really news. When the item is posted poster actually specifies the criteria to match the potential respondents (gee now it starts to sound like a matchmaking site, which it is not...).
So matching is a piece of cake. Article posted has criteria attached. Readers have criteria set in their profile.
How to get it sorted out is where I'm lost.
Say I run a script and collect info on all posted article a day before. That step is needed fro sure. Then I need to bunch them up somehow by, say:
- gender M/F
- age group
and then start attempting to email while matching those that are in geo targeted area.
I've done some odd coding before but this one is a bit over my head. Here's an example:
Say I have 5 articles:
Article 1: M, 20-30, Boston
Article 2: F, 40-60, NYC
Article 3: F, 40-50, NYC
Article 4: M, 20-30, NYC
Article 5: F, 20-30, Boston
Clearly here I can put Article 2 and 3 in one email if my recepients live in NYC and are femails ages bw 40-50.
It starts to sound a bit too complicated... I'm starting to lean towards an alternative solution: run a cron script once every ouple of hours and if detect new post match respondents and email. That way I'd space the posters a drag they experience right now.