Saturday, 23 May 2020

Nodejs, Redis, Mysql advise

Currently I have a nodejs API server which is connected to redis & mysql.On the first load of the nodejs server I load all the data I need and store it in redis. When a GET request is received from the API it gets the data from redis and not from the DB.When a post request is received i am then writing the data into the DB then re-caching into redis is this the correct way of doing it or should I be storing the post data into redis and then back into the DB?

Submitted May 23, 2020 at 09:38PM by MrHid6

No comments:

Post a Comment