查看: 10229| 回复: 7
跳转到指定楼层
上一主题 下一主题
收起左侧

[经验总结] Designing Data-Intensive Applications - Chapter 1 摘录读后感

全局:

注册一亩三分地论坛,查看更多干货!

您需要 登录 才可以下载或查看附件。没有帐号?注册账号

x
在坛子里也混迹一段时间了,看到各路大神在分享经验和学习心得,最近开始研究System Design 通过这个帖子https://www.1point3acres.com/bbs ... ewthread&tid=559285 后开始 研读《Designing Data-Intensive Applications: The Big Ideas Behind Reliable, Scalable, and Maintainable Systems》https://www.amazon.com/Designing ... nable/dp/1449373321
决定每读一个Chapter,就把自己的读书摘录和笔记分享到坛子里供大家一起探讨学习.








ps, 顺便问一下大家,这个论坛里咋把Google Doc的文字按照格式复制过来啊, 那个 从“word” 黏贴内容好像没用啊 ? 不想每次都花半小时时间重新在这又整理格式.


补充内容 (2020-5-17 03:24):
重新整理的版本发布在第8楼:
https://www.1point3acres.com/bbs ... 31&pid=11484152

补充内容 (2020-5-29 07:33):
<Designing Data-Intensive Applications> 全十二章笔记总结PDF版本
https://www.1point3acres.com/bbs/thread-639394-1-1.html

评分

参与人数 4大米 +8 收起 理由
Myron2017 + 3 给你点个赞!
lch04 + 3 给你点个赞!
025ebaacad + 1 很有用的信息!
Corolla17 + 1 给你点个赞!

查看全部评分


上一篇:动态规划DP系列 - 01背包问题 如何优化空间
下一篇:【讨论】SDK/API是怎么实现的
推荐
jyt0532 2020-3-31 05:49:37 | 只看该作者
全局:
推薦你參考我的blog: https://www.jyt0532.com/toc/designing_data_intensive-application/

搭配著看 事半功倍

评分

参与人数 1大米 +3 收起 理由
mk48 + 3 很有用的信息!

查看全部评分

回复

使用道具 举报

推荐
025ebaacad 2020-4-28 15:41:46 | 只看该作者
全局:
Cool notes. I feel like to read your notes instead of the book when I would like to review the content in the book
回复

使用道具 举报

🔗
 楼主| comeshare 2020-3-31 10:48:36 | 只看该作者
全局:
jyt0532 发表于 2020-3-31 05:49
推薦你參考我的blog: https://www.jyt0532.com/toc/designing_data_intensive-application/

搭配著看 事 ...

太棒了! 非常谢谢!
回复

使用道具 举报

🔗
akira2551 2020-3-31 12:35:42 | 只看该作者
全局:

点赞,之前就是看了你的文章才买了这本书
回复

使用道具 举报

🔗
zqyzdsjdy 2020-3-31 13:02:48 | 只看该作者
全局:
jyt0532 发表于 2020-3-31 05:49
推薦你參考我的blog: https://www.jyt0532.com/toc/designing_data_intensive-application/

搭配著看 事 ...

好blog但是繁体看着好累呀, 作者有简体或者英文吗
回复

使用道具 举报

🔗
cszhazha 2020-3-31 14:46:03 | 只看该作者
全局:
zqyzdsjdy 发表于 2020-3-31 13:02
好blog但是繁体看着好累呀, 作者有简体或者英文吗

chrome可以直接翻译成简体
回复

使用道具 举报

🔗
 楼主| comeshare 2020-5-17 03:22:19 | 只看该作者
全局:
本帖最后由 comeshare 于 2020-5-17 03:59 编辑

在坛子里也混迹一段时间了,看到各路大神在分享经验和学习心得,最近开始研究System Design 通过这个帖子https://www.1point3acres.com/bbs ... ewthread&tid=559285  后
开始研读《Designing Data-Intensive Applications: The Big Ideas Behind Reliable, Scalable, and Maintainable Systems》https://amzn.to/2WYphy6


决定每读一个Chapter,就把自己的读书摘录和笔记分享到坛子里供大家一起探讨学习.


同时推荐这个Blog: https://www.jyt0532.com/toc/designing_data_intensive-application/
文章同步发到我自己的Blog: https://comeshare.net/category/study/system-design/

[b]Reliability[/b]
  • Continuing to work correctly, even when things go wrong.
    • aka. fault-tolerant or resilient.
  • Fault vs. Failure (fault means one component failed), design system that able tolerance the fault to prevent failure;
  • Hardware Faults: Redundancy is  the key;
  • Software Errors: could be more troublesome;
    • Developers need to make assumptions and interactions carefully.
  • Human Errors: Design to minimize chances of errors; decouple; Test thoroughly; Quick recover ability; monitoring(performance/error rate), aka Telemetry; Good management practice/training;
[b]Scalability:[/b]
  • A system’s ability to cope with increased load.
  • Describing Load:  defined by “load parameters”, it depend on architecture of your system, e.g.
    • the requests per second to a web server,
    • the ratio of reads to writes in a database,
    • the number of simultaneously active users in a chatroom,
    • the hit rate on a cache, etc.
  • Twitter hybrid approach: fanned-out vs. fetched

  • the average rate of published tweets is almost two orders of magnitude lower than the rate of home timeline reads → Fanned-Out approach
    • On average, a tweet is delivered to about 75 followers, so 4.6k tweets per second become 345k writes per second to the home timeline caches.
    • Moved to Hybrid approach to handle Justin-Biber effects.
  • Describing Performance: When you increase a load parameter, keep the same system resources, what will happen ? How much do you need to increase resources to keep up the performance ?
    • E.g. “response time”— the time between a client sending a request and receiving a response.
    • Latency vs. response time: Latency is the duration that a request is waiting to be handled—during which it is latent, awaiting service.
    • Better use “percentiles” to measure response time, e.g. median(p50)

      • High percentiles of response times, also known as tail latencies, are important because they directly affect users’ experience of the service.
      • Amazon describes response time requirements for internal services in terms of the 99.9th percentile (affects 1 in 1,000 requests).
        • On the other hand, optimizing the 99.99th percentile (the slowest 1 in 10,000 requests) was deemed too expensive and to not yield enough benefit for Amazon’s purposes.
      • Amazon has also observed that a 100 ms increase in response time reduces sales by 1% [20], and others report that a 1-second slowdown reduces a customer satisfaction metric by 16%
      • It is important to measure response times on the client side.
  • Approaches for Coping with Load:
    • Good architectures usually involve a pragmatic mixture of approaches: Scaling up(Vertical) & Scaling out(horizontal)
      • Scaling out: Stateless service is fairly straightforward compared to Stateful service.
    • It is conceivable that distributed data systems will become the default in the future.
    • The architecture of systems that operate at large scale is usually highly specific to the application.
    • An scalable architecture usually built from general-purpose building blocks arranged in familiar patterns.
[b]Maintainability:[/b]
  • Operability: Make it easy for operations teams to keep the system running smoothly.
  • Simplicity: Make it easy for new engineers to understand the system,
    • By removing as much complexity as possible from the system. (Note: this is not the same as simplicity of the user interface.)
    • Making a system simpler DOES NOT necessarily mean reducing its functionality;
    • Complexity: as accidental if it is not inherent in the problem that the software solves (as seen by the users) but arises only from the implementation.
      • One of the best tools we have for removing accidental complexity is abstraction. (However,finding good abstractions is very hard.)
  • Evolvability:Make it easy for engineers to make changes to the system in the future, adapting it for unanticipated use cases as requirements change. Also known as extensibility, modifiability, or plasticity.
    • Agile working patterns provide a framework for adapting to change
    • simple and easy-to-understand systems are usually easier to modify than complex ones (Linked to the previous point – Maintainability)
Summary
  • functional requirements: (what it should do, such as allowing data to be stored, retrieved, searched, and processed in various ways),
  • nonfunctional requirements: (general properties like security, reliability, compliance, scalability, compatibility, and maintainability)
  • Reliability means making systems work correctly, even when faults occur.
  • Scalability means having strategies for keeping performance good, even when load increases.
  • Maintainability has many facets, but in essence it’s about making life better for the engineering and operations teams who need to work with the system


Designing Data-Intensive Applications - Chapter 1 摘录读后感
(更新)https://www.1point3acres.com/bbs ... 617831&pid=11484152


Designing Data-Intensive Applications - Chapter 2 摘录读后感
https://www.1point3acres.com/bbs/thread-619627-1-1.html

Designing Data-Intensive Applications - Chapter 3 摘录读后感
https://www.1point3acres.com/bbs/thread-621149-1-1.html

Designing Data-Intensive Applications - Chapter 4 摘录读后感*
https://www.1point3acres.com/bbs/thread-622790-1-1.html

Designing Data-Intensive Applications - Chapter 5 摘录读后感
https://www.1point3acres.com/bbs/thread-623896-1-1.html

Designing Data-Intensive Applications - Chapter 6 摘录读后感
https://www.1point3acres.com/bbs/thread-624433-1-1.html

Designing Data-Intensive Applications - Chapter 7 摘录读后感
https://www.1point3acres.com/bbs/thread-625587-1-1.html

Designing Data-Intensive Applications - Chapter 8 摘录读后感
https://www.1point3acres.com/bbs/thread-626563-1-1.html

Designing Data-Intensive Applications - Chapter 9 摘录读后感
https://www.1point3acres.com/bbs/thread-628100-1-1.html

Designing Data-Intensive Applications - Chapter 10 摘录读后感
https://www.1point3acres.com/bbs/thread-629666-1-1.html

Designing Data-Intensive Applications - Chapter 11 摘录读后感
https://www.1point3acres.com/bbs/thread-632821-1-1.html

Designing Data-Intensive Applications - Chapter 12 摘录读后感
https://www.1point3acres.com/bbs/thread-636762-1-1.html







回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号
隐私提醒:
  • ☑ 禁止发布广告,拉群,贴个人联系方式:找人请去🔗同学同事飞友,拉群请去🔗拉群结伴,广告请去🔗跳蚤市场,和 🔗租房广告|找室友
  • ☑ 论坛内容在发帖 30 分钟内可以编辑,过后则不能删帖。为防止被骚扰甚至人肉,不要公开留微信等联系方式,如有需求请以论坛私信方式发送。
  • ☑ 干货版块可免费使用 🔗超级匿名:面经(美国面经、中国面经、数科面经、PM面经),抖包袱(美国、中国)和录取汇报、定位选校版
  • ☑ 查阅全站 🔗各种匿名方法

本版积分规则

>
快速回复 返回顶部 返回列表