Sunday 22 September 2019

Lock for a reservation service.

I don’t know if this is the right place for the question, but I’m working on system to place reservation for a spot. I’m using an angular frontend with a node backend and Firebase Firestore DB.What I want to achieve is that when you want to reserve a spot. You get n minutes to complete the reservation. When n minutes has passed the spot is given free again. My question is where to store and implement the mechanism to give the spot free again? I don’t want to keep track of it (only) in the frontend. Is a redis instance with a key and expiration time the way to go? Or is that overkill?

Submitted September 22, 2019 at 06:56PM by Stefa93

No comments:

Post a Comment