COSC-499-W2023 / year-long-project-team-1

PrivacyPal: A secure messaging and video sharing service (COSC499 Team 1)
Apache License 2.0
18 stars 3 forks source link

[Bug] Scaling video processing server with multiple replicas could cause issues #158

Closed MyStackOverflows closed 10 months ago

MyStackOverflows commented 11 months ago

Let's say, there are Alice and Bob and they both query this endpoint for the same file.

  1. Alice's request comes first and this deletes the entry, returns true. Alice sees success.
  2. Bob's request comes later and receives error because the entry is not found. Bob thinks the processing is broken.

Now, Alice and Bob can just be 2 different tabs open for the same account. How would we handle this?

_Originally posted by @tthvo in https://github.com/COSC-499-W2023/year-long-project-team-1/pull/115#discussion_r1401304940_

tthvo commented 11 months ago

We would have to look into a key-value storage for this. Potentially, it requires another component into our services. Redis or etcd might be a good fit.

tthvo commented 10 months ago

Moving to lambda. Closed.