Business design database with fast and large data updates

Source: Internet
Author: User

Tens of millions to hundreds of millions of data records
Device ID table sharding, by segment or modulo
Primary Key with long time
Finally, remove the auto-incrementing column.

If the concurrency exceeds a certain level (for example, 100 times per second)
Read/write splitting starts.
Primary database with no index write only
Create an index from the database and adjust the index size

If the concurrency is large (for example, writing-times per second or more), this is the case:
Raw data is stored using aof log
And then asynchronously stored in the database
Database re-read/write splitting

After writing logs, multiple workers write data to the database concurrently, almost instantly.

To put it bluntly, the key to a system of this scale is indexing.
Using relational databases is a fast and cost-effective index system.

 

Data archiving should also be done. cold/hot data is separated, and old data is merged according to different dimensions.

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.