设计一个高并发系统

如何设计一个支持高并发的系统?

Database 数据库

  1. read-write split 读写分离
  2. sharding 分库分表

Service 服务

  1. micro service 微服务
  2. frontend/backend 前后端分离
  3. kubernetes 容器化部署

Cache 缓存

  1. distributed cache 分布式缓存

Asynchronous 异步

  1. message queue 消息队列
  2. cron job 定时任务