hard-disk-io
[两招提升硬盘存储数据的写入效率 - 又拍云](https://www.upyun.com/tech/article/696/两招提升硬盘存储数据的写入效率.html)
优化写入性能的两种方法:
- 追加写,利用顺序 IO 来实现快速写
- 很多数据库中为了提升性能都会引入 WAL 机制,例如,Kafka 和 MySQL 的 InnoDB 存储引擎举例
还可以看一下 LSM 树,etcd 等是怎么实现快速写的。
参考资料:
- https://www.educba.com/what-is-kafka/
- https://kafka.apache.org/intro
- https://en.wikipedia.org/wiki/Apache_Kafka
- https://developpaper.com/why-is-kafka-so-fast/
- https://kafka.apache.org/quickstart
- https://www.freecodecamp.org/news/what-makes-apache-kafka-so-fast-a8d4f94ab145/
- https://en.wikipedia.org/wiki/Log-structured_merge-tree