知识卡片
先缩短关键路径再换模型
请求处理与启动是两条关键路径,应该减少其上的工作:配置可预载,数据可缓存、预取、批量读写,并先定位慢查询和远程等待。尽早跑通一条薄切片,边加功能边测性能。若默认服务已达需求,就不必换复杂线程模型;局部优化的复杂度要与宏观多副本扩容的成本一起评价,吞吐改善必须实际测量。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 服务端架构 · 查看原书依据
The most critical path in a service is serving the requests. The next critical path is server startup. Do as little as possible on the critical paths. For example, read configurations and deployments on startup or in the background.
参考来源
- 位置:《Software Architecture and Decision-Making》第11章《Server Architectures》(来源项目:book-sources;源文件:extracted/Software Architecture and Decision-Making Leveraging Leadership, Technology, and Product Management to Build Great Products… (Srinath Perera)/_epub-src/ch11.xhtml)
- 结论依据:摘录说明请求处理与启动是两条关键路径,应该减少其上的工作:配置可预载,数据可缓存、预取、批量读写,并先定位慢查询和远程等待。其余条件结合本章相邻例子与取舍说明,数字示例不作当前性能承诺。
- 原始内容:The most critical path in a service is serving the requests. The next critical path is server startup. Do as little as possible on the critical paths. For example, read configurations and deployments on startup or in the background.