Im about to start my new project, and got architecture problem. I want each user to have their own link to their personal profile.
Like this: Localhost/user/MyRandomUserName
so when i am accutally gonna click on link, i gonna have to find MyRandomUser in db, and replace string with actual Guid of user.
Website wil have possibility to log on with facebook and gmail accounts (to make it easier to access webpage), so there will be possibility of duplicates of same names.
Problem is, how smart is it to put user name as an “id” in url?
I can see youtube something similar, but how does it work?
You will have id for gmail, facebook for login which should be unique and you will ask user to give a unique name for your site which be served as url and if he does not then or you can show GUID instead of name.