3 ms·
> Would it be wise to use something like Redis for follow/following and facebook style updates (Bill, John, Mary, and 4 others loved this photo; Bobby, Rick, an
by mryan 15y ago
> Would it be wise to use something like Redis for follow/following and facebook style updates (Bill, John, Mary, and 4 others loved this photo; Bobby, Rick, and Jane are now following you; etc)?
These examples are some of the best use cases for Redis. You can really reduce load on your DB by storing 'temporary' data in Redis, then using the DB to aggregate it. So in this example, Redis would keep track on how many 'likes' each photo has, making increments/decrements very quick. Once per day you could aggregate this info to permanent storage - then you have the best of both worlds.
IMO, one of the best uses for Redis is temporary storage of frequently changing, frequently accessed information.
> it's gaining experience with technologies that I've been dying to try, so whether it fails or not I got some useful experience from the project
One of my favourite philosophies, and why I love working in this industry... good luck on your journey!