Meta system design interview: systems design and product architecture
What Meta's own interview guide says about its two design interviews, the four focus areas the interviewer scores, the example questions Meta lists, and a worked feed API for the product architecture interview.
GuideAppliedMeta guide12 min readUpdated
- 1 architecture diagram
- 2 data models
- 1 API design
- 5 interviewer follow-ups
- 4 self-checks
On this page10 sectionsHLDLLDSenior depth
Read first: A framework for system design interviews
- Tell Meta's two design interviews apart, systems design and product architectural design, and prepare for the one you are given.
- Use the four focus areas Meta publishes (problem navigation, solution design, technical excellence, technical communication) as a plan for the 45 minutes.
- Design a feed API with cursor pagination, stable ordering and room for product change, and explain each choice.
- Answer the follow-ups that turn a product design into a systems design and back.
Meta's guide gives the design interview more space than any other section. It says the interview is 45 minutes, that it "covers the design of complex systems or products and the tradeoffs within your design", and that the question "will be something very high-level and it will be up to you to drive the conversation". This lesson turns that into a plan.
| Systems design | Product architectural design | |
|---|---|---|
| Meta's description | "More focused on distributed systems, scalability, performance and efficiency" | "More focused on API design, usability and utility" |
| Example questions Meta lists | Design a URL shortener. Build a Facebook chat. Architect a worldwide video distribution system | Design a service or product API. Design a chat service or a feed API. Design an email server |
| Where the time goes | Capacity, storage, partitioning, failure, cost | The client and the server, the API's shape, the data model, how the product can change |
| Lessons here | URL shortener, chat system, video streaming | API design, and the worked design below |
Meta's guide says which interview you get "may be systems or product design focused depending upon the specific position", and to ask your recruiter if you are unsure. Ask. The two reward different preparation, and an answer full of shard counts to a question about an API's usability misses what is being scored.
Meta's guide says the interviewer assesses four focus areas. They map cleanly onto the minutes you have.
| Focus area | What Meta's guide asks | Minutes | What it looks like |
|---|---|---|---|
| Problem navigation | Can you organise the problem space, reduce ambiguity, find the most critical problems, and "define a requirement set to design to"? | 0 to 8 | Questions, numbers, a short written list of what is in and out |
| Solution design | Can you design a working solution for the whole problem or its pieces, and keep the big picture? | 8 to 22 | One diagram that works end to end before any part is polished |
| Technical excellence | Can you go into detail when needed, name dependencies and trade-offs, and reduce risks and failure points? | 22 to 38 | Two deep dives you choose, each with the alternative you rejected and why |
| Technical communication | Can you explain your reasoning, and "understand and address feedback from the interviewer"? | Throughout | Say what you are about to do; when the interviewer pushes, change the design out loud |
The last one is easy to lose. If the interviewer suggests a different approach and you defend your first idea for five minutes, you have shown them the opposite of addressing feedback.
For systems design, the guide expects you to show "an understanding of the low-level restraints and how they affect the high-level goals", and lists areas to discuss. They make a good closing checklist:
| Area | Meta's one-line definition | A question to ask your own design |
|---|---|---|
| Testability | Gaining confidence that the components are correct | How would I know this part is wrong before a user does? |
| Usability | The customer's experience and how to evolve it quickly | What does the user see while this is slow? |
| Extensibility | Changing the system over time | Which decision would be hardest to reverse? |
| Security | Surviving denial of service, spoofing, tampering, repudiation | Who can call this, and what can they see? |
| Portability | Execution in different environments | What is tied to one platform or region? |
| Availability | How the system survives failures | What happens when this box is down? |
| Scalability | How the system can grow over time | What breaks first at ten times the load? |
| Operational characteristics | Diagnosing or debugging problems when they occur | What would I look at when this pages someone? |
For product architecture, the guide says you should know enough to weigh design considerations in: storage data models, scalability, design patterns, data ownership, protocols, data formats, client-server design, "designing for long-term vs. complexity", and accommodating possible product changes. It adds that Meta is not looking for an expert in all of them, and that you should "understand when to consult an expert".
The guide gives its own example of a vague question, "How would you architect the front-end for a messaging system?", and the requirements questions to ask first. They are worth copying as a pattern:
- How many users are we talking about?
- What should the experience be while you are waiting for confirmation?
- How will you show error states?
- What are the latency requirements for sender to receiver delivery?
- What features do we need to support?
- What operations does the data store need to support?
- Do you push new messages to clients, or rely on a pull-based model?
Notice the mix: scale, product behaviour, failure as the user sees it, then storage and transport. That mix is the product architecture interview in miniature.
"Design a chat service or a feed API" is on Meta's list of product architecture examples. This is our design for practice, not Meta's architecture. The news feed lesson covers the systems side (fan-out, ranking, storage); this section covers the API and the client.
Problem navigation. Questions first, with the answers assumed here:
- Who calls it? Our own mobile and web apps, and later third-party apps.
- What is in the feed? Posts from accounts the user follows, ranked, with text, media and counts.
- How fresh? New posts within a minute. A pull to refresh must show them.
- How long is a session? A user scrolls perhaps 50 to 200 items.
- What changes while they scroll? Ranking shifts, posts are deleted, counts change.
Requirements to design to. A page of the feed in one request. Scrolling never shows the same post twice or skips one, even though the ranking changes underneath. Old app versions keep working when the product adds a new kind of post.
The decisions, each with what it prevents:
- A cursor, not a page number.
page=3means "skip 40", and the list has changed since page 2, so the user sees repeats and gaps. An opaque cursor means "continue after this point in the list I was given". - A ranked list per session. On the first request the feed service ranks once and stores the list of post ids. Later pages read from that list, so scrolling is stable. Pull to refresh starts a new session. The cost is memory per active user and a feed that is a few minutes stale while scrolling, which is what users expect.
- Ids first, content second. The stored list holds ids only. Content is fetched from the service that owns it at read time, so a deleted or hidden post disappears from the next page with no extra work. This is the "data ownership" item on Meta's list: the feed never keeps its own copy of a post.
- Items the client can skip. Every item has a
type. A client that does not know a type skips it. A new kind of post can then ship without breaking old apps, which answers "accommodating possible product changes". - Counts are approximate and separate. Exact like counts on every item would put a hot write path on the read path. Attach a recent value and let it be slightly behind.
- Partial responses. If the counts service is slow, return the page without counts and mark them missing. The feed loading matters more than the numbers on it.
session_idtext
random; part of the cursor
PKuser_idbigint
post_idslist
ranked once, when the session starts
created_attimestamp
The cursor is session_id plus an offset, signed so a client cannot forge one.
post_idbigint
PKauthor_idbigint
INDEXtypetext
text, photo, video, and whatever ships next
bodytext
visibilitytext
checked on every read, never cached in the feed
created_attimestamp
- auth
- bearer token
- partial
- when the counts service is slow the answer is still 200, with "partial" true and counts left out
- 200{ "items": [{ "id": "...", "type": "photo", "author": {...}, "body": "...", "counts": { "likes": 1200 } }], "next_cursor": "...", "partial": false }
- 400the cursor is malformed or was signed for another user
- 410the cursor's session expired; start again with no cursor
- 429too many requests, retry after the Retry-After header
Three details worth saying aloud. limit has a server maximum, so a client cannot ask for ten thousand items. An expired cursor is a clear 410, not an empty page, so the app knows to refresh. And the response says when it is partial, so the app does not show zero likes.
Interviewer follow-upL5The user scrolls for an hour. What happens when the session expires?How to answer
The next request returns 410 and the app starts a new session without a cursor. To avoid showing posts the user has just seen, the app sends the ids of the last few items it displayed, or the service keeps a short "recently shown" set per user and filters the new ranking with it. Say the trade-off: a longer session lifetime costs memory for every active user, a shorter one makes this path common.
Interviewer follow-upL5A post is deleted while it sits in a stored session. Does the user see it?How to answer
No, because the session stores ids and the content is fetched from the post service on every page. A deleted post fails hydration and is dropped, so that page has 19 items, not 20. That is acceptable. Filling the gap by fetching one more id is possible and adds a second round trip for a rare case.
Interviewer follow-upL6Now make it a systems design question: 500 million daily users.How to answer
The API does not change, which is the point of designing it first. Behind it, the ranked list is built from precomputed candidates (fan-out on write for most authors, on read for the few with huge followings), the session store is partitioned by user id, and hydration is batched and cached per post. Estimate before designing: 500 million users opening the feed ten times a day is about 58,000 session starts a second on average, so ranking must be cheap or precomputed.
Interviewer follow-upL6Third-party developers will use this API. What changes?How to answer
Versioning becomes a contract: additive changes only within a version, and a published deprecation window. Rate limits are per application and per user. Fields are filtered by the permissions the user granted that application, which is a data ownership question again. Cursors stay opaque so the internals can change. And errors need stable machine-readable codes, because someone else's code will branch on them.
Interviewer follow-upL7Product wants ads and "suggested posts" in the feed. Where do they go?How to answer
Into the ranked list as items with their own type, inserted when the session is built, so pagination stays stable and old clients skip types they do not know. Keep the insertion rule in the feed service, not in the client, so it can change without an app release. The risk to name is coupling: if the ads service is slow, the feed must still load, so give it a strict time budget and build the session without ads when it misses.
Meta's guide describes one 45-minute design interview in two kinds: systems design, about distributed systems, scale and efficiency, and product architectural design, about API design, usability and utility. The interviewer scores problem navigation, solution design, technical excellence and technical communication, and expects you to drive. Ask which kind you have, start with requirements the way Meta's own example does, draw one design that works end to end, go deep twice, and change the design out loud when the interviewer pushes.
QuestionHow does Meta's guide distinguish its two design interviews?Reveal answer
Systems design is "more focused on distributed systems, scalability, performance and efficiency". Product architectural design is "more focused on API design, usability and utility". Which one you get depends on the position, and the guide says to ask your recruiter.
QuestionName the four focus areas of the design interview.Reveal answer
Problem navigation, solution design, technical excellence and technical communication. The last includes understanding and addressing feedback from the interviewer.
QuestionWhy does the feed API use a cursor tied to a session instead of a page number?Reveal answer
Because the ranking changes while the user scrolls. A page number means "skip N", which repeats and skips posts when the list shifts. A cursor into a list that was ranked once for the session keeps scrolling stable.
QuestionWhich parts of this guide are published by Meta and which are reported by candidates?Reveal answer
Published by Meta: the two kinds of design interview, the four focus areas, the areas to discuss, the preparation tips and the example questions. Reported by candidates: nothing in this guide. The feed API design is our own practice design.
- Meta Careers, Preparing for Your Full Loop Interview at Meta (opens in a new tab): the page that offers the Software Engineer Full Loop Interview Guide as a download. Page and guide read on 14 November 2026. The guide carries no date. All quotations in this lesson are from that guide.
- Meta, Engineering at Meta (opens in a new tab): Meta's engineering blog. The guide's preparation tips say to read engineering blogs about approaches that worked for big companies; confirmed to load on 14 November 2026, and not quoted here.
- Not used: candidate reports. None were checked for this edition, so nothing in this lesson is reported by candidates.