locked
Umuly - Live Support URL logic RRS feed

  • Question

  • User148336851 posted

    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)

    Thursday, September 17, 2020 8:29 AM

All replies

  • User-474980206 posted

    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

    [Route("/{shortUrl}")]
    public ActionResult ShortUrl(string shortUrl)
    {
         var newUrl = db.RegistedUrls
                .Find(u => u.ShortName = shortUrl)
                .Select(u => u.RegisteredUrl)
                .FirstOrDefault() ?? NOT_FOUND_URL;
         return Redirect(newUrl);
    }

    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.

    Thursday, September 17, 2020 3:36 PM