Facebook System Design Interview: Design Twitter

  Рет қаралды 73,933

Exponent

Exponent

Күн бұрын

Пікірлер: 73
@tryexponent
@tryexponent 3 жыл бұрын
Don't leave your system design interview to chance. Sign up for Exponent's system design interview course today: bit.ly/3NLRGRI
@stanleymakori777
@stanleymakori777 Жыл бұрын
But the create API is only factoring in text mesages. What about posts that have videos or images ?
@Nexatek
@Nexatek 7 ай бұрын
If the quality of your courses are as bad as the current mock interview then I would rather never try exponent ..
@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 10 ай бұрын
He skipped the data model as well
@usrenaem
@usrenaem 2 жыл бұрын
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.
@ashwin81088
@ashwin81088 5 ай бұрын
This is a good interview. You designed twitter in 20 mins. Haters will say it’s not good.
@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
@codingshinobi
@codingshinobi 10 күн бұрын
i dont think the names matter in System design interview. The interview is supposed to be of 45 minutes to 1 hour and the interviewer is interested in how you are approaching the problem and what databases you will be using, how to handle peak users, etc etc.
@anthonyc8579
@anthonyc8579 3 жыл бұрын
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 6 ай бұрын
He is kinda nervous or not prepared. He used a load balancer instead of a traffic manager....
@prashantchamoli7263
@prashantchamoli7263 3 ай бұрын
That was exactly my question like where would load balancer be geographically Can you please explain what traffic manager is in brief?
@subhashismohanty5420
@subhashismohanty5420 7 ай бұрын
The API names are not as per the standard. But overall good discussion.
@jojay6472
@jojay6472 Жыл бұрын
Someone made this guy an EM lol
@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
@AshishShah1512
@AshishShah1512 3 жыл бұрын
This interview feels like it is given by a New Grad Software Engineer.
@pratiks3044
@pratiks3044 3 жыл бұрын
Cant agree more with you.
@manoelramon8283
@manoelramon8283 Жыл бұрын
sql db for tweets will be slow... timeline and feeds are different things
@cpy
@cpy 2 жыл бұрын
This was pretty rough. If that’s what Exponent’s class teaches you then I’ll pass
@donotreportmebro
@donotreportmebro 2 жыл бұрын
not everyone wants to work at Albertsons, Walmart is ok for some
@cpy
@cpy 2 жыл бұрын
@@donotreportmebro you base the level of learning on what company you are applying to? Aim higher for yourself, forget the company
@saurabhtyagi1870
@saurabhtyagi1870 2 жыл бұрын
@@cpy Nice
@janezhang1550
@janezhang1550 2 жыл бұрын
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 2 жыл бұрын
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 8 ай бұрын
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.
@harshitkhandelwal8515
@harshitkhandelwal8515 10 ай бұрын
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 7 ай бұрын
agreed
@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
@rostislav_engineer
@rostislav_engineer 3 ай бұрын
thanks Hozefa!
@randxalthor
@randxalthor 3 жыл бұрын
Probably been asked on previous videos, but what software/website is used as the design visualization/scratchpad for the interviewees?
@reevuadhikary
@reevuadhikary 3 жыл бұрын
Whimsical !
@randxalthor
@randxalthor 3 жыл бұрын
@@reevuadhikary thank you!
@bhumir9279
@bhumir9279 Жыл бұрын
Appreciate content, but little average api design
@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 🤷🏻‍♂️
@souvikghosh5668
@souvikghosh5668 2 жыл бұрын
I was expecting more out of this. This was a waste of my time.
@shawnreichard5497
@shawnreichard5497 2 жыл бұрын
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?)
@justinmilner8
@justinmilner8 2 ай бұрын
Critiques: - Make it a conversation with your interviewer, engage them and give them space to speak - Detail the scale requirements of the system in more detail, using numerical calculations - Non functional requirements didn't have enough detail - clarify the consistency, availability, partition tolerance requirements - Don't include the verbs in the API naming - Mention load balancers, but don't include them in your diagram - Having multiple user boxes was redundant - Discuss push/pull mechanisms in more detail - Beware of adding too much complexity to a system, and just glazing over it - Don't include diagram items for replicas, at most, just mark the service/database - More detail of horizontal scaling should be included Overall, I think people preparing for interviews should view this as an example of what not to do.
@theafrodreamer
@theafrodreamer 6 ай бұрын
Candidate seemed nervous
@Hanso1o317
@Hanso1o317 3 жыл бұрын
What app is it in the background?
@vivekkaushik9508
@vivekkaushik9508 2 жыл бұрын
For a facebook program manager that's a potato quality webcam.
@tushardhingra
@tushardhingra 2 жыл бұрын
@exponent which tool is being used while answering the question?
@tryexponent
@tryexponent 2 жыл бұрын
Whimsical
@artyquantum7283
@artyquantum7283 20 күн бұрын
Jumping to APIs without even creating the design ? Isn't that bad in system design ?
@tommysuriel
@tommysuriel 3 жыл бұрын
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 2 жыл бұрын
no, its probably a red flag.
@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!
@calvio2835
@calvio2835 2 жыл бұрын
a failed interview for both interviewer and interviewee. such low quality
@anonymously7777
@anonymously7777 2 жыл бұрын
Lost at influencer service/timeline generation piece. Please elaborate to me how these services work
@ravindrabhatt
@ravindrabhatt 2 жыл бұрын
Looks like he didn't prepare well for the interview.
@innoirvinge8431
@innoirvinge8431 2 жыл бұрын
its like only 24m system design interviews are like at least 35m
@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 2 жыл бұрын
diversity hiring quotas
@abp4708
@abp4708 2 жыл бұрын
@@slavanikulin8069 helps to have interviewers that look like you. Less bias.
@harshitkhandelwal8515
@harshitkhandelwal8515 10 ай бұрын
He is at WealthFront and was at paypal for 8 years before that. Designing Twitter was asked in a FB interview hence the title
@42Siren
@42Siren 2 жыл бұрын
This is too basic design. Unless the candidate has less than 4 years of experience, this should get rejected
@befuture_ru
@befuture_ru 3 жыл бұрын
I like it 👍 What IDE do you use for the design prototyping?
@nipunaggarwal8730
@nipunaggarwal8730 2 жыл бұрын
Whimsical
@darkmadhavsharma
@darkmadhavsharma 2 жыл бұрын
cool makes sense.....
@Nexatek
@Nexatek 7 ай бұрын
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.
@JoyceCheng-hn3rm
@JoyceCheng-hn3rm Жыл бұрын
Does anyone else think this interviewer is annoying?
@harshitkhandelwal8515
@harshitkhandelwal8515 10 ай бұрын
Why? LMAO
System Design Mock Interview: Design Instagram
31:12
Exponent
Рет қаралды 507 М.
Can You Find Hulk's True Love? Real vs Fake Girlfriend Challenge | Roblox 3D
00:24
БУ, ИСПУГАЛСЯ?? #shorts
00:22
Паша Осадчий
Рет қаралды 2,9 МЛН
1, 2, 3, 4, 5, 6, 7, 8, 9 🙈⚽️
00:46
Celine Dept
Рет қаралды 115 МЛН
System Design Interview Walkthrough: Design Twitter
23:04
Hello Interview - SWE Interview Preparation
Рет қаралды 65 М.
System Design Interview: Design Netflix
27:50
Exponent
Рет қаралды 263 М.
System Design Interview: Design Amazon Prime Video
26:53
Exponent
Рет қаралды 107 М.
Design Twitter - System Design Interview
26:16
NeetCode
Рет қаралды 530 М.
Twitter System Design | System Design Interview Question
47:54
codeKarle
Рет қаралды 120 М.
Kafka Deep Dive w/ a Ex-Meta Staff Engineer
43:31
Hello Interview - SWE Interview Preparation
Рет қаралды 66 М.
Google system design interview: Design TikTok (with ex-Google EM)
1:09:18
IGotAnOffer: Engineering
Рет қаралды 196 М.
Instagram System Design | Meta | Facebook
16:38
ByteMonk
Рет қаралды 43 М.
System Design Mock Interview: Design WhatsApp
22:33
Exponent
Рет қаралды 88 М.
Can You Find Hulk's True Love? Real vs Fake Girlfriend Challenge | Roblox 3D
00:24