Java Web Weekly, Issue 148 – Java网络周刊》第148期

最后修改: 2016年 10月 27日

中文/混合/英文(键盘快捷键:t)

1. Spring and Java

1.Spring和Java

>> HTTP headers forwarding in microservices [frankel.ch]

>> Tracing Spring Integration Flow with Spring Cloud Sleuth [java-allandsundry.com]

Doing a proper microservice implementation is tough – no two ways about it. There are certainly new challenges but also a new class of tools meant to help with these challenges.

做一个适当的微服务实现是很困难的–这没有什么两样。当然有新的挑战,但也有一类新的工具,旨在帮助应对这些挑战

Here are two interesting writeups about one of these tools – Spring Cloud Sleuth – and about tracing an HTTP request across multiple services.

这里有两篇关于这些工具之一的有趣文章–Spring Cloud Sleuth–以及关于跨多个服务追踪HTTP请求。

>> JUnit 5 State Of The Union [sitepoint.com]

A good high level look at JUnit 5 right now, a year and a couple of months into development.

一个很好的高水平的现在看JUnit 5,开发了一年零几个月。

>> 6 Hibernate features that I’m missing in JPA [thoughts-on-java.org]

Hibernate has been on a roll lately, and JPA is lagging behind even more so than usual. Here’s a list of solid features that should hopefully make it into the next version of JPA.

Hibernate最近大放异彩,而JPA则比以往更加落后。以下是一份可靠的功能列表,希望能将其纳入下一版本的JPA

>> The best way to implement equals, hashCode, and toString with JPA and Hibernate [vladmihalcea.com]

An interesting discussing focused on the fundamental.

一个有趣的讨论集中在根本上。

Also worth reading:

还值得一读的是:

Webinars and presentations:

网络研讨会和演讲:

Time to upgrade:

升级的时间:

2. Technical

2.技术

>> Message Processing Styles [tbray.org]

A quick look at processing JSON data in real-world systems, where things aren’t as neat and tidy as we’d like them to be, and pretty much anything could come over the wire.

快速浏览一下在真实世界的系统中处理JSON数据,那里的事情并不像我们希望的那样整齐划一,而且几乎所有的东西都可以通过电线来实现。

>> A service framework for operation-based CRDTs [krasserm.github.io]

If you’re way into Event Sourcing and CQRS, than this will make a good read, for both practical takeaways but also for cross-pollination of architectural ideas.

如果你正在研究事件采购和CQRS,那么这将是一本好书,不仅有实用的收获,而且还有架构理念的交叉交流。

Also worth reading:

还值得一读的是:

3. Musings

3.思索

>> Short DNS Record TTL And Centralization Are Serious Risks For The Internet [techblog.bozho.net]

No doubt you heard and probably experienced the massive DDOS attack a few days ago.

毫无疑问,你听说并可能经历了几天前的大规模DDOS攻击

There are several reports and analysis worth reading online of course, here’s one that actually goes beyond just “what happened”.

当然,网上有几份报告和分析值得一读,这里有一份报告实际上超越了 “发生了什么”

>> 4 Ways Custom Code Metrics Make a Difference [daedtech.com]

If you’re using static analysis, semi-custom, tunable rules simply need to be used and evolved. Without these, the defaults likely won’t fit the specifics of your codebase and your needs – which generally leads to either lots of false positives, or turning off useful rules entirely.

如果你正在使用静态分析,半定制的、可调整的规则只需要被使用和发展。如果没有这些规则,默认值很可能不适合你的代码库和你的需求的具体情况–这通常会导致大量的误报,或者完全关闭有用的规则。

As a quick take-away, definitely tweak and keep tweaking your static analysis rules, so that they actually make sense for your codebase.

作为一个快速的收获,肯定要调整并继续调整你的静态分析规则,以便它们对你的代码库真正有意义。

Also worth reading:

还值得一读的是:

4. Comics

4.漫画

And my favorite Dilberts of the week:

还有本周我最喜欢的Dilberts。

>> Stop being engineers! [dilbert.com]

>> Try eating cake [dilbert.com]

>> Taking more responsibility [dilbert.com]

5. Pick of the Week

5 本周精选

>> Just shut up and let your devs concentrate [geekwire.com]