How to ensure that data in a Mysql and Redis to save data
CodePudding user response:
What is the business scenario
CodePudding user response:
It all depends on your specific business requirements, this is to belong to high concurrency you read or write high concurrency is handling is also different, is to require strong unanimously agree or the treatment is different also,
Routine: while mysql data update, send a message to the message queue, the message receiver to receive news updates redis data,