Bowarc / storage_server

A simple cdn that compresses the data
1 stars 0 forks source link

Hash-based duplicate detection #10

Open Bowarc opened 2 weeks ago

Bowarc commented 2 weeks ago

It would be nice to stop storing duplicate files.

Bowarc commented 2 weeks ago

But one question needs to be answered.

If user1 stores a file, user2 stores the same file (we don't store it and returns the id of user1's file cache user1 deletes it's cache

Due to RGPD, we can't do reference-counting and delete only when there is no longer any owner. But then, how do we explain to user2 that it's file has been deleted.

Ig anyone can delete any file soooo..

Bowarc commented 2 weeks ago

Or don't use any delete mechanism