Samagra-Development / yaus

Yet Another URL Shortner
https://github.com/Samagra-Development/yaus/wiki
11 stars 28 forks source link

Feat(Link-expiry): Added link expiry using redis #83

Closed Nazi-pikachu closed 11 months ago

Nazi-pikachu commented 1 year ago

Description

This draft pull request introduces the link expiry feature, allowing links to automatically expire after a specified period. The implementation includes adding a layer of redis on the top of postgres and Setting up TTL in redis

Related Issue

https://github.com/Samagra-Development/yaus/issues/22 https://github.com/Samagra-Development/yaus/issues/52

Nazi-pikachu commented 1 year ago

Hey @yuvrajsab This is a draft PR with a minimal implementation of link-expiry using redis. I am thinking of making RMQ durable Rather than non-durable since we can't afford data loss if we want to sync both the db using it.

yuvrajsab commented 1 year ago

@Nazi-pikachu yes please make it durable.

Nazi-pikachu commented 11 months ago

This is final PR It includes the following changes

  1. Adding a layer of redis on top of postgres
  2. Updating the relavant services to support this
  3. Integrating with RMQ to increase the cick_count in DB async #74
  4. Refactoring the backend code to be more modular
  5. Adding docString to make code more readable
  6. Fixes few bugs and edge cases previously missing
  7. Support for LINK-EXPIRY added #22