The design of database under high concurrency

Source: Internet
Author: User

Now what age, still holding SQL Server MySQL Oracle read the data, well you have the problem I came to you to answer

In high concurrency, talk about how data is synchronized (written, read) between the database and Redis, which can guarantee the integrity of the business and improve performance.

Mode 1: Database saves data, Redis does not persist
After Redis boots, load data from the database
Read requests that do not require strong, consistent real-time, are processed by Redis
Requires strong, consistent, real-time read requests, processed by the database
Write requests are handled in 2 ways, handled by the database
-the application writes the database first and then updates the Redis
-the application writes the database first and then synchronizes the other daemon to Redis
Pros: Redis boot does not handle REDIS data and database inconsistencies
Cons: Redis starts a large reading pressure on the database

Mode 2: The database and Redis handle different data types separately
Database processing requires strongly consistent real-time data, such as financial data, transaction data
Redis processing data that does not require strong, consistent real-time, such as the Web site's hottest sticker leaderboard

The design of database under high concurrency

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.