Skip to content

Tarunpreetsingh16/key-generation-service

Repository files navigation

Key Generation Service

Table of contents -

  1. Description
  2. Need of the service
  3. Components in this service
  4. Flow Diagram
  5. Swagger docs to the service
  6. URL to the service

Description

Key Generation Service is the core of URL shortener feature. This service provides the key that will be appended to the base URL, which will then be shared with the client as part of the shortened URL by the URL shortener service.

Need of the service

For our simple project, it makes sense to make it a part of URL shortener service, but in the real world the traffic can be in millions/billions. Read traffic will be higher than write, hence we should leave URL shortener service alone to deal with redirection of the URLs. This is the reason I am choosing to keep key generation service as a separate microservice. Also key generation need to keep up with the traffic so it can generate new keys on the side without causing delay in the main service.

Components in this service

component diagram

Flow Diagram

Flow diagram

Swagger docs to the service

The service is deployed on Render, and is using a free tier. It might take a minute before you can access the service/swagger docs because container need to spin up again.

Swagger docs

URL to the service

GET a random key

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published