Hacker News new | ask | show | jobs
by groestl 713 days ago
> UUID generated client side and basically upserted it

Read and take notes. This is crazy in untrusted environments.

1 comments

Generating IDs on the client can be very useful for offline-first systems. But you need to check for conflicts and permissions on the server (or be sure to keep the IDs secret which I wouldn't recommend).
Agreed, but in that case "upsert" is also weird, since I'd structure such a system around an immutable log datastructure.