rainyman2012 / url_shortener

0 stars 0 forks source link

basic design of url shortener #1

Open rainyman2012 opened 4 years ago

rainyman2012 commented 4 years ago
**Requirement Gathering:** 1: A user must be able to put a URL in the specific textbox and then see shortened link. 2: A user must be able to put the shortened link in the address bar and then redirect to original URL. **Design:** 1. Application one in the microservice point of view: We generate a hash or a random base64 base on the entered URL then add it as a key and the URL as the value of Redis. 1. Application two in the microservice point of view: We find a hash or random key in the Redis and get the original URL name from that database. after finding the original URL the page will be redirected to the original URL automatically. tips: we can use Docker containers for creating these two applications.
rainyman2012 commented 4 years ago

I've created a design model of the application and the connections existing between them.

shortener

rainyman2012 commented 4 years ago

I've read in some articles that Microservices have an extra API named Gateway API but I've chosen not to complicate the software in the first step.

rainyman2012 commented 4 years ago

we need three containers described below: 1: website 2: URL generator 3: URL restore

rainyman2012 commented 4 years ago

We should have a service for handling our redis requests too.