This service is analog of сlck.ru. He generates short url from the specified, and redirect to full url when someone requested short url. This service is a test project.
Language: Go. Librares: no.
- hash algorithm collisions
- scaling
- remote url storage (resolve scaling problem)
- url swelling
- redirect chains (redict abuse problem)
- logs, metrics
Generates short url from the specified one.
GET http://localhost:8080/--?url=https://google.ru
Response:
200 OK
localhost:8080/39ac065e
Redirect to full url.
GET http://localhost:8080/39ac065e
Response redirects to the full url.
- Clone the repository.
- Launch the project.
git clone https://github.com/lillilli/url_minificator.git && cd url_minificator
make run
- Clone the repository.
- Make image.
- Launch image.
git clone https://github.com/lillilli/url_minificator.git && cd url_minificator
make image
make run:image