XMUM-Unofficial-DMT-Discord-Union / deadline-bot

MIT License
0 stars 0 forks source link

Convert codebase to use Redis for caching instead of manually caching data #12

Open siew24 opened 2 years ago

siew24 commented 2 years ago

As time goes on, it is apparent that manual caching is not feasible in terms of scalability, complexity, maintainability and stability. With the current way of caching data fetched from database, there is potential for race conditions to happen which also affects the bot's uptime.

Example of usage of Redis with Firestore

siew24 commented 2 years ago

Turns out there's no clear-cut library for this particular context. More work will have to do to create a robust system which fetches data from Firestore and manage the data depending whether it exists in Redis or not.