[2020] Alibaba Cloud ACE certification real question analysis (short answer question 1)

1. The user needs to clean up historical data at the end of each month, but the cleanup time allowed by the business is only 1 hour; if it cannot be completed within 1 hour, it needs to be rolled back immediately to ensure the normal operation of the business; please provide it from the architecture and schema design Measures to ensure the timely completion of cleanup tasks and the timely recovery of business. (2.5 points)

 

 

 

Answer : text + drawing to answer

  1. Use DRDS+RDS to sub-database and sub-table, so that the pressure of the cleaning task is sent to each RDS, and the pressure of a single database is dispersed.
  2. Each RDS table is partitioned according to the partition key (month), and the table partition of the corresponding month is directly deleted during cleaning to speed up the cleaning process.
  3. Establish a historical database (RDS) and use a data transfer tool (DTS) to periodically synchronize the data in the production database to the historical database. If something unexpected happens, the data can be restored from the historical database to the production database.

 

DRDS

RDS

RDS

RDS

history

DTS

 

More questions, ask for leave

Q skirt 1062521878

Q skirt 1062521878

Q skirt 1062521878

 

Guess you like

Origin blog.csdn.net/u010307344/article/details/107571476