Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jamesfisher
on Aug 20, 2014
|
parent
|
context
|
favorite
| on:
The S in Rest
> Values are identified by random UUIDs
Alternatively and preferably, values are identified by a cryptographic hash.
rubyfan
on Aug 20, 2014
[–]
Why is that preferable? I'm not even convinced a uuid is appropriate to solve the problem.
weavejester
on Aug 20, 2014
|
parent
[–]
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:
Alternatively and preferably, values are identified by a cryptographic hash.