Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

How to decide whether a restaurant is “Busy”?

At the time of writing, we don’t yet have visibility on orders made through channels other than the Mobile App.

Virtual Queue Strategy

At the time of writing, the only strategy we support now is the “Virtual Queue” strategy. This strategy is parameterised by two numerical values per Restaurant Document in Sanity, namely Processing Time and Busy Kitchen Threshold

...

We measure kitchen “busyness” by checking recent orders being made to the kitchen. Since each order has a Processing Time we can estimate at any point in time, the Time to Clear Kitchen (TCK) off all mobile orders. We consider a kitchen to by busy when the next order Processing Time + TCK is larger than the Busy Kitchen Threshold set above.

...


Example

Here is an example to illustrate this point. Let’s assume the above Wait Time Parameters such that Processing Time = 180, and Busy Kitchen Threshold = 500.

...