I'd like to focus on implementing the below functional requirements for the driver/user of the system.
There will be those apis:
Here is a diagram how apis will be called:
We will have two database. One is the event database, and the other one will be status database.
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...
flowchart TD A[API Gateway] -->|Sends Requests| B[Event Service] A -->|Sends Requests| C[Inventory Service] A -->|Sends Requests| D[Payment Service] B -->|Logs Event| E[Event Database Master] E -->|Replicates| F[Event Database Replica] B -->|Updates Inventory| C C -->|Broadcasts Status| G[Display at Entrance] C -->|Handles Check Request| A D -->|Checks Payment| B D -->|Processes Payment| H[Third Party Payment Service]
adminAllowEntry(licensePlate): Allows an admin to grant entry to a specified vehicle.adminForceExit(licensePlate): Permits an admin to forcefully log a vehicle's exit.adminViewStatus(): Provides real-time insights into current parking inventory and events.