EnqueueZero Techshack 2019-06

大家好,这是 EnqueueZero Techshack 2019-06 期。以下内容存档于 2019-06 CN; 其英文版笔记存档于2019-06

本周 the morning paper 概览了一篇微信架构的论文,为了防止服务的过载,微信后端的策略是按优先级丢掉请求。https://blog.acolyer.org/2018/11/16/overload-control-for-scaling-wechat-microservices/

GitOps 是一种持续部署的理念。偏好使用声明式的语法写代码,尽可能不调用 kubectl, 而应该监听配置变化,自动应用这些变更,所有的变更应当写回 Git 仓库去。https://www.weave.works/technologies/gitops/

CNAB 的这篇演讲稿介绍了 CNAB 和其它打包标准的区别:它关注的是怎么把工具也打包进去。https://speakerdeck.com/garethr/cnab-packagaging-for-applications-with-multiple-toolchains

事件驱动改变了现代软件系统的设计,有两种模式:event-first, event-commands, 一般来说比较倾向第一种。权衡的点在于考虑的容错和纠错,好处是系统可扩展,高解耦。https://www.confluent.io/blog/journey-to-event-driven-part-1-why-event-first-thinking-changes-everything

API Gateway 在诸如 Ingress,Service Mash 等概念的对比下很多人容易混淆。http://blog.christianposta.com/microservices/api-gateways-are-going-through-an-identity-crisis/

系统演变要么一刀切到新系统,要么更稳妥一点,采用 Stranger 模式,边跑高速边升级整辆车。https://www.martinfowler.com/bliki/StranglerApplication.html

Coroutines in C 一文应该成文很久了,文笔非常精彩,入木三分地介绍了 Coroutines 的本质。https://www.chiark.greenend.org.uk/~sgtatham/coroutines.html

监控指标的标签不少人会像日志一样什么数据都往里面写,这是不对的。标签最好不变更,并且数量可控,尽可能少。不然写 Query 的时候全家火葬场。https://www.robustperception.io/target-labels-are-for-life-not-just-for-christmas/

工具类:


Kia ora! I am the creator of Enqueue Zero (https://enqueuezero.com), a site that explains code principles to Developers/DevOps/Sysadmins. This site is updated under a single man team since 2018. The `EnqueueZero Techshack` series is comprised of a bunch of interesting posts I wrote or found on the Internet. More importantly, I hope these posts would please you.

Please follow Twitter account @enqueuezero for the updates. Happy exploring!