The Spring Blog

Engineering
Releases
News and Events

Spring for Apache Kafka 2.2 Released

I am pleased to announce that Spring for Apache Kafka 2.2.0.RELEASE is now available.

While the 2.1.x release is compatible with the 2.0.0 kafka-clients jar, (since 2.1.9), this version requires 2.0.0 (and provides a 2.0.0 embedded broker for testing).

Highlights

  • The SeekToCurrentErrorHandler can now "skip" records that fail repeatedly

  • Such "skipped" records can be published to a dead-letter topic (or otherwise disposed of by application code)

    • Headers are added with diagnostics about the failure

  • When using transactions, the same functionality can be achieved with the default AfterRollbackProcessor

  • You can now use the listener container factory to create any arbitrary listener container, not just containers for @KafkaListener s

    • This allows more convenient use of Spring Boot’s auto configuration properties for any container

  • @KafkaListener annotations can now override the container factory’s concurrency and autoStartup properties

  • The new ErrorhandlingDeserializer can catch deserialization exceptions which are then routed to the ErrorHandler

  • The embedded kafka broker can now be used with JUnit 5 tests

For more information see the What’s New chapter in the documentation and the change log.

In addition, Spring Integration for Apache Kafka (spring-integration-kafka) 3.1.0.RELEASE is available; it is based on Spring for Apache Kafka 2.2 and Spring Integration 5.1.

Read more...

Spring Data Lovelace SR2 released

On behalf of the Spring Data team, I’d like to announce the availability of the Lovelace SR2 maintenance release. This release builds on the just-released Spring Framework 5.1.2 service release. Lovelace SR2 is the version that you will get with Spring Boot 2.1 GA that is scheduled for the next few days. If you use Spring Boot 2.0.x and want to consume this service release, you can set the version property (spring-data-releasetrain.version) to Lovelace-SR2.

This service releases ships with 32 tickets fixed.

Read more...

Announcing Spring Cloud Function - 2.0.0.RC1

We are pleased to announce the first Release Candidate of the Spring Cloud Function - 2.0.0.RC1.

Individual modules of Spring Cloud Function 2.0.0.RC1 are available for use in the Spring Milestone repository.

Aside form general enhancements and bug fixes, This release encompasses the following:

Read more...

Spring Session for Apache Geode/Pivotal GemFire 2.0.6.RELEASE and 2.1.0.RELEASE Available!

Good things come in pairs, so I am happy to announce the availability of Spring Session for Apache Geode & Pivotal GemFire (SSDG) 2.0.6.RELEASE and 2.1.0.RELEASE.

SSDG 2.0.6.RELEASE, based on Spring Framework 5.0.10.RELEASE, Spring Data Kay-SR11 and Spring Session core 2.0.7.RELEASE mainly contains dependency updates.

SSDG 2.1.0.RELEASE, on the other hand, has been upgraded to Spring Framework 5.1.1.RELEASE, Spring Data Lovelace-SR1 and Spring Session core 2.1.0.RELEASE, and additionally includes support for custom Session expiration policies and rules.

Read more...

Spring Cloud Data Flow 1.7 GA Released

The Spring Cloud Data Flow team is pleased to announce the release of 1.7.0. Follow the Getting Started guides for Local Server, Cloud Foundry, and Kubernetes. Look for an updated Cloud Foundry Tile for SCDF release in the coming weeks.

Here are the highlights

  • Improved UI

  • Stream Application DSL

  • Audit trail

  • Concurrent Task Launch Limiting

  • Stream and Task validation

  • Force upgrade for Streams

  • Task Scheduling on Kubernetes

Improved UI

The UI has a completely new look. The navigation has moved from tabs to a left side navigation system. This gives increased screen real estate for creating streams with the Flo designer and even more screen real estate can be obtained by minimizing the left side navigation. There is a quick search feature that searches across all the different Data Flow categories. Additional colors and overall theme changes have been added to make the UI look more lively. Deeper in the core, the route management has been improved and we have increased our end to end testing coverage using BrowserStack/SauceLabs. The property whitelisting functionality has been refined to not display all application properties by default if the whitelist is empty. Check out the video for a UI walkthough.

Read more...

Spring Cloud Finchley.SR2 Is Available

On behalf of the community, I am pleased to announce that SR2 (Service Release) of the Spring Cloud Finchley Release Train is available today. The release can be found in Maven Central. You can check out the Finchley release notes for more information.

Spring Cloud Gateway

  • Support WebFlux error handling in Hystrix timeouts #553
  • Read multiple certificates in PEM file #583
  • Support for configuring TLS timeouts #578
  • ModifyRequestBodyGatewayFilterFactory updates headers appropriately #492
  • Support relative redirects in redirect filter #468
  • Bug Fixes
Read more...

This Week in Spring, October 23rd, 2018 - Oracle CodeOne Edition

Hi Spring fans! Welcome to another installment of This Week in Spring! This week I’ve just flown back from Canada and Russia where I was at the amazing Joker conference in St. Petersburg. I’m now in San Francisco (where I live!) for a couple of days to soak up the amazing atmosphere around Oracle CodeOne, reunited with the Java community and longtime friends. I’m so excited about the presentation that fellow Java Champion Trisha Gee and I are doing tomorrow at 11:30 am that introduces an end-to-end reactive and Spring-based application from JavaFX client to service. Do not miss this!

Read more...

Functional Bean Registrations in Spring Cloud Function

Spring Cloud Function has a couple of new features in 2.0 (still in milestone phase), and possibly the most dramatic is the ability to go "fully functional". This is made possible by changes in Spring Boot 2.1 together with Spring Framework 5.1, and it means a different way of thinking about bean definitions in Spring applications, but also significant improvements in startup performance.

AWS Cost Savings

It’s always good to start with a picture, especially if it tells a story. Here’s a graph that shows the improvement in Spring Cloud Function 2.0 over 1.0, comparing the cost of cold starts in AWS:

Memory Cost

The x-axis is memory in MB, and the y-axis is cost of a cold start in GBsec. The most dramatic effect is for low memory containers, where the cost is almost 4 times lower. The origin of the improvement is in dramatically shorter startup times, which in turn come from using the functional form of bean definitions in the application. Josh made a video about functional bean registration a while ago if you need an introduction (it’s on YouTube). Now let’s have a closer look at how it works in Spring Cloud Function.

Read more...

Spring Cloud Data Flow 1.7 RC1 released

The Spring Cloud Data Flow team is pleased to announce the release of 1.7 RC1. Follow the Getting Started guides for Local Server, Cloud Foundry, and Kubernetes.

The RC1 release builds on the core features introduced in 1.7 M1 with a few refinements.

Here are the highlights

Read more...