I’m starting to create a (old) website from scratch and was planning on automating a lot of the manual proceding.
Right now the process involves a lot of human interaction:
- Client sends us an email or uses a form (which sends us an email)
- We check the email for a name and a phone number
- We assign a code to the client, and send him an email with said code
- We check if the stock is available and then contact the client arranging for pickup
My idea was to completely automate the process (except the phone calls), but while I’m sure I can code 90% of it, I’m stumped on how to avoid concurrency.
Specifically I intend to create a “queue” of the orders to be worked, but we usually have 2 people working on this step at the same time, so how can I temporarily remove the first order from the queue so that the second worker doesn’t work on the same order as the first?
My thought was to have a “next order” button so the users don’t see a list but rather just the current order that they are working on, I’m just stumped on how to have the currently worked on order not served to two users.
Any tips are appreciated thanks a lot!