Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 13891

Syncing Redis with MariaDB

$
0
0

In my spare time, I'm developing an API where successful queries result in a reduction of the user's available query credits. Currently, I'm utilizing Redis 6 for a temporary cache of the balance data (with a 60-second time-to-live) and MariaDB 10.5 for storing the data persistently.

My concern is about the potential for the cached balance in Redis to become unsynchronized with the data in MariaDB. I'm curious if there's a best practice approach for maintaining consistency between these two data storage systems. If aligning them proves to be too complex, I'm considering forgoing the Redis cache for balance information and relying solely on MariaDB.


Viewing all articles
Browse latest Browse all 13891

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>