Database data cache synchronization on multiple development platforms

Source: Internet
Author: User
The company is currently a small company and is developing a social APP that involves the APIS required by the APP (node. js), PC-end user center website (php), General Management Center (java), currently using mysql database, everyone uses redis cache on different platforms, but the problem is that, modified through API... the company is currently a small company and is developing a social APP that involves the APIS required by the APP (node. js), PC-end user center website (php), General Management Center (java), currently using mysql database, everyone uses redis cache on different platforms, but the problem is that, when the database and A cache are modified through APIS, the PC-side website cache is unknown and cannot be updated in time. How to Design the cache is more scientific?
You are welcome to recommend front-end development engineers, architects, and DBAs for yourself :)

Reply content:

The company is currently a small company and is developing a social APP that involves the APIS required by the APP (node. js), PC-end user center website (php), General Management Center (java), currently using mysql database, everyone uses redis cache on different platforms, but the problem is that, when the database and A cache are modified through APIS, the PC-side website cache is unknown and cannot be updated in time. How to Design the cache is more scientific?
You are welcome to recommend front-end development engineers, architects, and DBAs for yourself :)

In our previous systems, cache was centrally planned by the same person, and then maintained by the principle of WHO updates data and who maintains the cache.

Based on the business, you can plan cache content in a unified manner and save only one copy of the cache. When you access the same copy, you can ensure that all the obtained content is up-to-date. This technology is not difficult, but it requires strong high-level execution.

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.