(笔记)Distributed Systems for fun and profit

1 Distributed Systems for fun and profit source: http://book.mixu.net/distsys/ 2 1. Basic 2.1 Basic concept 本章介绍了分布式系统的基本概念, 例如 scalablity, perfomance, latency, availability 关于 latent, 这里给出了一个很cool的描述: For example, imagine that you are infected with an airbone virus that turns people into zombies. The laten period is the time between when you became infected, and when you turn into a zombie. That’s latency: the time during which something that has already happed is concealed from view. ...

六月 12, 2021 · 24 分钟 · 11631 字

系统思考

1 前言 领导平日开会时,总是对我们说,你们思考问题角度太单一与片面,没有想清楚问题背后的逻辑与​作用因子。 所以领导总是会不厌其烦地给我们推荐《系统思考》这本书: ...

五月 13, 2021 · 3 分钟 · 1112 字

乡土中国

1 前言 我本身是农村长大,了解农村是什么样的?但是对于为什么会是这样的,却未曾思考出个头绪。 机缘巧合之下,阅读了费孝通先生的名作《乡土中国》, 费先生对于为什么中国农村社会是这样的,给出了详尽而具有说服力的解释。 ...

五月 9, 2021 · 9 分钟 · 4246 字

《君主论》:所谓「帝王心术」

1 前言 1.1 关于君主论 国内的电视剧总会提到所谓的「帝王心术」,「帝王心术」究竟是什么? 马基雅维利就从他的视角,向世人剖析,什么是帝王心术,一个优秀的君主应该如何言行处事。 ...

五月 7, 2021 · 7 分钟 · 3328 字

Let's make everything iterable

Iterate through pagination in the Rest API 1 Preface About 4 months ago, icewind1991 created an exciting PR that adding Stream/Iterator based versions of methods with paginated results, which makes enpoints in Rspotify more much ergonomic to use, and Mario completed this PR. In order to know what this PR brought to us, we have to go back to the orignal story, the paginated results in Spotify’s Rest API. 2 Orignal Story Taking the artist_albums as example, it gets Spotify catalog information about an artist’s albums. ...

四月 29, 2021 · 3 分钟 · 1129 字