Home

A File Upload Locking Issue

10/01/2023

I may have a file locking problem... or rather, a lack of file-locking, and if I upload multiple markdown files at once, the StructureHandler may overwrite itself as multiple lambdas fire at once.

Options:

Update on buckets 20230112

I have learned that I can apply a filter to Lambda S3 event triggers, so that they only apply for a given prefix. So I can configure the FileUploadHandler to only fire when files are uploaded to a particular folder, such as "sources". Then when new files are generated, they can be put in a different folder which won't trigger the lambda. I like that, and will probably want a folder structure like:

This will mean I do not need the third, temporary bucket, which pleases me.

Once I introduce the concept of multiple projects, the structure may become sources/<projectID>/ etc.

Prev: More Bucket Ponderings Next: One small bug, two days of pain