Similar to many other services, Gmail primarily utilizes Unique IDs (UIDs) linked to the requested username instead of the username itself to manage conflicts. To ensure usernames remain unique, they employ atomic operations when adding a new username to their database. If two users in different countries attempt to register the same username simultaneously, the resolution depends on which request reaches the server first. If that request successfully proceeds through the request pipeline, it will be accepted, while the other request will be rejected due to the atomic operation recognizing that the username is already taken. Consequently, the user whose request fails will be prompted to select a different username or modify it by adding additional characters or numbers to achieve uniqueness. It’s important to note that distributed systems like Gmail have safeguards in place to avoid such issues by using comprehensive conflict resolution strategies. As a system designer, your responsibility would be to outline these strategies and illustrate your grasp of how such conflicts are avoided or resolved in practical systems.