3 ms·
One big one is distributed computing: for example, an app that can create To Do items offline and periodically syncs with a server. If you have your To Do item
by lolinder 5y ago
One big one is distributed computing: for example, an app that can create To Do items offline and periodically syncs with a server.
If you have your To Do items identified by an incrementing integer, you have to come up with some other unique identifier to use for To Do items that have yet to be synced with the server's database (since you can't know which ID to use next).
On the other hand, if you use UUIDs, your app can just create a new UUID for the To Do item, which will continue to be its ID for subsequent updates.