Real-time Refresh caching-some design scenarios for handling MySQL master-slave delay

Source: Internet
Author: User

Profile:


In the project development, often have such a scenario, the database to add, modify, delete the application of the operation directly connected to the master library, only the database query application, will first establish a central cache, such as Redis or memcache, if the cache is not hit, Then directly access the slave library. The following describes what to do if a master-slave delay occurs when the central cache is refreshed. That is, when the application System-a database to the master library, System-b application in the reading slave library, the master Library of data is not synchronized to the slave library, if this time to refresh the cache, the old data will be directly to the cache.


Please see my csdn blog for more information:

Real-time Refresh caching-some design scenarios for handling MySQL master-slave delay

Real-time Refresh caching-some design scenarios for handling MySQL master-slave delay

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.