System Design Parking lot | Object Oriented Design | Code Implementation | The Tech Granth

Поділитися
Вставка
  • Опубліковано 24 гру 2024

КОМЕНТАРІ • 57

  • @gurudassulebhavikar
    @gurudassulebhavikar 10 місяців тому +3

    Wow. It covers so many important points that an interviewers looks for. Thank you so much.

  • @kiransfitnesstips4095
    @kiransfitnesstips4095 10 місяців тому +2

    Best explanation i ever seen... Hats off.

  • @tejpalkhachane1965
    @tejpalkhachane1965 4 місяці тому +1

    How this parking lot be designed using micro services & provide this parking lot as Saas product?

  • @singhujwalkumar2
    @singhujwalkumar2 2 роки тому +2

    Could you please tell me apart from the Singleton pattern what other patterns you have used here? plz plz. Also, could you please add these details to all your future videos? I really like the way you explained the Logging Framework System design video where you have added all design patterns details too which you have used in code (LLD).

  • @riyasailesh8878
    @riyasailesh8878 2 місяці тому

    Really helpful. Thanks for your efforts.
    Just had a small doubt, why are the addVehicle and removeVehicle methods protected?

  • @billionair_dreamz
    @billionair_dreamz 3 роки тому +4

    So simple and easy to understand, I watched various resources for this problem but yours is the best.. 👌👌👌

    • @TheTechGranth
      @TheTechGranth  3 роки тому

      Thanks. Glad it was helpful. Do like and subscribe and share with your friends 🙂

  • @vikashkumaryadav1685
    @vikashkumaryadav1685 3 роки тому +2

    Hi
    In machine coding round do we have to code the entire working model as u have done in this video?

    • @TheTechGranth
      @TheTechGranth  3 роки тому +1

      No, you may be asked to come up with the base classes and implement few methods

  • @satyaanvesh7051
    @satyaanvesh7051 3 роки тому +1

    may i know what will the table base tables here we can come up with

    • @TheTechGranth
      @TheTechGranth  3 роки тому

      On top of my head, all the pojo can be directly converted to simple tables, you can have table to persist a parking lot which can have name, description and address, if you are planning to have multiple parking lots you can normalize this table. there will be a table for floors which can store an id , parking lot id, number of slots, number of free slots etc. a table for parking slot which will store id, parking slot type, floor id, isOccupied etc., you need a transaction table to store the tickets issued and pricing, so this can have ticketid, slot type,entry time, exit time, cost etc. add something if I am missing :)

  • @GoodLuck-dv2zu
    @GoodLuck-dv2zu 7 місяців тому

    I think scan pay should be in the ExitPanel instance. Also generating tickets and finding available spots should be inside the EntryPanel class

  • @NikhilKumar-of5gb
    @NikhilKumar-of5gb 3 роки тому +2

    Make more such videos plzzzzzz. Such a elegant code man, hats off.

    • @TheTechGranth
      @TheTechGranth  3 роки тому

      Glad it was helpful. Do like and subscribe and share with others 🙂

  • @manjunathm7632
    @manjunathm7632 3 роки тому +2

    Clean and easy to understand... Thank you.

    • @TheTechGranth
      @TheTechGranth  3 роки тому

      Gald it helped. Do like and subscribe and share with your friends :)

  • @sanchitjain7204
    @sanchitjain7204 3 роки тому +1

    Is it possible to come up with this design in interview setting ?

    • @TheTechGranth
      @TheTechGranth  3 роки тому

      Base structure of class is expected, may be implementation of a method or 2 can be asked if structure is finalized and there is still some time

  • @ankur8804
    @ankur8804 3 роки тому +3

    Can you make lld on elevator pls

    • @TheTechGranth
      @TheTechGranth  3 роки тому

      yes sure. Do like the video and subscribe to the channel and share it with your friends :)

    • @ankur8804
      @ankur8804 3 роки тому +1

      @@TheTechGranth sir pls make elevator, it is very much needed
      Thanks

    • @TheTechGranth
      @TheTechGranth  3 роки тому

      @@ankur8804 yes I will come up with it soon. I am getting a lot of comment regarding this lld

    • @TheTechGranth
      @TheTechGranth  3 роки тому +1

      here you go, hope justice was done : ua-cam.com/video/14Cc8IDWtFM/v-deo.html

  • @manojkr2362
    @manojkr2362 10 місяців тому

    i am unable to understand the code . what should i do now .help me give any other resource to understand the basic level of low level design

  • @TheCodeThoughts
    @TheCodeThoughts 2 роки тому +2

    getInstance() method of ParkingLot class is not thread safe, so in case if more than 1 threads trying to access the object at the time of Lazy loading this could create the issue.

  • @9719426035
    @9719426035 3 роки тому +6

    You should have used stack to keep track of empty slotsfor each packing slot type per floor rather than iterating on all list of all parking slot type for a floor and once its free pop it back to stack.Complexity will be O(1) which is O(N) in your implementation

    • @TheTechGranth
      @TheTechGranth  3 роки тому

      Good observation. Thanks for suggestion. Kindly check the other videos as well and share it with your friends. Really appreciate honest comment and suggestions :)

    • @AniketSomwanshi-ll7mz
      @AniketSomwanshi-ll7mz Рік тому

      It's fine for in-memory projects. It won't translate to a backend application with database persistance. There is no stack in databases. Still good for in memory applications

  • @goblin1390
    @goblin1390 3 роки тому +3

    Nice explanation. But as per the SOLID principle we should assign only one responsibility to a class. Don't you think ParkingLot class has more content and we can further divide it into 2 classes. Please let me know how we can assign that ticket assigning responsibility to other class and use it here

    • @TheTechGranth
      @TheTechGranth  3 роки тому +1

      One way will be to create a class which will deal with tickets and compose ticket assignment to parking lot, it will be easier to implement if you are using springboot and use injection of bean.

  • @rajkumarwinc9372
    @rajkumarwinc9372 Місяць тому

    How to implement multiple parking entries and multiple exits..

  • @aakash1763
    @aakash1763 3 роки тому +1

    Great Video just one request related to concurrency I didn't get too much idea how to handle concurrency issue if there is one instance of multiple instance this issue will not be for the LLD it can be question for other LLD how to handle concurrency. Could you please make a video on how to handle concurrency issue?

    • @TheTechGranth
      @TheTechGranth  3 роки тому +1

      There is one way for larger application which I have discussed in BookMyShow system design. You can check it out in playlist for high level design. Do let me know if you need further clarification 🙂

  • @chrispure7461
    @chrispure7461 2 роки тому +1

    Don't we need to have UML diagram before doing the coding part for LLD?

    • @TheTechGranth
      @TheTechGranth  2 роки тому

      Depends on years of experience, for more experienced candidates, interview revolve more around design and uml

    • @bruvhellnah
      @bruvhellnah 2 роки тому

      @@TheTechGranth What does the interviewer expect in lld rounds in case of less experienced candidates?

  • @vyankateshkulkarni4374
    @vyankateshkulkarni4374 10 місяців тому +1

    This is gem.. thanks :)

  • @thehotshots9032
    @thehotshots9032 2 роки тому

    Do you work in Udaan?

  • @VivekSharma-vw3do
    @VivekSharma-vw3do 3 роки тому +1

    Nice explanation , Can plz make a video on IRCTC especially the query part on diff diff scenarios .

    • @TheTechGranth
      @TheTechGranth  3 роки тому +3

      Glad it was helpful. I will try to come up with IRCTC design. Do like and subscribe and share with your friends :)

  • @dasenthil
    @dasenthil 2 роки тому

    How to practice LLD

  • @Kunal-ro8yo
    @Kunal-ro8yo 3 роки тому +1

    Great. Please make more such LLD videos

    • @TheTechGranth
      @TheTechGranth  3 роки тому +1

      Thanks, hope you liked it. Do like subscribe and share it with your friends :)

  • @ankur8804
    @ankur8804 3 роки тому +2

    Can you pls make video on elevator lld as it is not present anywhere on Internet.
    Big request, can you please make it quickly
    Thanks
    Your big fan :)

    • @TheTechGranth
      @TheTechGranth  3 роки тому

      Thanks, it means a lot. I am working on that currently, will come up with it in coming week.

    • @TheTechGranth
      @TheTechGranth  3 роки тому +3

      here you go, hope justice was done : ua-cam.com/video/14Cc8IDWtFM/v-deo.html

  • @parwana1000
    @parwana1000 3 роки тому +1

    You are awesome ....

  • @siddharthasonker
    @siddharthasonker 2 роки тому

    Great job!!

  • @goblin1390
    @goblin1390 3 роки тому +1

    Please share this whole code

    • @TheTechGranth
      @TheTechGranth  3 роки тому

      It is already added on my GitHub, link is there in description 🙂

  • @sivakumarg98
    @sivakumarg98 2 роки тому +1

    💌

  • @jeevteshsingh899
    @jeevteshsingh899 3 роки тому

    besttttttt

    • @TheTechGranth
      @TheTechGranth  3 роки тому

      Glad it was helpful. Do like and subscribe and share with others 🙂