ldynia / archcolider

O'Reilly's first Software Architectural Katas
237 stars 83 forks source link

Picking up an order (Code) #10

Closed han-vermolen closed 3 years ago

han-vermolen commented 3 years ago

I'm not clear on the need for codes to retrieve meals from the smart fridges.

Do we only need to enter a pin code resulting in the meal becoming available? Or do we first need to choose our meal from the fridge and then also enter the pin code?

I'm wondering about this because:

ldynia commented 3 years ago

Do we only need to enter a pin code resulting in the meal becoming available? Yes, this is my understanding, pin code / access code will unlock the smart fridge

Btw. I think the pin kode / access code should be only for occasional users. Subscribed users should swipe a card and unlock the smart fridge.

Hemanthpradeep commented 3 years ago

Now I am having second thoughts , I believe it will be more of like the second point you mentioned (picking a coke bottle/Snickers from a vending machine) , so the design may be(should be ? ) like below Every fridge has set of meals having a locally unique codes assigned to them, the same can be assigned to a subscribed user (or) display it in fridge so that a known user or occasional user can pick them. So, Pin codes/access codes(like we discussed yesterday of having a unique code) will be applicable only to subscribers , the known users/occasional users can simply walk-in to fridge and select the meal (by looking at the code) and pick the meal.

VioletTape commented 3 years ago

Pin code/access code needed only as a fallback mechanism in case of offline work of client and/or smart fridge. In this case, there should be a pin code. And, as a bonus, the user can delegate meal grabbing by telling the code for a colleague. (something similar works for Volvo cars and food delivery from supermarkets in Sweden)

If a fridge is online, then card swipe is totally ok and this is how it's implemented now for Farmacy Food (FF). If a fridge and a client online, then the application could send a command to dispatch the selected meal without touching the keypad at all.

For occasional users, everything should be performed by a clerk who serving PoS. For other users, card swipe and touchless meal pickup will be the preferable way.

han-vermolen commented 3 years ago

Closed as it is unlikely to have a different resolution within the timeframe. Current setup is fine.