These requirements will include:
Lets say we have a parking lot with a capacity of 500 spots. Each vehicle type can take certain number of spots based on vehicle type. That means at most there can be 500 requests/second in one parking lot.
Say we have X number of parking lots in existence. Then we are looking at a system which should be able to handle 500*X requests/sec. If we say X is 100-200 parking lots, then we are looking at about 50,000-100,000 QPS.
This means we need multiple servers which can sit behind a load balancer for distributed traffic. These servers can be distirbuted geographically.
We are going to be storing user information, payment information as well as any additional information. We need fast lookups to quickly allow user to find their ticket and allow them to pay. We can use NoSQL database for this.
We need API's to:
The above ones are primary but we can have additioanl APIS to optimize our system such as faster algorithms.
The ER diagram takes care of this portion
You should identify enough components that are needed to solve the actual problem from end to end. Also remember to draw a block diagram using the diagramming tool to augment your design. If you are unfamiliar with the tool, you can simply describe your design to the chat bot and ask it to generate a starter diagram for you to modify...
Explain how the request flows from end to end in your high level design. Also you could draw a sequence diagram using the diagramming tool to enhance your explanation...
Dig deeper into 2-3 components and explain in detail how they work. For example, how well does each component scale? Any relevant algorithm or data structure you like to use for a component? Also you could draw a diagram using the diagramming tool to enhance your design...
Explain any trade offs you have made and why you made certain tech choices...
Try to discuss as many failure scenarios/bottlenecks as possible.
What are some future improvements you would make? How would you mitigate the failure scenario(s) you described above?