What are the benefits of using Alibaba Cloud station and depot separation? Apart from safety considerations, what are the benefits of other places?

  question

What are the benefits of using Alibaba Cloud station and depot separation? Apart from safety considerations, what are the benefits of other places?

Say a scene I met:

Before, I used a 512MB machine to run, installed lnmp environment, went online for half a month, and would hang up three or four times a week. After restarting, it was ok. After checking, it was found that MySQL took up too much memory.

Later, it was upgraded to 1GB and continued to run. The problem was obviously “alleviated” and changed from three or four times a week to three or four times a month.

And constantly optimize MySQL, write scripts to release memory, do backups, restart in the morning, etc.

Later, when the business volume increased and continued to decline, two more specialized database servers were added and some master-slave controls were added. Then this part of logic was rewritten and read/write splitting was made.
再后来,还是不断的增加和宕,又上了阿里云的SLB,做了均衡负载,还专门学&写了redis做数据缓存……

At this time, it is already two front-end servers plus two database servers plus one redis plus SLB.

Next I saw:

“1.RDS enables us not to care about the bottom; 2.RDS supports automatic expansion; 3. It is convenient to have migration tools. 4. There is no need to consider high availability. 」

Later, using RDS from Alibaba Cloud, the scripts were all removed, the master and slave were all removed, and the cache was also removed …

Only one 1GB server was left to run php, and it never went down again.