Architechture and coding ideas for chatroulette-like matching system
===

I was wondering what goes behind the architechture of making a chatroulette-like system.  Now, I know I have seen other questions about it, but those are regarding stratus and flash, which I understand is a good route to go for this project and probably how I intend to do the video piece of it.  My question is, how would the architecture of the actual algorithm for paring people up look like?

Everytime someone is looking for a partner store them in a database and then match the people up in the database? (I realize that's a very high level view)  I am strictly looking for how to make a matching system, I would plan to use something like opentok api or somethign to harnest video.  I've seen something like this: http://www.tokbox.com/blog/creating-chat-roulette-with-node-js-socket-io-and-opentok/ but its not much help to me because I don't use node.js.  Anyone have any ideas on how to architect the matching algorithm  of chatroulette