3 ms·
We built this during Startup Weekend San Jose this weekend. It's built on node.js, socket.io, mongodb, redis and knockoutjs on the front end. Check it out - soc
by Finbarr 15y ago
We built this during Startup Weekend San Jose this weekend. It's built on node.js, socket.io, mongodb, redis and knockoutjs on the front end. Check it out - social networking in reverse!
- notatoad 15y agomongo and redis - aren't both of those designed to serve basically the same purpose? why both?
- Finbarr 15y agoWell, I used redis to hold a few sets for each user. You can atomically add items to sets in redis. Mongodb doesn't support this functionality (AFAIK). MongoDB is great for dumping and retrieving lots of data and is more durable than redis. Haven't built a site using these tools before so has all been a learning experience.
- pork 15y agoRedis now uses the same journaling for durability that Mongo does. What you get with Redis is complex atomic ops and transactions, but at the cost of not having sharding.
- mathias_10gen 15y agoTake a look at the $push and $addToSet[1] update operators in mongodb. They are both for atomically adding one or more elements to an array in an object. On the other hand, MongoDB doesn't support server-side set union or intersection so if you are using those features redis would still probably be a good use there. [1] http://www.mongodb.org/display/DOCS/Updating#Updating-%24addToSetand%24each http://www.mongodb.org/display/DOCS/Updating#Updating-%24add...