A high-performance, scalable URL shortener built with FastAPI, deployed using Docker and Kubernetes. This service is designed to handle thousands of requests per second with lightning-fast lookups, thanks to efficient routing algorithms and Redis caching.
- Scalable Architecture: Deployed with Docker and Kubernetes for easy scaling and management.
- High-Speed Lookups: Integrated Redis caching for rapid URL resolution.
- Efficient Routing: Advanced routing algorithms to optimize request handling.
- Short URL Generation: Generate compact, easily shareable short URLs.
- Analytics Tracking: Track usage statistics (e.g., click counts, user location, device type).
- Backend Framework: FastAPI
- Caching: Redis
- Containerization: Docker
- Orchestration: Kubernetes
- Database: PostgreSQL
- CI/CD: GitHub Actions for automated deployment
The service follows a microservices architecture, ensuring high availability and scalability.
- FastAPI Service: Handles URL shortening, redirection, and analytics tracking.
- Redis Cache: Accelerates lookups by caching frequently accessed short URLs.
- PostgreSQL Database: Persists URL mappings and analytics data.
- Docker Containers: Each component is containerized for portability and consistency.
- Kubernetes: Manages deployment, scaling, and monitoring.
- Docker & Docker Compose
- Kubernetes & kubectl
- Redis & PostgreSQL
git clone https://github.com/your-username/url-shortener.git
cd url-shortener