Facebook System Design Interview: Design Twitter

  Рет қаралды 67,607

Exponent

Exponent

Күн бұрын

Don't leave your system design interview to chance. Sign up for Exponent's system design interview course today: bit.ly/3NLRGRI
Watch our mock Facebook system design interview. Kevin Wei (Coinbase PM) asks Hozefa (Facebook, Wealthfront EM) a system design question on designing Twitter.
Watch more videos here:
- Amazon SDE answers binary tree question: • Amazon Software Engine...
- Google SWE answers algorithms interview question: • Google Software Engine...
- Google TPM answers Tiktok system design interview question: • System Design Mock Int...
- Microsoft SWE answers algorithms interview question: • Microsoft Software Eng...
👉 Subscribe to our channel: bit.ly/exponentyt
🕊️ Follow us on Twitter: bit.ly/exptweet
💙 Like us on Facebook for special discounts: bit.ly/exponentfb
📷 Check us out on Instagram: bit.ly/exponentig
ABOUT US:
Did you enjoy this interview question and answer? Want to land your dream career? Exponent is an online community, course, and coaching platform to help you ace your upcoming interview. Exponent has helped people land their dream careers at companies like Google, Microsoft, Amazon, and high-growth startups. Exponent is currently licensed by Stanford, Yale, UW, and others.
Our courses include interview lessons, questions, and complete answers with video walkthroughs. Get access to hours of real interview videos, where we analyze what went right or wrong, as well as our 1000+ community of expert coaches and industry professionals, to help you get your dream job and more!
#systemdesign #facebook #software #engineeringmanagement #tech #entrepreneurship #exponent #tpm
Chapters -
00:00:00 - Introduction
00:00:43 - Answer
00:01:00 - Requirements
00:05:18 - API
00:08:02 - Design
00:22:12 - Tips

Пікірлер: 68
@tryexponent
@tryexponent 2 жыл бұрын
Don't leave your system design interview to chance. Sign up for Exponent's system design interview course today: bit.ly/2Nl5Bn5
@stanleymakori777
@stanleymakori777 Жыл бұрын
But the create API is only factoring in text mesages. What about posts that have videos or images ?
@rrrrr16able
@rrrrr16able Ай бұрын
If the quality of your courses are as bad as the current mock interview then I would rather never try exponent ..
@ashwin81088
@ashwin81088 5 күн бұрын
This is a good interview. You designed twitter in 20 mins. Haters will say it’s not good.
@nj1204
@nj1204 2 жыл бұрын
We should at least do some back-envelope analysis on the MAU, DAU, QPS,etc for the non-functional requirement. We should also make it more interactive, i.e. check the feedback of the interviewer before jumping into the details of the API's. Maybe ask the interview to see if he wants to see which one first: high-level design, API, or data model?
@wfan2844
@wfan2844 2 жыл бұрын
QPS, Storage and Network Bandwith estimation are required.
@harshitkhandelwal8515
@harshitkhandelwal8515 5 ай бұрын
He skipped the data model as well
@usrenaem
@usrenaem Жыл бұрын
Thanks for the content! API structure is kind of out of common way to design restful apis. Don’t use verbs when it is possible.
@Crack_interview_with_sim
@Crack_interview_with_sim 2 жыл бұрын
Very Bad idea giving name like gettweet ,createtweet . Basic naming of Rest API end points . Considering tweet as a resource just have GET and POST on it
@adeelirshad228
@adeelirshad228 Жыл бұрын
Agree.
@comickracks6333
@comickracks6333 Жыл бұрын
Yes that's the design smell
@anthonyc8579
@anthonyc8579 2 жыл бұрын
The geographic load balancing to different API servers part made no sense to me. When a user makes a request to a load balancer, they make an API request specifically to the load balancer and receive from it directly, so the don't make contact with the API servers at all. If you put the API servers in different regions, that would only be with respect to the load balancer, not the user themselves, so it wouldn't help at all since the load balancer is still in the same region. You'd need to do the geographic routing first before the load balancing step to do this properly, aka a traffic manager.
@kk20299
@kk20299 Ай бұрын
He is kinda nervous or not prepared. He used a load balancer instead of a traffic manager....
@cpy
@cpy 2 жыл бұрын
This was pretty rough. If that’s what Exponent’s class teaches you then I’ll pass
@igorborovkov7011
@igorborovkov7011 2 жыл бұрын
not everyone wants to work at Albertsons, Walmart is ok for some
@cpy
@cpy 2 жыл бұрын
@@igorborovkov7011 you base the level of learning on what company you are applying to? Aim higher for yourself, forget the company
@saurabhtyagi1870
@saurabhtyagi1870 Жыл бұрын
@@cpy Nice
@randxalthor
@randxalthor 2 жыл бұрын
Probably been asked on previous videos, but what software/website is used as the design visualization/scratchpad for the interviewees?
@reevuadhikary
@reevuadhikary 2 жыл бұрын
Whimsical !
@randxalthor
@randxalthor 2 жыл бұрын
@@reevuadhikary thank you!
@Hanso1o317
@Hanso1o317 2 жыл бұрын
What app is it in the background?
@shawnreichard5497
@shawnreichard5497 Жыл бұрын
Would it be good design to have the timeline as a queue. The queue would have a size that could perhaps be increased for people with lots of traffic. That way we store items that would be in the queue in the faster access database space and perhaps the stuff that would be maybe 3 queue away would perhaps be stored in a separate less frequently accessed storage (E3 perhaps?)
@befuture_ru
@befuture_ru 2 жыл бұрын
I like it 👍 What IDE do you use for the design prototyping?
@nipunaggarwal8730
@nipunaggarwal8730 2 жыл бұрын
Whimsical
@janezhang1550
@janezhang1550 Жыл бұрын
For the timeline database, would it make more sense to store a list of tweet ids per user and then query the user database at runtime to compile the tweet text?
@DigitalAlligator
@DigitalAlligator Жыл бұрын
if you only store id, you need to use the id to query the database again, you still need to visit the same database. While in the timeline generator, the timeline already been build and just get everything all-in-once.
@gustavoalves4324
@gustavoalves4324 3 ай бұрын
In this case we are sacrificing storage and consistency to have low latency, which is one of the non functional requirements. It would be way slower to fetch the timeline and then populate with the tweets from the tweets database, not to say we would be coupling the timeline service with the database used for creating tweets.
@jojay6472
@jojay6472 11 ай бұрын
Someone made this guy an EM lol
@tushardhingra
@tushardhingra Жыл бұрын
@exponent which tool is being used while answering the question?
@tryexponent
@tryexponent Жыл бұрын
Whimsical
@rajeshg3570
@rajeshg3570 2 жыл бұрын
To me it sounded like..this is very very high level design ..but in my opinion he could have added some details around some of the below aspects or at least get clarification on requirements to trim out some of these.. 1. Capacity planning 2. Type of DB and reason behind choosing that 3. Security aspects 4. High level db design 5. Tech stack ..for example.. aws s3 or cloud front or redis or Kafka etc 6. Scaling .. 7. peek load handling 8. caching mechanism
@anonymously7777
@anonymously7777 2 жыл бұрын
Lost at influencer service/timeline generation piece. Please elaborate to me how these services work
@manoelramon8283
@manoelramon8283 Жыл бұрын
sql db for tweets will be slow... timeline and feeds are different things
@alexfomin1207
@alexfomin1207 Жыл бұрын
What tool for creating the diagrams are you using?
@tryexponent
@tryexponent Жыл бұрын
Hi Alex! The whiteboard tool being used here is “Whimsical”. They have a free and paid version so do check them out if you are interested!
@harshitkhandelwal8515
@harshitkhandelwal8515 5 ай бұрын
When interviewer asked for 80:20 question, I knew he was expecting to listen cache in the answer but the interviewee failed to catch that.
@mohammadmonirhossain6214
@mohammadmonirhossain6214 2 ай бұрын
agreed
@subhashismohanty5420
@subhashismohanty5420 2 ай бұрын
The API names are not as per the standard. But overall good discussion.
@jimmycheong7970
@jimmycheong7970 2 жыл бұрын
Can definitely tell that this interviewee watched the Success In Tech version for this video. Like Chinese whispers, where unfortunately a lot of things are discussed at a high level and not enough rationale is explored. I mean he even says Lady Gaga for his example for influencers, word for word as in the Success in Tech video. Just saying 🤷🏻‍♂️
@AshishShah1512
@AshishShah1512 2 жыл бұрын
This interview feels like it is given by a New Grad Software Engineer.
@pratiks3044
@pratiks3044 2 жыл бұрын
Cant agree more with you.
@theafrodreamer
@theafrodreamer 28 күн бұрын
Candidate seemed nervous
@tommysuriel
@tommysuriel 2 жыл бұрын
He didn't do any capacity calculations such as bandwidth and storage, is that ok for these interviews?
@wfan2844
@wfan2844 2 жыл бұрын
probably not. If you ever interviewed with facebook, their prep doc says those calculations are 100% required.
@vineethsai1575
@vineethsai1575 Жыл бұрын
no, its probably a red flag.
@innoirvinge8431
@innoirvinge8431 2 жыл бұрын
its like only 24m system design interviews are like at least 35m
@darkmadhavsharma
@darkmadhavsharma 2 жыл бұрын
cool makes sense.....
@bhumir9279
@bhumir9279 8 ай бұрын
Appreciate content, but little average api design
@ravindrabhatt
@ravindrabhatt 2 жыл бұрын
Looks like he didn't prepare well for the interview.
@vivekkaushik9508
@vivekkaushik9508 Жыл бұрын
For a facebook program manager that's a potato quality webcam.
@nicholasmanning4307
@nicholasmanning4307 2 жыл бұрын
One of the most horrible and unrealistic design interviews out there on the internet. Asks almost no questions (fundamental to design interviews). Not collaborative (also fundamental to design interviews). Doesn't add a space in front of "(" when writing in English. Super distracting and unprofessional. Breaks basic RESTful conventions with routes like /create/tweet
@rrrrr16able
@rrrrr16able Ай бұрын
This is a bad example of how you should not approach a system design interview
@pinkylover911
@pinkylover911 2 жыл бұрын
what is the meaning of mvp?
@yassinezarir6428
@yassinezarir6428 2 жыл бұрын
Minimum Valuable Product.
@tryexponent
@tryexponent 2 жыл бұрын
Minimum viable product - the most basic version of a product you can ship to start getting feedback from users.
@souvikghosh5668
@souvikghosh5668 2 жыл бұрын
I was expecting more out of this. This was a waste of my time.
@calvio2835
@calvio2835 Жыл бұрын
a failed interview for both interviewer and interviewee. such low quality
@42Siren
@42Siren Жыл бұрын
This is too basic design. Unless the candidate has less than 4 years of experience, this should get rejected
@JoyceCheng-hn3rm
@JoyceCheng-hn3rm Жыл бұрын
Does anyone else think this interviewer is annoying?
@harshitkhandelwal8515
@harshitkhandelwal8515 5 ай бұрын
Why? LMAO
@fartzy
@fartzy 2 жыл бұрын
This design was so mediocre
@eurobeesbees3843
@eurobeesbees3843 2 жыл бұрын
This is a bad video. I would reject this candidate. The API design is too abstract, the get API is not right. FB system design interviews are surely not this easy. This person is very lucky to be at FB.
@implemented2
@implemented2 2 жыл бұрын
And where are you?
@slavanikulin8069
@slavanikulin8069 Жыл бұрын
diversity hiring quotas
@abp4708
@abp4708 Жыл бұрын
@@slavanikulin8069 helps to have interviewers that look like you. Less bias.
@harshitkhandelwal8515
@harshitkhandelwal8515 5 ай бұрын
He is at WealthFront and was at paypal for 8 years before that. Designing Twitter was asked in a FB interview hence the title
Handling Verbal Offers | Salary Negotiation Interview
8:18
Exponent
Рет қаралды 3,2 М.
Make me the happiest man on earth... 🎁🥹
00:34
A4
Рет қаралды 7 МЛН
100❤️ #shorts #construction #mizumayuuki
00:18
MY💝No War🤝
Рет қаралды 20 МЛН
🍟Best French Fries Homemade #cooking #shorts
00:42
BANKII
Рет қаралды 43 МЛН
How to Crack Any System Design Interview
8:19
ByteByteGo
Рет қаралды 297 М.
Twitter system design | twitter Software architecture | twitter interview questions
36:56
Design Twitter - System Design Interview
26:16
NeetCode
Рет қаралды 451 М.
System Design Interview: A Step-By-Step Guide
9:54
ByteByteGo
Рет қаралды 585 М.
How I Mastered System Design Interviews
10:22
Ashish Pratap Singh
Рет қаралды 82 М.
Google system design interview: Design Spotify (with ex-Google EM)
42:13
IGotAnOffer: Engineering
Рет қаралды 980 М.
System Design Interview: Design Amazon Prime Video
26:53
Exponent
Рет қаралды 80 М.
Дайте газа! 😈 #shorts
0:27
Julia Fun
Рет қаралды 8 МЛН
Они убрались очень быстро!
0:40
Аришнев
Рет қаралды 919 М.
ХАН АТА НАЛЕТЕЛ НА ХАСАНА
0:45
RFC Fighting Championship
Рет қаралды 359 М.
Dog VS Cat? WRITE YOUR CHOICE! 🧡💜
0:13
YOU and ME
Рет қаралды 10 МЛН
Cute 🐒😂💞👍😱
0:11
Tuğkan Efe
Рет қаралды 7 МЛН