kazurayam / materialstore

A domain-specific file system to store "materials" (screenshots, HTML, JSON, XML) collected during End-to-End testings using Selenium WebDriver etc. Features to make "diff" and compiling HTML reports are also included. This is written in pure Java8
Apache License 2.0
0 stars 0 forks source link

Transactional access to the index #407

Open kazurayam opened 1 year ago

kazurayam commented 1 year ago

I want to distribute a bunch of materialzing a lot of URL in a JobTimestamp directory. The object files will be safe. But the index file can be corrupted if accessed by multiple processed simultaneously. How to prevent the index file being corrupted?

One idea is to use AWS DynamoDB Transaction.

https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/transaction-apis.html