Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Values are identified by random UUIDs

Alternatively and preferably, values are identified by a cryptographic hash.



Why is that preferable? I'm not even convinced a uuid is appropriate to solve the problem.


The proposed protocol allows for PUTs, which means the server needs to atomically check whether or not that UUID is already in the database. Using a cryptographic hash as an ID removes the need for atomicity in the case of PUTs.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: