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

最后修改: 2016年 12月 8日

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

1. Spring and Java

1.Spring和Java

>> Feeding Spring Boot metrics to Elasticsearch [frankel.ch]

After low level system data, the next family of metrics you want to start tracking and monitoring are JVM level metrics. Here’s a good way to go it with the ELK stack.

在低级别的系统数据之后,你想开始跟踪和监控的下一个指标系列是JVM级别的指标。这里有一个使用ELK栈的好方法。

>> Reflection vs Encapsulation – Stand Off in the Java Module System [sitepoint.com]

A quick and practical intro to the various mechanism that are going to power the module system in Java 9.

快速而实用地介绍了将为Java 9中的模块系统提供动力的各种机制。

>> Creating Maps With Named Lambdas [minborgsjavapot.com]

Interesting way to create a Map.

创建地图的有趣方法。。

>> Spring Boot and Thymeleaf: Reload templates and static resources without restarting the application [codeleak.pl]

Years back, we always had to restart the server/redeploy the app for minor changes. Of course that’s no longer the case now – which has a significant impact on our speed of rolling work out.

几年前,我们总是不得不重新启动服务器/重新部署应用来进行小的改动。当然,现在已经不是这样了–这对我们推出工作的速度有很大影响。

If you’re working with Thymeleaf in a Boot app – here are a couple of ways to do exactly that – changes with no restarts.

如果你在Boot应用程序中使用Thymeleaf–这里有几种方法可以做到这一点–改变而不重启

>> Hibernate Envers – Getting started [thoughts-on-java.org]

There are a few different ways to slice implementing audit logic with Hibernate – and Envers is definitely an interesting solution to the problem.

有几种不同的方式来切分实现审计逻辑与Hibernate–而Envers无疑是一个有趣的问题解决方案。

>> Making Spring Boot application run serverless with AWS [pragmaticintegrator.wordpress.com]

Very interesting writeup showing how to transition a Boot application to run servlerless on AWS. I definitely need to give that a try to get a better understanding of what it can do.

非常有趣的写法,展示了如何将一个Boot应用程序过渡到在AWS上运行servlerless。我肯定要试一试,以便更好地了解它能做什么。

Also worth reading:

Webinars and presentations:

网络研讨会和演讲:

Time to upgrade:

升级的时间:

2. Technical

2.技术

>> Time in distributed systems [plumbr.eu]

As I started to split my own implementations and very carefully joined the microservices bandwagon (or train) – I very quickly found that I need to relax my definition of time for each service.

当我开始拆分自己的实现,并非常谨慎地加入了微服务的行列(或火车)–我很快发现,我需要放松我对每个服务的时间定义

That is if I wanted to be able to trace a single request through the system and still make sense of it.

也就是说,如果我希望能够通过系统追踪一个单一的请求,并且仍然能够理解它。

This is a quick writeup all about that.

这是一篇关于这一点的快速报道。

>> Data Science up and down the Ladder of Abstraction [infoq.com]

A long piece worth reading if you’re passionate about data science, Clojure – or both.

如果你对数据科学、Clojure–或两者都感兴趣的话,这篇长文值得一读。

>> Sharing Experiences from a Microservices Journey [infoq.com]

I’ve been doing a lot of CQRS, Event Sourcing and microservices in the past couple of years, so naturally this article was quite an interesting read – well worthy if you’re doing any of these.

在过去的几年里,我做了很多CQRS、事件源和微服务的工作,所以这篇文章自然是相当有趣的读物–如果你正在做这些工作,那是值得的。

>> How Chrome’s buggy content security policy implementation cost me money [troyhunt.com]

Beyond the “money” thing, there’s a lot to glean from this piece about Content Security Policies and the way browsers chose to implement CSPs.

除了 “钱 “的问题,从这篇关于内容安全策略和浏览器选择实施CSP的方式的文章中,我们可以得到很多信息。

Worth understanding if you’re building stuff for the web.

如果你正在为网络构建东西,就值得理解。

Also worth reading:

3. Musings

3.思索

>> One year as a Developer Advocate [vladmihalcea.com]

Hibernate should have obviously done this a long time ago 🙂

Hibernate显然早就应该这样做了 🙂

>> Reactive Streams and the Weird Case of Back Pressure [takipi.com]

If you’re working with and ingesting a large volume of data, back-pressured async stream processing is a godsend.

如果你正在处理和摄取大量的数据,背压式异步流处理是一个天赐良机。

This is a good intro to how the standard came to be – and a very interesting read.

这是关于标准如何形成的一个很好的介绍–而且是非常有趣的阅读。

>> The Journeyman Idealist: Architect of Programmer Paycuts [daedtech.com]

This writeup is definitely good for some perspective on the way we all work and creating value. Some solid podcasts recommended in here as well 🙂

这篇文章对我们所有人的工作方式和创造价值的看法绝对是好的观点。这里也推荐了一些可靠的播客 🙂

>> Rewrite or Refactor? [daedtech.com]

To be or not to be? That was THE question for a long time, but no longer 🙂

To be or not to be?这是很长一段时间内的问题,但不再是🙂。

Now, it’s to refactor or rewrite – mainly because that decision has the potential to literally put a business under.

现在,是重构或重写–主要是因为这一决定有可能使一个企业陷入困境。

>> Clean Code: what is it? [silkandspinach.net]

I always find that, no matter how much I think I understand a concept, I don’t fully grok it until I have to sit down and actually define it. It always turns out to be more difficult than I expect it to be.

我总是发现,无论我认为自己多么了解一个概念,我都不会完全摸透它,直到我不得不坐下来实际定义它。结果总是比我预期的更难。

Also worth reading:

还值得一读的是:

4. Comics

4.漫画

And my favorite Dilberts of the week:

还有本周我最喜欢的Dilberts。

>> The Ugly Truth [dilbert.com]

>> You don’t know how low my ambitions are [dilbert.com]

>> Are we polite now? [dilbert.com]

5. Pick of the Week

5 本周精选

>> Worrying is self-fulfilling; what to do instead [blog.asmartbear.com]