Stack Overflow 😎 Low Level Design 👨‍💻 👩‍💻 Google Interview Question Solved🤓System design for all 😇

  Рет қаралды 26,303

Soumyajit Bhattacharyay

Soumyajit Bhattacharyay

Күн бұрын

Пікірлер: 103
@aisakyunhotahai8130
@aisakyunhotahai8130 3 жыл бұрын
I Learned a LOT LOT LOT from this SERIES. plz continue this series, Now it feels like a game to see the requirements, try to design ourselves and then see your fabulous solution.
@mehnaazmohiuddin
@mehnaazmohiuddin 3 жыл бұрын
the content in this video is better than most videos . especially those go beyond 30 mins. Excellent work. Cant thank enough for spending your precious time on showing us what a good design looks like.
@vishwastyagi2770
@vishwastyagi2770 3 жыл бұрын
Hi Soumyajit, Thanks for making this video. Efforts are commendable. I have some questions 1. User class has "Search searchObj"; Could you please help with Search class structure. 2. What is the reason for keeping searchObj in the User class? User can be searching many question at a time. 3. Could you please help with the design of search functionality? Like insert/update are less than search, then can we implement searching questions. 4. Shouldn't EditHistory class contain List of previousQuestion and updatedQuestion, as the question can be modified many times or may be you can mention that we maintain list of previousQuestion and updatedQuestion in DB but while fetching we consider only the latest. Thank you
@mcraven281
@mcraven281 3 жыл бұрын
This channel is going places.. I still struggle with oops concepts but i guess with this series I may improve. I wish I have mentor like you 😭
@mayurkharche9087
@mayurkharche9087 3 жыл бұрын
Thanks for you efforts, such a nice content and learning for me. I would like to suggest "Food Vending Machine" for LLD.
@dextermorgan1287
@dextermorgan1287 4 жыл бұрын
Nice Work !! Few suggestions : 1. Users can be watching some entities and should be notified once any of the subscribed entities have any update. 2. Observer design pattern seems to be a fit for user subscriptions and notifying users. 3. Can you please explain more the pattern behind keeping searchObj in User class. Say a system to system integration happens then will the calling client be invoking search on user obj ? 4. Also any other design pattern fitting in the solution ?
@sameer9368
@sameer9368 2 жыл бұрын
Great video....keeping posting such video
@rishibharadwaj7988
@rishibharadwaj7988 3 жыл бұрын
Fine! I don't subscribe that often but you earned my respect.
@sakshamsrivastava6280
@sakshamsrivastava6280 2 жыл бұрын
this is just amazing dude. wow!!!!!!
@abhishekkapoor7955
@abhishekkapoor7955 Жыл бұрын
i think addquestion should not be inside question entity itself and addAnswer should be in question entity. Nice work anyway!
@akshitmehra8110
@akshitmehra8110 Жыл бұрын
One question, in the stackoverflow video, where did we use polymorphism? Thanks.
@sumitrairkt
@sumitrairkt 11 ай бұрын
addComment() Comments can be added to a question, an answer or to a comment itself. So its behavior is changing while the action is same
@saisreenath5189
@saisreenath5189 3 жыл бұрын
1) Hi Sowmyajit, I don't understand the part why we need addQuestion() in Question class. I belive addQuestion is already present in Member class.
@pradeepmehra6879
@pradeepmehra6879 3 жыл бұрын
i also have the same opinion. I think there should be createNewQuestion function in Question class which should be responsible for returning a new question object
@Vivek-je1og
@Vivek-je1og 3 жыл бұрын
Great content of LLD of videos, could you pls also involve DB side things as well. Thanks for your efforts. It really helps!!!
@rajanjain1156
@rajanjain1156 Жыл бұрын
Excellent explanation
@jaivardhansingh1564
@jaivardhansingh1564 3 жыл бұрын
Should addQuestion() be a part of User entities like Member etc or it should be in Question class? Becausing adding a question will be done by some kind of user. I am eager to here views of others on this. Kindly correct me if I am wrong.. BTW, a great video
@jaivardhansingh1564
@jaivardhansingh1564 3 жыл бұрын
An answer or a question entity can't perform any action on its own. They, why we should keep methods in those classes
@madhavideshpande5061
@madhavideshpande5061 2 жыл бұрын
I have same doubt. As members will be adding the questions why do we have AddQuestion() as part of question class as well? What is the significance of AddQuestion method in question class?
@nerdinboots7494
@nerdinboots7494 3 жыл бұрын
Awesomeness level 👌
@SoumyajitBhattacharyay
@SoumyajitBhattacharyay 3 жыл бұрын
Glad you think so!
@DibyajyotiDhar
@DibyajyotiDhar Жыл бұрын
In EditHistroy, previousQuestion and updatedQuestion should be String, i think, because Question already has a list of EditHistroy.
@pavanjois4343
@pavanjois4343 4 жыл бұрын
Thanks for such nice video content. Could you please make a video on LLD of elevator ? thanks.
@Manishsharma-tj4nn
@Manishsharma-tj4nn 4 жыл бұрын
Thanks, the way you presented this video is the best. Thanks a lot
@SoumyajitBhattacharyay
@SoumyajitBhattacharyay 4 жыл бұрын
Thanks so much for the feedback. Do share this video among your friends!
@Manishsharma-tj4nn
@Manishsharma-tj4nn 4 жыл бұрын
I was asked one question recently in LLD . Design Workflow management platform: like tasks A -> B -> C -> E -> D -> F and if any flow have error then resume or terminate like options should be their. I purposed them spring batch jobs. For which they asked me to design without that. I failed that round. He even grilled me on topic : when to throw a exception/error and when to handle it , if you are designing a library or a framework.
@fatemarangoonwala9754
@fatemarangoonwala9754 9 ай бұрын
Explained very well
@Prem19sept
@Prem19sept 2 жыл бұрын
I have a question. Here Admin can also block a moderator. But you have taken to delete only member.
@nirjharpaul
@nirjharpaul 3 жыл бұрын
Why not consider interface segregation. Just define implement IRole interface for different roles in the system. And associate this IRole with different actions. User should what are roles he or she has. Roles should allow some action for a particular user. Basically the low level should have two types of user simpleuser assign the role Readquestion and registered user having account information. Assign required roles. Wrap the task in command like create command can create a question or comment vote command can up vote or down vote a question or answer.
@nikunjkumar8320
@nikunjkumar8320 4 жыл бұрын
Very clear explanation. Thank you for such awesome content. It will be very helpful if you bring database design content also.
@SoumyajitBhattacharyay
@SoumyajitBhattacharyay 4 жыл бұрын
Yes i will bring them as well! 💃
@sumanchoudhary-xe2qm
@sumanchoudhary-xe2qm 2 жыл бұрын
I am wandering how can Entity have List since comment is also a entity...I mean how can a parent class have child class?
@mehnaazmohiuddin
@mehnaazmohiuddin 3 жыл бұрын
Hi Soumyajit Bhattacharyay, in the Answer class we have addAnswer
@parasmadaan342
@parasmadaan342 3 жыл бұрын
Just a Question Might Sound Like a Noob in this. But Why we have stored the whole Member Object in Entity Class We can store a memberID or Instead of a GuestID we can use a UserID which is inherited and that id Can also be used to fetch the Details for the Member?
@somadevmishra
@somadevmishra 2 жыл бұрын
thanks, nice one. However stack overflow also supporting multiple language. Is it a part of the tag or there is a separate class for that?
@rahulsharma5030
@rahulsharma5030 4 жыл бұрын
Nice video.Some doubts: 1. Comment should not extend entity as Comment cannot have list of Comments as per stackoverflow design.It will make things complex,? 2.In user class why do we need flag api, vote api can do this? 3.In vote entity ,wither both the flag and vote takes member or both dont.I dont see why one needs and other not.I would prefer not to pass
@SoumyajitBhattacharyay
@SoumyajitBhattacharyay 4 жыл бұрын
Yes i know, but i though technically nothing is stopping them from implementing it as many websites do allow reply over replies. Wanted to show case the same through design as i have seen quite a few interview questions around the same
@rahulsharma5030
@rahulsharma5030 4 жыл бұрын
@@SoumyajitBhattacharyay ok.well thats nice.It is easy to implement recursive comments then:).Can you see other two points also?I have update my comment but you replied before that:)
@rahulsharma5030
@rahulsharma5030 4 жыл бұрын
Also i think comment/answer should not have close operation.I dont know what does that mean.It can be deleted,but closing is only for question.How can we model this thing?
@rahulsharma5030
@rahulsharma5030 4 жыл бұрын
hey, can you tell me above point? I think votetype is not same for question/answer/comment as i told above, it changes the design completely
@rajsaraogi
@rajsaraogi 2 жыл бұрын
Which design pattern have you followed in this..
@tusharrawat8768
@tusharrawat8768 2 жыл бұрын
Hey Soumyajit, you have not provided the implementation of any functionalities (methods) in any of your LLD problem. Are we not required to do that in an LLD interview. Secondly you always adds all the functionalities in the model classes itself. Though I believe in a real LLD interview we are supposed to add the behaviours in the separate service classes instead of directly define them in the models.
@tusharrawat8768
@tusharrawat8768 2 жыл бұрын
Please correct me If I am wrong.
@noodle7503
@noodle7503 2 жыл бұрын
@@tusharrawat8768 you generally don't implement the method unless asked
@avi007i
@avi007i 3 жыл бұрын
Do you need addAnswer in Answer class and addQuestion in Question class? Won't it just be taken care by the constructors of those respective classes ?
@umapathybabu8397
@umapathybabu8397 4 жыл бұрын
Thanks for content Soumyahit. Does having addAnswer() method in Question class instead of in Answer class will it make sense?
@rahulsharma5030
@rahulsharma5030 4 жыл бұрын
yes i agree with you.
@tanmaykapil5362
@tanmaykapil5362 3 жыл бұрын
Sir , which language is best suited for low level system design acc to your experience... Java or c++
@HaiderAli-co9jl
@HaiderAli-co9jl 2 жыл бұрын
python
@mcraven281
@mcraven281 3 жыл бұрын
Why do we need addComment in entity class because members class already has tht function which would take entity as input
@siddhantarath2199
@siddhantarath2199 3 жыл бұрын
It's been a while now. Please upload LLD videos. These are really useful
@Manish-qt2bp
@Manish-qt2bp Жыл бұрын
Why addAnswer in Answer class as well as in Member class. If you could tell me please help. I will be grateful.
@PratishthaChoudhary0308
@PratishthaChoudhary0308 4 жыл бұрын
Great video! We can also add a topic class here, as questions posted belong to certain topics, or are we considering tags and topics to be same?
@SoumyajitBhattacharyay
@SoumyajitBhattacharyay 4 жыл бұрын
Kind of. Here tags are like the tags that we can add that will tell what are covered in this question. It will make search easier for the end user
@MayurVarma
@MayurVarma 4 жыл бұрын
Can you add some diagrammatic representations in your LLD videos
@SoumyajitBhattacharyay
@SoumyajitBhattacharyay 4 жыл бұрын
Sure i will do soo. In the previous videos i had added use case diagrams. Please do check this out: kzbin.info/www/bejne/fpOZiJiGqbWEnsk And let me know what other diagrams would you like to have. I will probably split the videos in multiple parts and add them then!
@MayurVarma
@MayurVarma 4 жыл бұрын
@@SoumyajitBhattacharyay Thanks, I have checked the previous videos Great work and efforts!! If possible you can try adding Class Diagram in next LLD video
@rajasubasubramanian9365
@rajasubasubramanian9365 3 жыл бұрын
Shouldn't the "Member" class hold, addQuestion() and addAnswer() and addComment() api?
@HarshalDev
@HarshalDev 9 ай бұрын
exactly !!!!
@soumavanag5025
@soumavanag5025 3 жыл бұрын
Can u add a video on class Diagram?
@kalpitjain6022
@kalpitjain6022 3 жыл бұрын
How is addComment using runtime polymorphism. Method overriding and runtime polymorphism are the same thing, here no method overriding is happening. Don't quite understand this point.
@SamirKumar-yv6cr
@SamirKumar-yv6cr 3 жыл бұрын
When to implement open close principle
@venkyvenky4261
@venkyvenky4261 2 жыл бұрын
How to run these code? There was no main function
@geekystuffs6209
@geekystuffs6209 3 жыл бұрын
Can you please make video on Blackjack game? It will be very helpful
@kherakshay7854
@kherakshay7854 4 жыл бұрын
Please create system design playlist
@SoumyajitBhattacharyay
@SoumyajitBhattacharyay 4 жыл бұрын
Yes that is next in my charter!
@sanjayulsha
@sanjayulsha 4 жыл бұрын
Create a video for ELEVATOR design.
@harshseth3231
@harshseth3231 4 жыл бұрын
Will requirements be given in our interview or do we have to come up with our own requirements and discuss with interviewer?
@SoumyajitBhattacharyay
@SoumyajitBhattacharyay 4 жыл бұрын
We would have to come up with requirements on our own. Understand exactly what the interviewer wants by asking clarifying questions. These are similar to day to day work, where we clarify the requirements with business by asking questions and understanding what they want!
@harshseth3231
@harshseth3231 4 жыл бұрын
@@SoumyajitBhattacharyay 👍 thanks
@adis6867
@adis6867 3 жыл бұрын
You have already inherited userid from User class, i think no need to mention account id in account class.
@yash_verma
@yash_verma Жыл бұрын
great
@ManishGupta-ue5mx
@ManishGupta-ue5mx 4 жыл бұрын
Make more videos which help us to grap top MNCs
@SoumyajitBhattacharyay
@SoumyajitBhattacharyay 4 жыл бұрын
Surely! Please do suggest what different kinf of videos would you want me to make???
@ManishGupta-ue5mx
@ManishGupta-ue5mx 4 жыл бұрын
@@SoumyajitBhattacharyay videos on motivationl for tier 3 students and tips and tricks to get shortlisted and muchh more.
@arnobmallik6655
@arnobmallik6655 3 жыл бұрын
In the Entity class, there is a flagEntity API, but the class does not have any attribute related to "flag". So, what's the functionality of that API?
@rakshithr8793
@rakshithr8793 2 жыл бұрын
how can comment extend entity. This is wrong. your entity has list of comments. its like saying comment has a list of comments. In most your videos sometimes HAS A relationship is compromised.
@sahithyalakshmi476
@sahithyalakshmi476 3 жыл бұрын
Can you please help with LLD for currency converter?
@darkknigh874
@darkknigh874 4 жыл бұрын
Good Explanation. I use to learn a lot from your videos. I guess we missed one property in Answers and Question. I feel we can have List as property in both the Question and Answers class.
@rahulsharma5030
@rahulsharma5030 4 жыл бұрын
its there in parent class :)
@rahulsharma5030
@rahulsharma5030 3 жыл бұрын
@Mohammad Kaif the way in c we have struct Node * which has pointer to itself in linked list definition. In java every object stores reference only, so comment has list of comment is nothing list of references, it does not matter to java.however it c, you cannot have this and you have to enforce with pointers.understood?
@TheSridharraj
@TheSridharraj 3 жыл бұрын
Good. . Entity should have only - entityID, votes and createdDate. SINGLE responsibility principle is getting violated. creator and comments shd not be part of entity, instead it should be in the derived classes.
@gauravkumarmathur7644
@gauravkumarmathur7644 3 жыл бұрын
Bhaiya Can you please help in block diagram of backend of stack overflow??
@SoumyajitBhattacharyay
@SoumyajitBhattacharyay 3 жыл бұрын
Sure do tell me what do you want exactly
@gauravkumarmathur7644
@gauravkumarmathur7644 3 жыл бұрын
@@SoumyajitBhattacharyay How would you go about designing Back end for Stack Overflow. Describe your approach in a block diagram. Actually I have to this question given by someone .Please help me whatever you can help!! Ps- I know frontend by your video but don't know backend of it!!!
@gauravkumarmathur7644
@gauravkumarmathur7644 3 жыл бұрын
So ek block diagram aur thoda explaination is needed for this
@Indranil03
@Indranil03 4 жыл бұрын
Can you please make an video about how to apply for amazon student internships
@ajayyadav-ob4gd
@ajayyadav-ob4gd 4 жыл бұрын
reach out to any recruiter or get a referral ,search on amazon jobs for relevant job opportunity
@Indranil03
@Indranil03 4 жыл бұрын
@@ajayyadav-ob4gd will it work for internships in college too?
@SoumyajitBhattacharyay
@SoumyajitBhattacharyay 4 жыл бұрын
No not always. Only a handful of internship oppurtuinities are open for referral. Not all though. So you would have to send a number of internship job ids to see if it is open for referral
@Indranil03
@Indranil03 4 жыл бұрын
@@SoumyajitBhattacharyay oooh thankx for the info❤️
@adityamedhe
@adityamedhe 2 жыл бұрын
Sorry but I think the model is completely out of place. User class having `getQuestions` is completely wrong IMO -- that method should exist on something like `QuestionDatabase` or something, same goes with `addTag`, `addComment`, etc
@harshalgarg1149
@harshalgarg1149 3 жыл бұрын
Thanks
@souravdas3343
@souravdas3343 3 жыл бұрын
Design a Traffic Controller System
@nikhilchauhan2318
@nikhilchauhan2318 2 жыл бұрын
Man do you intentionally change the time of your laptop to 3am in the morning so that no one in your company points out to you when you are performing poorly (I assume this to be better case). In case you are actually doing at that time you need to rethink about your job and life
@SoumyajitBhattacharyay
@SoumyajitBhattacharyay 2 жыл бұрын
Performing quite good in my job. Just got transitioned into Engineering Manager at Amazon and yes i record videos at that time
@nikhilchauhan2318
@nikhilchauhan2318 2 жыл бұрын
@@SoumyajitBhattacharyay great congrats. Btw It was not to offend you .I just found it weird that you were doing all (not some) videos at that time of the day because that implies you don't get time in your job which is not good for your health
@SoumyajitBhattacharyay
@SoumyajitBhattacharyay 2 жыл бұрын
@@nikhilchauhan2318 no mostly that's the quietest time of the day! 😛
@akki8534
@akki8534 Жыл бұрын
too much useless talks...please avoid that
ATM LOW LEVEL DESIGN | FACEBOOK INTERVIEW QUESTION | SOFTWARE DEVELOPER INTERVIEWS
19:24
Chess Low Level Design Code | Software Interview Question | System Design
13:39
Soumyajit Bhattacharyay
Рет қаралды 38 М.
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
LOW LEVEL DESIGN CODE || AMAZON SHOPPING WEBSITE || AMAZON INTERVIEW QUESTION SOLVED
17:10
Design Twitter - System Design Interview
26:16
NeetCode
Рет қаралды 554 М.
Book My Show || Low Level Design Code || Amazon Interview Question Solved!!
15:26
Soumyajit Bhattacharyay
Рет қаралды 82 М.
Design Tic Tac Toe: Low Level Design Coding Interview Question
15:35
How to Crack Any System Design Interview
8:19
ByteByteGo
Рет қаралды 494 М.