Designing consistent request handling

Mark Yourself Question

  1. Grab a piece of paper and try this problem yourself.
  2. When you're done, check the "I have answered this question" box below.
  3. View the solution and report whether you got it right or wrong.

A repair business is designing a service-request application. Every request receives a unique text identifier. One customer may submit several valid requests. Staff need to find a request by its identifier, and active requests must be assigned in arrival order. A request can be cancelled before assignment. A separate tracking feature must remember whether a particular request has already received its confirmation message.


Recommend a structure for each of the following and explain your choices:

  • The details of one request and lookup across all requests.
  • The order in which waiting requests are assigned, including how cancellation is handled.
  • The confirmation tracking feature, including why customer identity is insufficient for deciding whether a confirmation has already been recorded.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Data Structures Questions: