System Design Atlas

Rental and sharing system

09 / 10Worked example

Operations and security

How is a failure technically clarified?

An operating plan combines disruption, secure next step, responsibility and verifiable completion. This includes limited access rights and verified restoration.

Starting point From step 8: Diagnostic path and measured value justify a measure; for R-17, K-17, provider reference and reservation status remain connected.

Assumptions for the example case

Example design: an operator, specifically assigned vehicles, planned periods and a region. Figures are illustrative design assumptions, not company data.

Incident resolution and access

A continuous operational scenario for R-17: from the first signal to confirmed business completion.

  1. 01 · Recognition
    A-17 is waiting

    Alarm separates worker waiting time from provider time.

    Operations · R-17 remains open.
  2. 02 · Check condition
    A-17 matching with the provider

    Use P-17 only if known; the API reads the intermediate status.

    Worker · The app shows the known status.
  3. 03 · Reaction
    Reconciliation or clarifying

    Create no second authorization; retry A-17 within limits or escalate.

    Worker + customer service · The deadline continues.
  4. 04 · Conclusion
    Save the result, API reads

    Worker checks A-17, P-17 if known, and the hold period.

    Worker · API · The app shows result or clarification.
Verifiable business outcome by examination and deadline.
confirmed within a valid deadlineA-17 and the provider result verified; store held → confirmed atomically.
expired + cancellation orderDeadline expired; order to send cancellation to the provider, API reads R-17.
Open clarificationProvider status unclear; no second authorization, customer service takes over.
Concrete access chain

Person · Booking · Permitted action

Person Asends a request
Rental APIChecking Person A → R-17
Reading statusRelease additionally only with booking, authorization, time and vehicle condition
Third-party booking: Person A receives a rejection for the booking of another person; the specific booking assignment decides before any status change or vehicle release.
A case ends only with a verified result or an explicitly accepted clarification. Technical status, provider effect and local booking remain assigned.

Determine the next step in the event of disruptions

Further reading
DisturbanceThis is how the system reactsWhat renters see
The payment provider does not respond.Save the order and query the payment status from the provider. Necessary repetitions are limited and with the same order key so that the same payment is not triggered multiple times.Payment verification continues. If the reservation period ends without confirmation, the vehicle will be released again for the period.
The worker no longer processes orders.Recognize waiting orders. After restart or pickup by another worker, check and continue the processing status; effects already carried out remain taken into account.The confirmation or vehicle release is delayed. The current processing status remains visible in the app.
The vehicle is not reachable.Reconcile the unlocking command with the access system. Mark the rental active only after confirmed vehicle release. Escalate an uncertain outcome to customer service.The vehicle release is still unconfirmed. The customer service supports in the clarification.
The primary database fails.Temporarily stop new bookings. Start the database again or switch to a suitable replacement database (failover). Subsequently, match open orders with payment provider and vehicle control.Booking is temporarily not possible. After restoration, the status of affected bookings is checked and displayed.

The payment provider does not respond.

This is how the system reacts
Save the order and query the payment status from the provider. Necessary repetitions are limited and with the same order key so that the same payment is not triggered multiple times.
What renters see
Payment verification continues. If the reservation period ends without confirmation, the vehicle will be released again for the period.

The worker no longer processes orders.

This is how the system reacts
Recognize waiting orders. After restart or pickup by another worker, check and continue the processing status; effects already carried out remain taken into account.
What renters see
The confirmation or vehicle release is delayed. The current processing status remains visible in the app.

The vehicle is not reachable.

This is how the system reacts
Reconcile the unlocking command with the access system. Mark the rental active only after confirmed vehicle release. Escalate an uncertain outcome to customer service.
What renters see
The vehicle release is still unconfirmed. The customer service supports in the clarification.

The primary database fails.

This is how the system reacts
Temporarily stop new bookings. Start the database again or switch to a suitable replacement database (failover). Subsequently, match open orders with payment provider and vehicle control.
What renters see
Booking is temporarily not possible. After restoration, the status of affected bookings is checked and displayed.

The comparison between stored booking data and the actual status at the provider is called reconciliation. For example, he clarifies whether a payment has already been successful, even though the answer has failed. Only with this knowledge do we decide on continuation, repetition or a balancing order.

Connecting measured values, reactions and responsibilities

Further reading
What we monitorWhen we reactWhat we doWho will take over
Vehicle search response timeTarget from step 2: 95 % of searches take a maximum of one second at assumed load. The associated limit is called p95.If exceeded, check queries, indices and load; select the measures from step 8 based on the cause.Technical operations and development
Waiting time for due jobs to startExample alarm: A due job waits longer than 60 seconds for the start. This value shall be checked before use.Checking worker and backlog. Examine the duration of already ongoing provider calls separately.Technical operations
Duplicate effective occupancyReact immediately as soon as overlapping effective occupancy is detected for a vehicle. Objective: No overlap.Investigate affected bookings and fix the cause in the reservation process. Regularly rejected reservation attempts with HTTP 409 count separately.Customer service clarifies bookings; development investigates the cause
Unresolved payment or vehicle releaseA clarification period shall be set for each contract. If there is no clear result by then, pass on the processing.First automatically compare with the provider. Pass open cases with booking and provider reference to customer service.Customer service; in case of technical errors, the operation supports

Vehicle search response time

When we react
Target from step 2: 95 % of searches take a maximum of one second at assumed load. The associated limit is called p95.
What we do
If exceeded, check queries, indices and load; select the measures from step 8 based on the cause.
Who will take over
Technical operations and development

Waiting time for due jobs to start

When we react
Example alarm: A due job waits longer than 60 seconds for the start. This value shall be checked before use.
What we do
Checking worker and backlog. Examine the duration of already ongoing provider calls separately.
Who will take over
Technical operations

Duplicate effective occupancy

When we react
React immediately as soon as overlapping effective occupancy is detected for a vehicle. Objective: No overlap.
What we do
Investigate affected bookings and fix the cause in the reservation process. Regularly rejected reservation attempts with HTTP 409 count separately.
Who will take over
Customer service clarifies bookings; development investigates the cause

Unresolved payment or vehicle release

When we react
A clarification period shall be set for each contract. If there is no clear result by then, pass on the processing.
What we do
First automatically compare with the provider. Pass open cases with booking and provider reference to customer service.
Who will take over
Customer service; in case of technical errors, the operation supports

The roles describe responsibilities in the example draft. One person can take on several roles. Prior to deployment, specific responsible parties, their accessibility and the passing on of unresolved disturbances are agreed.

Secure accesses and prepare for recovery

Further reading
Check access rights for each booking
The application checks on each access whether the registered person can view or change the specific booking and use the associated vehicle. Customer service accesses also receive only the required rights; changes are logged in a traceable manner.
Checking provider feedback and limiting sensitive data
The application checks the signature of the provider for incoming webhooks and assigns the feedback to the correct order. Verification documents and payment data remain with the responsible provider as far as possible. Locally, we store the status values and references required for the workflow.
Recover data from backups and test the process
Technical operations regularly restores backups into a separate test environment. It measures the restart time: How long does it take until the required operation is possible again? It also checks the data-loss window: For what period of time may changes be missing? After an actual restoration, payments and vehicle orders are reconciled with the providers before re-execution.
Check the running costs per booking
Together with commercial responsibility, the managers consider the costs for database operation, audits, payments and customer service. Additional caches, database copies or messaging services are evaluated with their benefits and ongoing efforts.

Terms in this step

Reconciliation
Regularly compare local and external states and resolve contradictions in a targeted manner.

Try it yourself

The payment provider does not respond to A-17. Set signal, first safe step, responsible role and verifiable conclusion. Who can handle the case?

A hint for your attempt

A timeout leaves the outcome unknown. A visible change in status requires a tested domain reason.

Compare with a possible solution
Recognition and comparison
A timeout or outdated order triggers reconciliation via A-17. The worker does not create a new authorization on suspicion.
Responsibility
The worker tries the bounded automatic reconciliation. The assigned customer service clarifies open cases with logged rights limited to this operator and operation.
Completion
confirmed needs authorization and valid hold; expired needs expiration and tracking of a possible authorization. An open provider status remains visible as a clarification.

Apply to your project

Transfer the incident-response process to your own core operation and note which recovery test checks the acceptance before deployment.

Step 10 bundles decisions and checkpoints and identifies where a check result returns to an earlier step.