This Week in Spring - February 9th, 2016

Welcome to another installation of This Week in Spring! This week I’m in beautiful Stockholm, Sweden at the amazing JFokus conference. It’s also Shrove Tuesday here in Sweden and the custom is to over-indulge, so as I type this I am eating a Semla. I hope you too enjoy over-indulging on this week’s epic roundup!

Read more...

SpringOne2GX 2015 replay: IoT Realized - The Connected Car v2

Recorded at SpringOne2GX
Presenters: Phil Berman, Michael Minella & Derrick Shields
Big Data Track
Slides: http://www.slideshare.net/SpringCentral/iot-realized-the-connected-car-53122510

For this session we will explore the power of Spring XD in the context of the Internet of Things (IoT). We will look at a solution developed with Spring XD to stream real time analytics from a moving car using open standards. Ingestion of the real time data (location, speed, engine diagnostics, etc) into HDFS, analyzing it to provide highly accurate MPG and vehicle range prediction, as well as providing real time dashboards will all be covered. Coming out of this session, you’ll understand how Spring XD can serve as “Legos®” for the IoT. We’ve made some very cool updates to the app (multi-car support, uses Hadoop and Spark, and more). We also are hoping to be running our app on Cloud Foundry by the conference!

Read more...

SpringOne2GX 2015 replay: Spring Data REST - Data Meets Hypermedia + Security

Recorded at SpringOne2GX 2015
Presenters: Greg Turnquist & Roy Clarkson
Data / Integration Track
Slides: http://www.slideshare.net/SpringCentral/spring-data-rest-data-meets-hypermedia-security

Check out Spring Data REST, a library than can rapidly bridge your data access layer to a RESTful interface using hypermedia. See how you can build the backend for your startup rapidly using top notch practices. We will then look at Spring-A-Gram, a sample application built with Spring Data REST and secured by Spring Security. Snap pictures from your laptop or smartphone and upload them to the server with little effort.

Read more...

SpringOne2GX 2015 replay: HTTP/2 for the Web developer

Recorded at SpringOne2GX 2015
Presenter: Brian Clozel
Web / Javascript Track
Slides: http://www.slideshare.net/SpringCentral/http2-for-the-web-developer

The HTTP/2 spec is here - clients are servers are racing to implement it, while browser support is increasing everyday… The JVM world is already working on it in the Servlet 4.0 and JDK9 specs. But we developers, are still trying to understand the implications of it.

Should we reconsider the way we build JavaScript applications and optimize them for front-end performance? Will our server application have new roles and abilities?

Read more...

Reactive Spring

At SpringOne2GX 2015, Juergen announced plans for Spring Framework 5 with a major focus on reactive architectures. Concrete efforts are already underway and a lot has happened since!

At the most basic level, reactive programming models allow for writing non-blocking services and applications. This requires a fundamental shift from writing imperative logic to async, non-blocking, functional-style code, in particular when interacting with external resources.

Reactive Web Applications

Most Java web applications are built on the Servlet API which was originally created with synchronous and blocking semantics. Over the years, support for asynchronous requests (Servlet 3.0) and non-blocking I/O (Servlet 3.1) was added. In Spring MVC, we’ve found that it is feasible to add selective async HTTP request handling to existing applications. However, we’ve also found that it is very hard to introduce non-blocking I/O within an existing ecosystem of web frameworks and applications. Doing so requires very deep change all the way to the core contracts which need to switch from blocking to async semantics.

Read more...