Saturday, 3 August 2019

Building a newsfeed using Node/Redis

I'm just wondering if anybody has experience (preferably in production) with building a Twitter/Instagram/Quora/Facebook like newsfeed in js and an external datastore (say Redis/ Postgres/ Cassandra or Rethink)The method I'm going for was the push method. Basically when a user makes an update, a new activity is stored in the feed of each of the users followers in Redis. What's being done in this code example below (in ruby)​https://gist.github.com/wxmn/896321/2a2c84f938eaf7f8e88a866e522b455796b28d1dI planned on storing the foreign key of the activity in Redis and when the user fetches the feed querying the relational Postgres database where all the other information is being stored. Mainly to reduce the size of the data being stored in Redis.​I was also considering using Cassandra DB as that seems like a popular choice but I have no idea where to begin there.Does anybody have experience with the push method, and in particular using it with a Redis datastore? How exactly did this work out for you and are there any things I should take note of before writing in the implementation.

Submitted August 03, 2019 at 02:49PM by jesster2k10

No comments:

Post a Comment