Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Url Shortening Service #1

Open
7 of 17 tasks
npathai opened this issue Jun 3, 2020 · 4 comments
Open
7 of 17 tasks

Url Shortening Service #1

npathai opened this issue Jun 3, 2020 · 4 comments
Assignees

Comments

@npathai
Copy link
Owner

npathai commented Jun 3, 2020

  • From long url to short url
  • From short to long url
    • Basic conversion
    • Who should append the hostname in short url
    • Considerations for load balancing
    • What if there are multiple hostnames
  • Redirect the user to long url when short url is visited
  • Url expiry
  • User Authentication
    • Basic authentication or OpenId Connect
    • Authenticated User will get Analytics and Tracking
    • Without authentication create url with default expiry maybe a week
    • Delete url
  • Add Documentation
  • Add logging (include user IP for tracking and analytics)
  • short-url-gen service should only be accessible using public network, id-gen-service etc should not be directly reachable from outside network.
  • Distributed tracing with Zipkin
@npathai npathai self-assigned this Jun 3, 2020
@IAmPramod
Copy link

@npathai We can think of logging ip of the users visiting any short url. This will help in gathering stats and creating reports.

@npathai
Copy link
Owner Author

npathai commented Jun 13, 2020

@IAmPramod Good idea. I will consider that. Currently I am converting both microservices to Micronaut framework.

I started quick and dirty but now when I thought about discovery dashboard, graphana and Prometheus, zipkin tracing, health checks, etc. It would have required hell lot of manual work to get everything going.

So I have taken decision to move to Micronaut. Will push update soon.

@npathai
Copy link
Owner Author

npathai commented Jun 13, 2020

@IAmPramod Hard work of porting both services to Micronaut is complete. Phew! Now adding new features should not be that much pain. Check it out. I will update the diagram to reflect the changes. In terms of starting the application, it remains the same.

@IAmPramod
Copy link

@npathai Sure, will pull the code and go through it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants