Hey, im looking to build a product that 'listens' to twitter streaming api and tracks certain keywords. everything can be done. what im missing is one thing. This product is intended to be operational and serving multiple clients. twitter encourages developers to open as little as possible connections to the api so i need to track multiple keywords at once for multiple clients.
My question is, how can i differentiate between those tweet results so i can organize the output for each clients? meaning if client A tracks 'hiscompany' how can i categorize the tweet results from the streaming api under client A project.
I want to categorize upon insert to the database, should i just preg_match on each result to determine the keyword associated in it? whats the best practices for it?