KatInterview

Tracing a Link Tap Through a Large Social Platform

System DesignModel answer
MediumModel answerSystem Designsystem-designnetworkingweb-performance

Last updated

Explain what happens from the moment a user taps a link in a social app feed until the destination renders, covering client, network, backend, security, privacy and monitoring.

Problem

You are working on a large social networking product with billions of users. A logged-in user is browsing their feed and taps or clicks a hyperlink inside a post.

Describe, from start to finish, everything that happens until the destination is visible to the user. Your answer should be organized as a timeline and cover:

  • What runs on the client when the click happens
  • How the request travels across the network
  • Which backend services take part and how data is fetched
  • How the response is delivered and rendered
  • Performance considerations
  • Security and privacy considerations
  • How the team would monitor the flow in production

Things to address

  1. State your assumptions first. For example: is the link internal (another profile or page) or external (a news article)? Is the client web or native?
  2. Show how the flow differs between internal and external links.
  3. Pick two or three areas and go deeper, including trade-offs and the numbers you would target.
  4. Mention at least one product trade-off, such as safety warnings versus friction for legitimate sites.

There is no single correct answer. A strong response is structured, prioritizes the interesting problems, and justifies its choices.

Hints

Hint 1

Open by clarifying the scenario (internal vs. external link, web vs. native, logged-in user) and set a latency target, so the rest of your answer has a frame.

Hint 2

Walk a strict timeline: client event handling, DNS/TLS/edge, backend authentication and data fetching, response streaming, rendering, then post-click logging. Call out where internal and external links diverge.

Hint 3

For external links, think about an intermediary redirect endpoint: what it validates, what it strips from the request, and what it logs. For internal links, think about client-side routing and prefetching.

Hint 4

Reserve time at the end for deep dives: a latency budget, tail latency from fan-out, server-side privacy checks on every object, and the cost of warning pages for legitimate publishers.