Summary of experience (personal note)

Source: Internet
Author: User

Architecture direction:

MySQL + redis

MySQL Read
Redis Write

involves MySQL + redis master-slave replication using triggers and queued tasks

1, when the data changes, priority to the data into Redis from the table, and in the Redis message queue to add table change tasks, using a timer to gradually trigger into MySQL
2, data Backup, Redis and MySQL separate from backup
3, related to the transaction, the timeliness of high demand for direct use of MySQL
4, related to the new user registration or payment module, to see the specific analysis of requirements, such as directly inserted into MySQL, 3 seconds after the jump, then in the background processing cache update transactions

Layered:
1. Controller layer: Assemble or separate multiple ports directly for the data required by each module
2, the event layer: Separate the events of each module, so that the controller can be individually corresponding to different end, mobile phone, APP, Web page to do different processing
3, Logic Layer: for multi-table operation, and data legitimacy filtering more cumbersome operations, as a data layer to supplement
4. Data layer: Operation database
5, Cache layer: As a data layer read and write data of a supplement


Summary of experience (personal note)

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.