This Week in Spring - November 14th, 2023

Engineering | Josh Long | November 14, 2023 | ...

Hi, Spring fans! Welcome to another installment of This Week in Spring! It's November 14th, and you know what that means? NINE MORE DAYS until Spring Boot 3.2 drops (on the day of the US holiday of Thanksgiving, no less)!

Some key features include:

  • virtual threads
  • initial CRaC support
  • more sophisticated observability with Micrometerio
  • JdbcClient, RestClient
  • ActiveMQ Testcontainers/ Docker Compose support
  • Kotlin 1.9.0

I can't wait for the next release. I've been playing with it for months. It builds on the strenghts of Spring Boot 3.0 and 3.1. 3.0 brought GraalVM native images, and 3.…

This Week in Spring - November 7th, 2023

Engineering | Josh Long | November 07, 2023 | ...

Hi, Spring fans!

Can you believe we've already turned the calendar page to November? Time sure is a swift developer, deploying months as if they were minor versions in an ever-evolving application. As we adjust our clocks to fall back, waving a reluctant goodbye to daylight savings time, the encroaching evening arrives with a brisk efficiency. Yes, it's dark outside, a bit too early for my liking, if I'm honest. The shortened days remind us that while we may not be in control of the celestial clock, we do have the power to harness the hours we're given. This is the perfect time to settle in…

SSL hot reload in Spring Boot 3.2.0

Engineering | Moritz Halbritter | November 07, 2023 | ...

In Spring Boot 3.2.0, we're adding the ability for embedded web servers to hot-reload SSL certificates and keys. That means you can rotate your SSL trust material without restarting your application. Hot reloading is supported for Tomcat and Netty embedded web servers.

Let's see that in action!

First, we're going to create our SSL private key and matching certificate using OpenSSL:

mkdir certs
cd certs
openssl req -x509 -subj "/CN=demo-cert-1" -keyout demo.key -out demo.crt -sha256 -days 365 -nodes -newkey rsa 

This creates a private key stored in certs/demo.key and a matching (self-signed) certificate with the common name "demo-cert-1" in certs/demo.crt

What new is coming in reactor-core 3.6.0?

Engineering | Oleh Dokuka | October 31, 2023 | ...

Reactor 3.6.0 is coming and going to be GA on November 14. This blogpost describes new features that are included in this upcoming release!

Virtual Threads support

Today, everyone talks about Java 21 and Project Loom. The Project Reactor team hears that and sees value in that project within our ecosystem. With this upcoming release, we introduce support for the VirtualThread implementation.

Why is it handy?

Let's consider the following code sample:

package io.projectreactor.samples;

import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.stream.Stream;

import reactor.core…

This Week in Spring - October 31st, 2023

Engineering | Josh Long | October 31, 2023 | ...

Hi Spring fans, and Happy Halloween from the Spring team to those who celebrate!

I hope your evening is fun and your day free of scary bugs!

My friends, we've got some interesting stuff to look at this week so let's dive right into it.

A Use Case for Transactions: Outbox Pattern Strategies in Spring Cloud Stream Kafka Binder

Engineering | Soby Chacko | October 24, 2023 | ...

Other parts in this blog series

Part 1: Introduction to Transactions in Spring Cloud Stream Kafka Applications

Part 2: Producer Initiated Transactions in Spring Cloud Stream Kafka Applications

Part 3: Synchronizing with External Transaction Managers in Spring Cloud Stream Kafka Applications

Part 4: Transactional Rollback Strategies with Spring Cloud Stream and Apache Kafka

Part 5: Apache Kafka’s Exactly-Once Semantics in Spring Cloud Stream Kafka Applications

In this last part of this blog series, we dive into a relatively new design pattern first proposed by Chris Richardson but seeing it from the perspective of Spring Cloud Stream. We will see what the outbox pattern is, how it works, and a few strategies to adapt when using Spring Cloud Stream and Apache Kafka. See the descriptions here

Get the Spring newsletter

Thank you for your interest. Someone will get back to you shortly.

Get ahead

VMware offers training and certification to turbo-charge your progress.

Learn more

Get support

Tanzu Spring Runtime offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.

Learn more

Upcoming events

Check out all the upcoming events in the Spring community.

View all