- 使用 Pool, Pool, Pool… 推荐 GProc 库:
- 异步,异步,异步消息…连接层到路由层异步消息,同步请求用于负载保护
- 避免进程 Mailbox 累积消息
- 多使用 Binary 数据,避免进程间内存复制
- 使用 ETS, ETS, ETS… Message Passing vs. ETS
- 避免 ETS 表非键值字段 select, match
- 适当开启 ETS 表 {write_concurrency, true}
- 保护 Mnesia 数据库事务,尽量减少事务数量,避免事务过载(overload)
- 避免对 Mnesia 数据表非索引、或非键值字段 match, select