Skip to content

Microsoft Orleans example project demonstrates Smart Cache Pattern

License

Notifications You must be signed in to change notification settings

windperson/OrleansUrlShortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OrleansUrlShortener

Microsoft Orleans example project on Microsoft Learn course demonstrates Smart Cache Pattern

Add some other error prevention, add Orleans Dashboard and successful deploy to Azure WebApp.

You can use dotnet-httpie tool to test the UrlShortener API:

  1. Inside this project folder, type dotnet tool restore to install/restore the dotnet-httpie tool.

  2. Invoke following command to create a shorten URL entry:

    dotnet http "[the_deployed_root_url]/shorten/[your_url]"

    replace the [the_deployed_root_url] with your deployed Azure service root url, and the [your_url] is the web page url address you want to shorten, like the following running example screenshot, we shorten the www.github.com/dotnet/orleans url:


    Remember to keep the Last 8 Hexadecimal characters of the response, that is the shorten Url code that we will use it in the next step.

  3. Invoke following command once you have create a shorten Url code in previous step:

    dotnet http "[the_deployed_root_url]/go/[shorten_url_code]"

    replace the [the_deployed_root_url] with your deployed Azure service root url, the [shorten_url_code] is the shorten Url code you get in the previous step, it will has the HTTP 302 response like following screenshot:
    Actually you can use that URL directly in your Internet Browser, it will redirect to Microsoft Orleans' GitHub home page(www.github.com/dotnet/orleans).

About

Microsoft Orleans example project demonstrates Smart Cache Pattern

Resources

License

Stars

Watchers

Forks

Packages

No packages published