Many Links 0130

1.
Running Envoy as an Edge Proxy at eBay: Replacing Hardware Load Balancers with a Software Solution
https://www.infoq.com/news/2018/12/envoycon-ebay-edge
eBay的Envoy实践。

2.
Spring源码探究:容器
https://www.jianshu.com/p/4a82770fd188
你遇到过定义了一个拦截器/bean,在controller层的代码生效,而service层没生效?
这篇文章做了解读。虽然问题是适合Spring初学者,但是作者解释的还是清晰的,而且不过分深入,适合初步了解Spring。

当上门这句话放在springmvc.xml中时,名为”printTimeProcessor”的bean会存在于Springmvc容器,那么Spring容器是无法获取它的。而Service层恰巧是存在于Spring容器中,所以”printTimeProcessor”切面对Service层不起作用。而Controller层本身存在于Springmvc容器,所以Controller层可以正常工作。而当它放在spring.xml中时,”printTimeProcessor”是存在于Spring容器中,Springmvc容器是Spring容器的子容器,子容器可以获取到父容器的bean,所以Controller层与Service层都能获取到该bean,所有都能正常使用它


这里可能有点混乱,把“Springmvc容器”当作Web容器(WebApplicationContext),“Spring容器”当作App容器(ApplicationContext)。
作者的源码可能和文中有些出入,但是其中原理探索是值得一看的。

3.
MIT Tech Review JANUARY/FEBRUARY 2019 The China issue
其他几篇需要订阅阅读
https://www.technologyreview.com/magazine/2019/01/
数字统计不知真假,看起来是个强国啊,这几年的的科技发展迅猛

China’s tech giants want to go global. Just one thing might stand in their way.
China’s losing its taste for nuclear power. That’s bad news.
The man turning China into a quantum superpower
China has never had a real chip industry. Making AI chips could change that.
Aboard the giant sand-sucking ships that China uses to reshape the world
China’s losing its taste for nuclear power. That’s bad
China’s giant transmission grid could be the key to cutting climate emissions
The man turning China into a quantum superpower
Years before CRISPR babies, this man was the first to edit human embryos
Science vs. the state: a family saga at the Caltech of China
How Google took on China—and lost
The Reunion: a new science-fiction story about surveillance in China
The US and China aren’t in a “cold war,” so stop calling it that
How China got a head start in fintech, and why the West won’t catch up

4.
《从0开始学架构》–笔记
https://coderbee.net/index.php/framework/20180918/1655

5.
微服务消息传递协议简介
http://mushiming.top/mushblog/archives/890

那么,微服务架构如何处理分布式独立进程中的通信?一些交叉的方式:
同步协议
异步协议
单接收器
多个接收器
如何避免同步依赖?
复制和传播将有助于回避同步性问题。通过复制,您可以将数据存储在多个站点(如服务器)中。这极大地提高了数据的可用性并减少了不一致性。通过传播,您可以将数据从服务器推送到客户端,这对于本地访问方案非常有用。

如果复制和传播不是当前路由,您还可以跨微服务复制数据。这与每个微服务的域模型边界密切配合。在处理域模型边界时,您需要关注业务功能的范围,并在服务之间创建可理解且有意义的分离。如果实现有意义的分离,这也将有助于提高数据和迭代的可伸缩性和域驱动选择。

6.
How Much of the Internet Is Fake? Turns Out, a Lot of It, Actually.
http://nymag.com/intelligencer/2018/12/how-much-of-the-internet-is-fake.html
长文,作者论述了现实中存在的 Fake,听起来一种Fake致死的感觉,在这个当今离开手机离开互联网寸步难行的时代。
但作者是在耸人听闻吗:

Where does that leave us? I’m not sure the solution is to seek out some pre-Inversion authenticity — to red-pill ourselves back to “reality.” What’s gone from the internet, after all, isn’t “truth,” but trust: the sense that the people and things we encounter are what they represent themselves to be. Years of metrics-driven growth, lucrative manipulative systems, and unregulated platform marketplaces, have created an environment where it makes more sense to be fake online — to be disingenuous and cynical, to lie and cheat, to misrepresent and distort — than it does to be real. Fixing that would require cultural and political reform in Silicon Valley and around the world, but it’s our only choice. Otherwise we’ll all end up on the bot internet of fake people, fake clicks, fake sites, and fake computers, where the only real thing is the ads.

7.
中美贸易摩擦加关税商品
http://blog.fens.me/china-trade-merchandise/

8.
2018年JAVA回顾
JVM Calendar: Java in 2018
https://dzone.com/articles/java-advent-java-in-2018

9.
下面的主要来自ruanyf本期(和其它)的分享,偷个懒,直接引用部分,有兴趣请移步原文:
http://www.ruanyifeng.com/blog/2018/12/weekly-issue-37.html

https://github.com/sdmg15/Best-websites-a-programmer-should-visit
该仓库收集对程序员有用的网址,包含问题查找、技术新闻、技术博客、开源社区、英文提升、新奇的玩意儿、视频教程、在线工具等数十个方向的内容。(@qiurenbo 投稿)

https://tus.io/
文件上传到一半突然断了,往往只能重新上传。tus 是一个允许断点上传的轻量级协议,可以从中断的地方继续上传。官方提供开源的客户端和服务端实现。

https://github.com/jabcode/jabcode
JAB 码是彩色二维码方案,可以比黑白二维码写入多得多的信息。

Linux 内核揭密(中文)
https://xinqiu.gitbooks.io/linux-insides-cn/content/index.html
本书是《Linux inside》一书的中译,介绍 Linux 内核知识,从计算机通电讲起,需要 C 语言和汇编语言的知识。(@imilano 投稿)
https://github.com/0xAX/linux-insides

http://incompleteideas.net/book/the-book.html
《Reinforcement Learning: An Introduction》,2018年出版的新书,作者开源了。

https://swtch.com/~rsc/regexp/regexp4.html
谷歌代码搜索的作者,介绍搜索的算法原理。

https://www.vulture.com/2018/10/the-making-of-rockstar-games-red-dead-redemption-2.html
这篇长篇报道介绍 RockStar 游戏公司和它开发的游戏《Red Dead Redemption 2》。