Skip to content

Implementation of a URL shortening system using .NET Core (ASP.NET) for the server code and MongoDB for the database. Memory cache layer (LRU) is introduced to handle a burst of redirections efficiently and basic Request Collapsing implementation.

Notifications You must be signed in to change notification settings

nirnaim/short-url-dotnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Short URL System

This project implements a URL shortening system with the following features:

  • Shortens long URLs to unique short URLs
  • Stores mappings in MongoDB, with no long URLs repeat
  • Caches recently accessed URLs in memory
  • Request collapsing for efficient multi-threading

Technologies:

  • .NET Core (ASP)
  • MongoDB
  • Least Recently Used (LRU) caching strategy
  • Request collapsing

Installation:

  1. Clone the repository.
  2. Install .NET Core SDK.
  3. Restore NuGet packages: dotnet restore
  4. Run the application: dotnet run

Configuration:

  • Configure MongoDB connection details in appsettings.json:

About

Implementation of a URL shortening system using .NET Core (ASP.NET) for the server code and MongoDB for the database. Memory cache layer (LRU) is introduced to handle a burst of redirections efficiently and basic Request Collapsing implementation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages