System Design: Reddit

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

3 Comments

  1. Maher J on February 8, 2023 at 5:35 am

    why don’t you build a reactive actor system with an event store ? posts/upvotes/downvotes are events

  2. John on February 8, 2023 at 5:47 am

    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?

  3. Mangesh Shikrodkar on February 8, 2023 at 5:51 am

    tps is transactions per sec ?

Leave a Reply Cancel Reply