Design software for a multi-level parking facility: vehicles enter, receive a spot assignment, park, pay, and exit. Track occupancy per level and spot type (compact, large, EV), enforce capacity, and support concurrent gates with consistent assignment.
Functional requirements
- Register entry with vehicle type and issue a session or ticket
- Assign a compatible free spot or reject when the lot is full
- Calculate fee on exit from duration and rate rules
- Support multiple entry/exit terminals and optional admin overrides
Non-functional requirements
- Strong consistency for spot assignment to prevent double booking
- Low latency at gates during peak arrival and departure bursts
- Durable audit trail of sessions, payments, and occupancy changes