Last post Sep 17, 2020 03:36 PM by bruce (sqlwork.com)
Sep 17, 2020 08:29 AM|iveusername|LINK
I need help with the live support url service. When I receive a URL from
Umuly.com on Postman, other people should not be allowed to chat using this url. Assuming that 10,000 people have a live chat, the service must create 10,000 new urls. What is the reason behind this? How does the service generate new urls for each one?
(In .NET Core language)
Sep 17, 2020 03:36 PM|bruce (sqlwork.com)|LINK
your question is not clear. a simple core action to implement short urls:
assume a database with a row for each url and and its short name
public ActionResult ShortUrl(string shortUrl)
var newUrl = db.RegistedUrls
.Find(u => u.ShortName = shortUrl)
.Select(u => u.RegisteredUrl)
.FirstOrDefault() ?? NOT_FOUND_URL;
you can have as many urls as entires in the registered database.
they also support building vanity url, this requires you giving their site ability to register DNS entries for your subdomain. see any DNS library to implement.