Answer the question
In order to leave comments, you need to log in
How to queue requests in redis?
There is a task: to cache the actual value from the application in redis as often as possible.
Problems:
1) Memory overflow may occur if you do not wait for a response from the previous request and immediately send the next one to change the parameter. It may be that in the process there will be quite a lot of simultaneous calls to the radish.
2) The new request can theoretically reach faster than the old one, thus it will overwrite the newer value with the old one.
Maybe there are some ready-made solutions for queuing redis requests? So that they all go in sync with each other.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question