Parking Lot System

Preview mode. Log in to write architecture notes, save your answer, and get feedback.

Easy

Parking Lot System

Design an automated parking lot management system. Functional Requirements: - Multiple floors with different spot sizes (Small, Medium, Large) - Vehicle entry: assign the nearest available spot matching the vehicle size - Vehicle exit: calculate fee based on duration and spot type - Display available spots per floor and type on entry screens - Support for monthly/reserved parking passes Non-Functional Requirements: - Real-time spot availability updates - Handle concurrent entry/exit at multiple gates - System should work even if central server goes down (gates have local fallback) Scale: - 5,000 spot parking structure - 20 entry/exit gates - Peak throughput: 100 vehicles entering/exiting per minute

Examples

Example 1

How would you add support for electric vehicle charging spots?

Approach hint

Start with the core classes: what objects exist in a parking lot? Think about vehicles, spots, tickets, and the lot itself.

Common mistake

Skipping assumptions, edge cases, or trade-offs can make an otherwise good answer feel incomplete.

architecture-notes.md