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

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ก.ย. 2024

ความคิดเห็น • 105

  • @aisakyunhotahai8130
    @aisakyunhotahai8130 3 ปีที่แล้ว +9

    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 ปีที่แล้ว +1

    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 ปีที่แล้ว +8

    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

  • @mayurkharche9087
    @mayurkharche9087 3 ปีที่แล้ว +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 3 ปีที่แล้ว +6

    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 ?

  • @abhishekkapoor7955
    @abhishekkapoor7955 7 หลายเดือนก่อน

    i think addquestion should not be inside question entity itself and addAnswer should be in question entity. Nice work anyway!

  • @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 😭

  • @pavanjois4343
    @pavanjois4343 3 ปีที่แล้ว +2

    Thanks for such nice video content. Could you please make a video on LLD of elevator ? thanks.

  • @rishibharadwaj7988
    @rishibharadwaj7988 3 ปีที่แล้ว

    Fine! I don't subscribe that often but you earned my respect.

  • @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.

  • @rudreshdixit8368
    @rudreshdixit8368 3 ปีที่แล้ว +1

    Thanks a lot . Your videos are amazing.

    • @SoumyajitBhattacharyay
      @SoumyajitBhattacharyay  3 ปีที่แล้ว +1

      Thanks so much! Please do subscribe to the channel and share it as well.
      A lot more give aways are planned for 10,000 milestone 🔥❤

  • @sameer9368
    @sameer9368 2 ปีที่แล้ว

    Great video....keeping posting such video

  • @Manishsharma-tj4nn
    @Manishsharma-tj4nn 3 ปีที่แล้ว

    Thanks, the way you presented this video is the best. Thanks a lot

    • @SoumyajitBhattacharyay
      @SoumyajitBhattacharyay  3 ปีที่แล้ว +1

      Thanks so much for the feedback.
      Do share this video among your friends!

    • @Manishsharma-tj4nn
      @Manishsharma-tj4nn 3 ปีที่แล้ว +1

      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.

  • @rajasubasubramanian9365
    @rajasubasubramanian9365 3 ปีที่แล้ว +2

    Shouldn't the "Member" class hold,
    addQuestion() and
    addAnswer() and
    addComment() api?

    • @HarshalDev
      @HarshalDev 5 หลายเดือนก่อน

      exactly !!!!

  • @sakshamsrivastava6280
    @sakshamsrivastava6280 2 ปีที่แล้ว

    this is just amazing dude. wow!!!!!!

  • @fatemarangoonwala9754
    @fatemarangoonwala9754 4 หลายเดือนก่อน

    Explained very well

  • @nirjharpaul
    @nirjharpaul 3 ปีที่แล้ว +1

    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 3 ปีที่แล้ว

    Very clear explanation. Thank you for such awesome content.
    It will be very helpful if you bring database design content also.

  • @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!!!

  • @Prem19sept
    @Prem19sept 2 ปีที่แล้ว

    I have a question.
    Here Admin can also block a moderator.
    But you have taken to delete only member.

  • @DibyajyotiDhar
    @DibyajyotiDhar ปีที่แล้ว

    In EditHistroy, previousQuestion and updatedQuestion should be String, i think, because Question already has a list of EditHistroy.

  • @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?

  • @saisreenath5189
    @saisreenath5189 3 ปีที่แล้ว +1

    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 2 ปีที่แล้ว

      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

  • @akshitmehra8110
    @akshitmehra8110 11 หลายเดือนก่อน

    One question, in the stackoverflow video, where did we use polymorphism?
    Thanks.

    • @sumitrairkt
      @sumitrairkt 7 หลายเดือนก่อน

      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

  • @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 ?

  • @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?

  • @kalpitjain6022
    @kalpitjain6022 2 ปีที่แล้ว

    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.

  • @mcraven281
    @mcraven281 3 ปีที่แล้ว

    Why do we need addComment in entity class because members class already has tht function which would take entity as input

  • @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?

  • @rahulsharma5030
    @rahulsharma5030 3 ปีที่แล้ว

    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  3 ปีที่แล้ว

      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 3 ปีที่แล้ว

      @@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 3 ปีที่แล้ว

      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 3 ปีที่แล้ว

      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

  • @umapathybabu8397
    @umapathybabu8397 3 ปีที่แล้ว +1

    Thanks for content Soumyahit. Does having addAnswer() method in Question class instead of in Answer class will it make sense?

  • @mehnaazmohiuddin
    @mehnaazmohiuddin 3 ปีที่แล้ว

    Hi Soumyajit Bhattacharyay, in the Answer class we have addAnswer

  • @rajanjain1156
    @rajanjain1156 11 หลายเดือนก่อน

    Excellent explanation

  • @tusharrawat8768
    @tusharrawat8768 2 ปีที่แล้ว +1

    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

  • @tanmaykapil5362
    @tanmaykapil5362 3 ปีที่แล้ว +1

    Sir , which language is best suited for low level system design acc to your experience... Java or c++

  • @rajsaraogi
    @rajsaraogi ปีที่แล้ว

    Which design pattern have you followed in this..

  • @TheSridharraj
    @TheSridharraj 3 ปีที่แล้ว +1

    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.

  • @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?

  • @kherakshay7854
    @kherakshay7854 3 ปีที่แล้ว +2

    Please create system design playlist

  • @MayurVarma
    @MayurVarma 3 ปีที่แล้ว +2

    Can you add some diagrammatic representations in your LLD videos

    • @SoumyajitBhattacharyay
      @SoumyajitBhattacharyay  3 ปีที่แล้ว +4

      Sure i will do soo. In the previous videos i had added use case diagrams.
      Please do check this out: th-cam.com/video/Hb6WePtPQhg/w-d-xo.html
      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 3 ปีที่แล้ว

      @@SoumyajitBhattacharyay Thanks, I have checked the previous videos Great work and efforts!! If possible you can try adding Class Diagram in next LLD video

  • @venkyvenky4261
    @venkyvenky4261 2 ปีที่แล้ว

    How to run these code?
    There was no main function

  • @siddhantarath2199
    @siddhantarath2199 2 ปีที่แล้ว

    It's been a while now. Please upload LLD videos. These are really useful

  • @sanjayulsha
    @sanjayulsha 3 ปีที่แล้ว

    Create a video for ELEVATOR design.

  • @geekystuffs6209
    @geekystuffs6209 3 ปีที่แล้ว

    Can you please make video on Blackjack game? It will be very helpful

  • @sahithyalakshmi476
    @sahithyalakshmi476 3 ปีที่แล้ว

    Can you please help with LLD for currency converter?

  • @PratishthaChoudhary0308
    @PratishthaChoudhary0308 3 ปีที่แล้ว

    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  3 ปีที่แล้ว

      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

  • @soumavanag5025
    @soumavanag5025 3 ปีที่แล้ว

    Can u add a video on class Diagram?

  • @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 ปีที่แล้ว +1

      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 👌

  • @darkknigh874
    @darkknigh874 3 ปีที่แล้ว

    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 3 ปีที่แล้ว

      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?

  • @SamirKumar-yv6cr
    @SamirKumar-yv6cr 2 ปีที่แล้ว

    When to implement open close principle

  • @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.

  • @souravdas3343
    @souravdas3343 3 ปีที่แล้ว

    Design a Traffic Controller System

  • @ManishGupta-ue5mx
    @ManishGupta-ue5mx 3 ปีที่แล้ว

    Make more videos which help us to grap top MNCs

    • @SoumyajitBhattacharyay
      @SoumyajitBhattacharyay  3 ปีที่แล้ว

      Surely! Please do suggest what different kinf of videos would you want me to make???

    • @ManishGupta-ue5mx
      @ManishGupta-ue5mx 3 ปีที่แล้ว

      @@SoumyajitBhattacharyay videos on motivationl for tier 3 students and tips and tricks to get shortlisted and muchh more.

  • @harshalgarg1149
    @harshalgarg1149 3 ปีที่แล้ว

    Thanks

  • @adis6867
    @adis6867 2 ปีที่แล้ว

    You have already inherited userid from User class, i think no need to mention account id in account class.

  • @harshseth3231
    @harshseth3231 3 ปีที่แล้ว

    Will requirements be given in our interview or do we have to come up with our own requirements and discuss with interviewer?

    • @SoumyajitBhattacharyay
      @SoumyajitBhattacharyay  3 ปีที่แล้ว

      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 3 ปีที่แล้ว

      @@SoumyajitBhattacharyay 👍 thanks

  • @yash_verma
    @yash_verma ปีที่แล้ว

    great

  • @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 3 ปีที่แล้ว

    Can you please make an video about how to apply for amazon student internships

    • @ajayyadav-ob4gd
      @ajayyadav-ob4gd 3 ปีที่แล้ว

      reach out to any recruiter or get a referral ,search on amazon jobs for relevant job opportunity

    • @Indranil03
      @Indranil03 3 ปีที่แล้ว

      @@ajayyadav-ob4gd will it work for internships in college too?

    • @SoumyajitBhattacharyay
      @SoumyajitBhattacharyay  3 ปีที่แล้ว

      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 3 ปีที่แล้ว

      @@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

  • @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 ปีที่แล้ว +1

      @@nikhilchauhan2318 no mostly that's the quietest time of the day! 😛

  • @akki8534
    @akki8534 ปีที่แล้ว

    too much useless talks...please avoid that