An open API service indexing awesome lists of open source software.

https://github.com/abdybaevae/url-shortener

Url shortner service
https://github.com/abdybaevae/url-shortener

base62 golang grpc-gateway postgres

Last synced: 6 months ago
JSON representation

Url shortner service

Awesome Lists containing this project

README

          

# Url shortener service
### Technologies:
- Go
- Grpc
- Postgres
- Redis

### Featres:
- Clean architecture
- Concurrency safe
- Low latency
- Cache
- Default BASE62 algorithm
- Customizable algorithm
- Multiple algorithms support

### Services:
- Link Service
- Key Generation Service
- Algorithm Factory
- Number Service

Link service allow you shorten links

Key generation service pre generate unique keys, depending on algorithm

Algorithm factory register all algorithms

Number service allow you concurently generate increment value in database

### Notes:
In base62 implementation every long url refference on unique integer, that converts to base62 (digits and alphabetical symbols). Key grows up to 62^n( 56 800 235 584 unique keys for 6 chars size)