Parking Lot - System Design Interview Question

preview_player
Показать описание
System Design interview question - Parking Lot

We cover following use cases
1. Give user ticket when he enters
2. Generate price when user exits.

We also discuss about APIs, Database model and database choice. We also discuss on how to make it distributed. We also discuss about concurrency.

Please comment on what should we cover next.

#design #parkinglot
Рекомендации по теме
Комментарии
Автор

This is a basic explanation of the service, which is good as a starting point.
However, there are many other questions that an interviewer might ask.

For example:
1. why do you need to store 10 years of parking lot information ?
2. Why do you need 3 DBs if you have only 4GB of data ?
3. How do you plan to implement the lock ?
4. What happens if a node goes down ?
....

Budulai
Автор

What I liked about your video was you discussed about concurrency. I looked this question at multiple places but none actually tried to explain this. Thanks for this.

PujaKumari-imvm
Автор

Thanks for using easy-to-understand and simple language. Just a suggestion if you can add a link of the PPT/PDF that you have used while creating videos. It will help to revise concepts easly.

happyhappyhome
Автор

Simple and elegant solution to start with. This is very helpful for beginners. Can you also create a video on Elevator design problem?

luckybroz
Автор

Hey, I have been looking at a lot of system design questions but none of them were as simple as this and rest of your videos. It's perfect for a new grad with no prior experience. There are no unnecessary details which make it more confusing. Thanks a lot <3 Please make more examples and if possible tips for new grads to approach System Design Questions

mihirranade
Автор

Nice & clean explanation. Fills up with good ideas from both a System Design as well as an OO Design perspective. Leaves enough room for imagination. :)

PalashPathak
Автор

Very helpful video. Covered all the topics nicely (w/o rushing into implementation :-) ). I can suggest few more topics System design for 1. message chatting service which is highly scalable, distributed, resilient, supports encryption of message end to end (i.e. server cannot see message) 2. Photo sharing service like instagram 3. Cab booking service like uber (Given APIs for GPS/ map) 4. Book recommendation service (Video recommendation service) 5. Service to show trending topics etc

Автор

This was beautifully explained! Please continue making such great videos. This was really helpful.

deepjyotkaurbindra
Автор

Great explanation. Really helped a lot to understand low level and high level designs. Please add more videos on low level designs.

vikrantsaini
Автор

Thanks, Nice Explanation. It leaves a lot of open questions related to failure scenarios handling. like what happens if slot service books the slot but ticket couldn't be generated. How do you say to slot service to roll back the booking? what if you couldn't communicate to the slot service to unbook the slot. Will you have a background job for checking slots that are booked but no one was given a ticket against, due to technical failure. Similar scenarios can happen with exit case, slot unbooked, and later booked by other person but ticketing service fails to let the first-person exit. now if you retry, to unbook the slot you may end up unbooking the slot that was reserved by another person.

ronakkalyani
Автор

Calling the use case “giving the user a ticket” is a bit off isn’t it? Nobody uses a parking garage to get a piece of paper, they use it to get a parking spot.

DodaGarcia
Автор

I have a comment here, Everything looks ok to me. Except why do we need to track the status of parking. Even though status of parking we can find from ticket#. Whether parking is available or not. In this case we would need to make an unnecessary call to the table. Which is not at all required.

vinaydixit
Автор

I like the explanation and I think it is a good job for questions like this. However, I wonder if you have ever seen an actual parking lot that assigned you a spot when you got your ticket? If you have, I can tell you that is very unusual.

mattleahy
Автор

slot allocation may not be required. This should be discussed with the interviewer as you may want the vehicle to be parked in any available slot.

dev-skills
Автор

You don't need an entire new service just for pricing policy.

aliquewilliams
Автор

In 3:35, where are the number of vehicles entering per day?

AlikElzin
Автор

Pretty Simple. But aren't there gonna be lot of DB reads ?

rohan
Автор

Seems like vdo is edited & is not original and audio is integrated with the channel guy! Size for parking lot in scale category is not well explained

Автор

size per sot 1K, 1K what? bits, bytes, be clear na

GauravSingh-lemq
Автор

Super bulshit solution. Parking lot is a low level design question and not distributed system solution 🤦

ngneerin