System Design: Reddit
System design for Reddit by a FAANG Sr SWE that has reviewed over 100 design documents 📚
Request other problems for me to cover here:
https://forms.gle/afTKjMzW9nUMDasB7
Here’s a link to our discord channel where I organize the live discussions every weekend:
https://discord.gg/WM6BBX7kjx
#systemdesign #programming #technology
why don’t you build a reactive actor system with an event store ? posts/upvotes/downvotes are events
In my interviews, I’ve had interviewers suggest the subreddit as the shard key over the postId. Otherwise, you’d have to query all the shards when looking for a specific query.
Is it better to put an LRU cache in front of the PostDB since the hot and top posts are almost always from the last 24 hours, and shard on the postId?
tps is transactions per sec ?