# How to Answer System Design Questions like “Design Twitter.”

Aced (formerly Exponent) publishes a public search API over its indexed pages; the guide is at https://www.aced.io/agents/agent-access.

Source: https://www.aced.io/blog/how-to-answer-system-design-questions-like-design-twitter
Source observed: 2026-11-05T00:59:41.019Z
Last checked: 2026-11-05T00:59:41.019+00:00
Indexed: 2026-11-06T17:41:22.107+00:00

---

# How to Answer System Design Questions like “Design Twitter.”

**Technical Program Management**

By Anthony Pellegrino. Last updated a month ago.

We explain how to approach system-design interview questions for software engineers, technical program managers, and engineering managers. These interviews test broad systems thinking: how components work together, how to clarify requirements, and how to make and explain architecture tradeoffs. A typical prompt is:

> Walk me through how you would design <product> that will support the following features:
>
> Requirement 1  
> Requirement 2  
> etc

For further preparation, we offer the [System Design Interview Course](https://www.aced.io/courses/system-design-interviews?utm_source=blog&utm_campaign=blog-banner&src=blog).

## Design Twitter

When designing Twitter, first confirm the minimum requirements:

- Sending tweets
- Following other users
- Tweet feed/newsfeed
- Scalability
- Fast loading
- Reliability

Useful API endpoints include:

```text
sendTweet(message)
followUser(userID)
unfollowUser(userID)
getFeed(page)
```

A scalable design can place several API servers behind a load balancer. Store tweets in a database that is easy to shard and uses a data model capable of handling large read and write volumes. A separate newsfeed cache can serve feed requests, while a feed service refreshes that cache regularly.

We also provide a [Design Twitter course lesson and video](https://www.aced.io/courses/system-design/design-twitter?ref=exponent-blog.ghost.io).

## Design Flickr

For a Flickr-style application, define these requirements:

- View posts
- Like posts
- Comment on posts
- Create posts
- Follow other users

A simple initial deployment may not need load balancing or horizontal scaling. The interface can provide two views: all posts, and posts from followed users. Posts should support commenting, liking, following the author, and creating a new post. Paginate feeds so only a few posts load at a time.

A GET endpoint can retrieve posts for both views. A POST endpoint can create posts with attributes such as a photo URL and caption. SQL is suitable for non-photo data, while an S3-style solution can store images. Core tables include image posts, users, likes, comments, and followers. The `user_id` in the posts table is the foreign key connecting users to their posts; one user can have several posts, but each post has one author.

For a read-heavy social application, consider:

- Load balancers for increased traffic
- Microservices
- Query optimization
- A content delivery network
- Database sharding

## Design a Web Crawler

### Define the problem and clarify requirements

Clarify whether the crawler should prioritize certain pages, what data-storage constraints apply, and what kinds of content it must handle—for example, HTML only or other media types as well.

### Outline and implement the crawler

Every crawler must be able to:

1. Visit websites and scan their contents.
2. Find URLs in those contents.
3. Maintain URLs that have not yet been crawled.
4. Repeat until the URLs are crawled.

Breadth-first and depth-first are the two main approaches. A breadth-first crawler can keep discovered URLs in a first-in-first-out queue initialized with the starting URLs, visiting URLs in the order they are added. To visit a site, it makes an HTTP request and loads the page contents. After scanning a page, it extracts links using standard HTML libraries, adds them to the queue, and repeats.

The simpler model assumes HTML sites. Modern websites may also contain JavaScript applications, scripts, and APIs, so clarify the scope in an interview.

### Data processing and storage

If an average crawled page is **200 KB**, storing **1 million (10^6) pages** requires about **2 TB**:

```text
10^6 * 200 * 10^3 = 200 * 10^9 = 2 * 10^11 bytes = 2 TB
```

If more than a billion pages were each 200 KB, the total would be about **0.2 petabytes**. Storage depends on the use case: compressed cloud storage can support offline archives, while a distributed database may better support real-time search and querying. The volume makes in-memory storage impractical; data must be continuously uploaded through an ETL process—“extract, transform, load.”

### Make use of parallelization

To improve efficiency and reliability, we can:

- Use a multithreaded or asynchronous crawler.
- Run multiple crawler processes on one machine.
- Run multiple machines sharing a job queue.

Using all three approaches can provide the best result.

## Keys to Success

For any system-design question:

- Define and clarify the scope, including who and what you are solving for.
- Explain tradeoffs, downsides, and why you selected your approach.
- Keep answering the “why?” behind each design decision.

## Ace the System Design Interview

We help candidates prepare with company-specific interview guides, interview-prep courses, coaching, and a community of tech insiders and job seekers.

- [Browse technical program manager interview questions](https://www.aced.io/questions?role=tpm&src=blog)
- [Book time with a Technical Program Manager coach](https://www.aced.io/coaching?role=tpm)
  - Mock interviews
  - Career coaching
  - Resume review
- [Browse coaches](https://www.aced.io/coaching?role=tpm&src=blog)
- [Create your free account](https://www.aced.io/signup?src=blog)

We list a **96% rating (5,400 reviews)**.

### Related Courses

- [Software Engineering Interview Prep Course](https://www.aced.io/courses/software-engineering) — **5 courses, 41,700 students**. Practice data structures, algorithms, system design, people management, behavioral interviews, mock interviews, frameworks, and advice from senior candidates.
- [Technical Program Management Interview Prep Course](https://www.aced.io/courses/tpm) — **5 courses, 18,700 students**. Practice system design, program sense, cross-functional projects, behavioral interviews, mock interviews, frameworks, and advice from senior candidates.

### Related Blog Posts

- [What is System Design in Technical Program Management?](https://www.aced.io/blog/what-is-system-design-in-technical-program-management)
- [What is Program Sense in Technical Program Management?](https://www.aced.io/blog/what-is-program-sense-in-technical-program-management)
- [System Design Interview Prep: SQL vs NoSQL Databases](https://www.aced.io/blog/sql-vs-nosql)
- [What Is The Role of a Technical Program Manager?](https://www.aced.io/blog/what-is-the-role-of-a-technical-program-manager)

### Images and attributions

![Anthony Pellegrino](https://s3-us-west-2.amazonaws.com/pmlesson/2020/05/Screen-Shot-2020-04-30-at-1.15.43-PM.png)

![Article illustration](https://storage.ghost.io/c/a5/f5/a5f5c2f0-4c62-43c7-891b-662a0b6d68b3/content/images/pmlesson/2021/01/abstract-1050-1-.png)

![Twitter design image](https://images.unsplash.com/photo-1583330638480-50271adb037e?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MXwxMTc3M3wwfDF8c2VhcmNofDF8fHR3aXR0ZXJ8ZW58MHx8fA&ixlib=rb-1.2.1&q=80&w=1080)

Photo by [MORAN](https://unsplash.com/@ymoran?utm_source=ghost&utm_medium=referral&utm_campaign=api-credit) / [Unsplash](https://unsplash.com/?utm_source=ghost&utm_medium=referral&utm_campaign=api-credit).

![Twitter architecture](https://storage.ghost.io/c/a5/f5/a5f5c2f0-4c62-43c7-891b-662a0b6d68b3/content/images/pmlesson/2021/01/Screen-Shot-2021-01-14-at-2.14.09-AM.jpg)

![Flickr design image](https://storage.ghost.io/c/a5/f5/a5f5c2f0-4c62-43c7-891b-662a0b6d68b3/content/images/pmlesson/2021/01/flickr-881367_1280.png)

![Flickr interface](https://storage.ghost.io/c/a5/f5/a5f5c2f0-4c62-43c7-891b-662a0b6d68b3/content/images/pmlesson/2021/01/flickr_view_06840057ce.png)

![Flickr data model](https://storage.ghost.io/c/a5/f5/a5f5c2f0-4c62-43c7-891b-662a0b6d68b3/content/images/pmlesson/2021/01/datamodel_0525de14ea-1.png)

![Flickr architecture](https://storage.ghost.io/c/a5/f5/a5f5c2f0-4c62-43c7-891b-662a0b6d68b3/content/images/pmlesson/2021/01/architecture2_108b7372b2.png)

![Web crawler illustration](https://storage.ghost.io/c/a5/f5/a5f5c2f0-4c62-43c7-891b-662a0b6d68b3/content/images/pmlesson/2021/01/Search-engine-crawlers.png)

Googlebot image: [Googlebot](https://storage.ghost.io/c/a5/f5/a5f5c2f0-4c62-43c7-891b-662a0b6d68b3/content/images/pmlesson/2021/01/Googlebot.png), author Seobility, license [CC BY-SA 4.0](https://www.seobility.net/en/wiki/Creative_Commons_License_BY-SA_4.0?ref=exponent-blog.ghost.io).

![Web crawler architecture](https://storage.ghost.io/c/a5/f5/a5f5c2f0-4c62-43c7-891b-662a0b6d68b3/content/images/pmlesson/2021/01/WebCrawlerArchitecture.svg)

![Keys to success image](https://images.unsplash.com/photo-1508558936510-0af1e3cccbab?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MXwxMTc3M3wwfDF8c2VhcmNofDE0fHxzdWNjZXNzfGVufDB8fHw&ixlib=rb-1.2.1&q=80&w=1080)

Photo by [Xan Griffin](https://unsplash.com/@xangriffin?utm_source=ghost&utm_medium=referral&utm_campaign=api-credit) / [Unsplash](https://unsplash.com/?utm_source=ghost&utm_medium=referral&utm_campaign=api-credit).

---

[Read this page’s summary](https://www.aced.io/agents/api/public/v1/page-tldr?url=https%3A%2F%2Fwww.aced.io%2Fblog%2Fhow-to-answer-system-design-questions-like-design-twitter&trace=t_679ff9ab98f3)

## Ask a follow-up about this page

Need a more specific answer? Ask the exact question you have. It returns a fresh, cited answer from Aced (formerly Exponent)’s knowledge base. No account or API key required.

Open this URL with your own question, URL-encoded. Include your question in q. All research inputs are optional; no account or setup.

`GET https://www.aced.io/agents/agent/faq?q={question}&trace=t_679ff9ab98f3`

[Tool guide and examples](https://www.aced.io/agents/agent-access) · [OpenAPI](https://www.aced.io/agents/api/public/v1/openapi.json) · [Page TLDR form](https://www.aced.io/agents/agent-tools/page-tldr?url=https%3A%2F%2Fwww.aced.io%2Fblog%2Fhow-to-answer-system-design-questions-like-design-twitter). Opening a form does not execute a tool.