{"repo":"GetStream/mongodb-activity-feed","free":true,"listed":false,"github":"https://github.com/GetStream/mongodb-activity-feed","clone":"git clone https://github.com/GetStream/mongodb-activity-feed.git","description":"Activity Feed, Timeline, News Feed, Notification Feed with MongoDB, Node and CRDTs","language":"JavaScript","stars":87,"topics":["activity-feed","activitystreams","newsfeed","notification-feed","mongodb","nodejs"],"license":"BSD-3-Clause","category":"data-pipelines","readme_excerpt":"Activity Feed Node & Mongo DB Simple example of how to build a news feed with Node and MongoDB. I created it for this blogpost: \"Scalable News Feeds - MongoDB vs Stream\" Presentation about the architecture is on SlideShare It uses CRDTs to reduce the need for locks. Install MongoDB & Redis Activity Feed Initialization Here's a very short example And a bit longer one: The bull option determines if activity fanout is done over a bull queue or synchronous. The firehose option allows you to listen to feed changes in realtime using Faye. Timeline MongoDB Here's a quick tutorial on a simple timeline with mongodb-activity-feed Notification System MongoDB Here's a quick tutorial on a simple timeline with mongodb-activity-feed Adding an activity Add an activity like this. Removing an activity Remove an activity: Follow a feed Follow Many Feeds Unfollow a feed Create Many Feeds at Once Reading a feed from MongoDB Basic Read Ranked Feed Aggregated Feed Activities are unique on the combination of foreign id and time . If you don't specify foreign id the full activity object will be used. Firehose Configuration Pros/Cons MongoDB is a nice general purpose database. For building activity feeds it's not a great fit though. Cassandra and Redis will in most scenarios outperform a MongoDB based solution. Dedicated activity feed databases like Stream are typically 10x more performant and easier to use. So in most cases you shouldn't run your activity feed on MongoDB. It only makes sense if your ","default_branch":null,"files":null,"tree":[],"storefront":"/r/GetStream","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/GetStream/mongodb-activity-feed/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}