svsticky / pxl

Manage photo albums on S3 buckets
https://pxl-demo.svsticky.nl
Mozilla Public License 2.0
17 stars 2 forks source link

Remember uploads in state #5

Closed duijf closed 5 years ago

duijf commented 5 years ago

After #4 is merged we need to remember uploads in the state file and store that file on S3. We do need to think about if we want to support concurrent uploads. I have a feeling this shouldn't be too difficult if we're a bit careful.

Let's start with a simple lockfile, though.

(We could also code the happy path, but let's do concurrent operations right at the start. Fixing this stuff later is difficult because building on invalid assumptions about concurrency is difficult to fix later.)

duijf commented 5 years ago

Implemented in https://github.com/svsticky/pxl/commit/0ac35fb11e613b2004107b6131add707e2481087