Preparing your design workspace

Loading the problem and your latest saved attempt…

Delivery Status Architecture Audit

Audit delivery confirmation, status reads, authentication, failover, logging and deferred third-party work in a supplied architecture.

Problem statement

A delivery executive marks a package delivered and may include a locker number; a customer reads that package’s status. The supplied architecture has one WAF forwarding to two load balancers, each with three application servers.

One pool serves delivery executives and one serves customers, and all servers read and write one shared database. Routing is round-robin, authentication is managed independently by application servers, and customer-pool server 3 collects logs from all servers and forwards them to a third party.

Load balancer A is described as 90% available, with an unspecified claim that WAF or LB2 can send requests when it is unavailable. RabbitMQ carries deferred SMS and optional locker work to an API consumer.

Identify flaws and uncertainties, then propose a justified repair; do not assume one logical component proves one physical machine.

For this exercise, assume delivery acceptance is authorized, durable and retry-safe, customer status distinguishes ancillary outcomes, and logging or third-party failures must not block the core transition.

A timed-out external call may have succeeded, and provider idempotency or lookup capability must be established before claiming safe automatic retries. Compartment allocation, customer pickup and the locker’s internal mechanics are outside scope.

What to build

  1. An authorized delivery executive can durably confirm a package delivery with an optional locker association and resolve duplicate or conflicting requests.
  2. The authorized customer can read committed delivery status and explicit pending, failed or uncertain ancillary outcomes.
  3. Required SMS and optional locker actions eventually receive a durable attempt or an explicit recovery outcome without blocking the core delivery transition.
  4. Operators can identify routing, logging and third-party failures and recover accepted work without silently changing delivery state.

At scale

  • For this exercise, assume 5,000 peak status reads/s and 250 confirmation writes/s; healthy status reads target p95 below 300 ms.
  • For this exercise, target 99.9% core-service availability; the supplied 90% load-balancer claim has no defined measurement window or independence model.
  • For this exercise, logging can lag with bounded buffering and an explicit loss policy; diagnostic logs are not the authoritative package history.
  • For this exercise, third-party outages and retries require bounded concurrency and recovery; no external idempotency or status-lookup capability is assumed.