Skip to content

ONE QUESTION. YOUR REASONING.

Design Facebook post search

Design search over Facebook posts: people type a keyword and get matching posts, sorted by newest or by most liked, without using a search engine off the shelf.

System designSocial feed and timelineSeniorStaff

YOUR BRIEF

What to work through

Work through facebook post search as a spoken system design interview. Start by clarifying the scope, sketch a working design and explain the trade-offs behind your choices.

  • Create and like posts
  • Search posts by keyword
  • Sort results by recency or by like count

BEFORE YOU START

Constraints to discuss

  • Median query answers in under 500 ms
  • A new post is searchable within 1 minute
  • Every post can be found, old or unpopular ones too, even if slower
  • High request volume and high availability
Need a starting point?

Watch for these common gaps as you prepare:

  • Assuming search is read-heavy when writes dominate
  • Expecting sharding or replicas to fix an unindexed scan
  • Sorting all matches at query time
  • Estimating numbers that change no decision
  • Not asking whether personalisation is a firm requirement, which kills caching
Read: System design questions and who asks them

KEEP GOING

Your next question

Storage, files and linksDesign BitlyInfrastructure and platformDesign a rate limiterInfrastructure and platformDesign an A/B testing platformInfrastructure and platformDesign an ad click aggregator
Browse the collection
01

Pick a question

Read the brief and choose what you want to work on.

02

Talk it through

Explain your thinking. Respond to follow-ups. Draw when a design needs it.

03

Find your next improvement

Use the feedback from your interview to decide what to practise next.