UUID vs Integer

UUIDs are merely integers that are picked at random by nodes that cannot necessarily communicate with each other, so they are only very, very likely to be unique rather than guaranteed. If you’re programming a NON-distributed system, there is no advantage.