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:
- Clone the repository.
- Install .NET Core SDK.
- Restore NuGet packages:
dotnet restore
- Run the application:
dotnet run
Configuration:
- Configure MongoDB connection details in
appsettings.json
: