Producer Initiated Transactions in Spring Cloud Stream Kafka Applications

Engineering | Soby Chacko | September 28, 2023 | ...

Other parts in this blog series

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

This article is part 2 of the blog series in which we look at transactions in detail with Spring Cloud Stream and Apache Kafka. We saw a general introduction to transactions in the previous part, touching on the fundamental ideas. In this part of the blog series, we get to the metal by seeing a few implementation details and their practical aspects.

In this article, we largely stay on the producer's side to understand how transactions work with Spring Cloud Stream and Apache Kafka.

Introduction to Transactions in Spring Cloud Stream Kafka Applications

Engineering | Soby Chacko | September 27, 2023 | ...

We are starting a new blog series that focuses on working with transactions in Spring Cloud Stream Kafka applications. This blog series covers many low-level details of writing transactional applications with Spring Cloud Stream and Apache Kafka. By the end of this blog series, we hope to give you enough information about writing transactional Spring Cloud Stream Kafka applications for various business use cases.

Basic Building Blocks

The foundational support for transactions in Spring Cloud Stream Kafka applications primarily comes from Apache Kafka itself and the Spring for Apache Kafka…

This Week in Spring - September 26th, 2023

Engineering | Josh Long | September 26, 2023 | ...

Hi, Spring fans! Welcome to another installment of This Week in Spring! How are you? It's September 26th, 2023, and I am in sunny Singapore for SpringOne at VMWare Explore Singapore. If you're around, don't forget to say hi!

It's gonna be a fun and busy week in Singapore, and then next week I'm off to Antwerp, Belgium, for the amazing Devoxx BE 2023. Then, I'm off to Morocco, for Devoxx MA 2023. Then, I'm off to Amsterdam for SpringOne Tour Amsterdam. If you're in any of these places, do not hesitate to reach out and say hi! I'd love to chat! And with that, we've got a ton of things to cover…

Paketo Buildpacks Bionic End Of Support

Engineering | Scott Frederick | September 22, 2023 | ...

The Spring Boot plugins for Maven and Gradle provide the ability to build Docker images using Cloud Native Buildpacks. By default, Spring Boot uses the CNB builders provided by the Paketo Buildpacks project.

What's Changed

The Paketo Buildpacks project has announced that Ubuntu 18.04 Bionic-based builders are no longer supported, in favor of Ubuntu 22.04 Jammy-based builders. See the Paketo announcement for more details on the builders that are affected by this change.

The Maven and Gradle plugins for Spring Boot versions 3.1 and earlier use the Bionic Base Builder by default when building…

Simplified Event Externalization with Spring Modulith

Engineering | Oliver Drotbohm | September 22, 2023 | ...

Transactional service methods are a common pattern in Spring applications. These methods trigger a state transition important to the business. This usually involves a core domain abstraction, such as an aggregate and its corresponding repository. A stereotypical example of such an arrangement might look like this:

@Service
@RequiredArgsConstructor
class OrderManagement {

  private final OrderRepository orders;

  @Transactional
  Order complete(Order order) {
     return orders.save(order.complete());
  }
}

As state transitions like these might be interesting to third parties, we might want…

Hello, Java 21

Engineering | Josh Long | September 20, 2023 | ...

Hi, Spring fans!

Get the bits

Before we get started, do something for me quickly. If you haven’t already, go install SKDMAN.

Then run:

sdk install java 21-graalce && sdk default java 21-graalce

There you have it. You now have Java 21 and graalvm supporting Java 21 on your machine, ready to go. Java 21 is, in my estimation, the most critical release of Java, perhaps ever, in that it implies a whole new world of opportunities for people using Java. It brings a slew of nice APIs and additions, like pattern matching, culminating years of features slowly and steadily adding to the platform. But…

This Week in Spring - September 19th, 2023 (Java 21 Edition)

Engineering | Josh Long | September 19, 2023 | ...

Hi, Spring fans! Welcome to another installment of This Week in Spring - Java 21 edition!

The big news, indeed, the biggest news, is that Java 21 is now available here! You should use SDKMAN to install it, like this: sdk install java 21-graalce && sdk default java 21-graalce. This install givews you both the new Java 21 OpenJDK distribution and the new GraalVM native image support for Java 21. It works just fine with existing versions of Spring Boot, but the real payoff will be with Spring Boot 3.2, where you'll be able to plug in virtual threads with nary but a flick of a property: spring.threads.virtual.enabled=true. Spring Boot 3.…

Spring Tips: Making the joyful jump to Java 21

Engineering | Josh Long | September 19, 2023 | ...

Hi, Spring fans! Java 21 and GraalVM supporting Java 21 are at long last here! It's been a long time in coming, but Java 21 - which comes out later today on the 19th of September, 2023 - brings with it some of the most exciting new features of any Java release. In this video, I (https://www.youtube.com/@coffeesoftware) will look at some of the foundational features from Java 17 and see how they culminate in Java 21. I'll look at the biggest features - virtual threads and pattern matching. I'll also look at some of the quality-of-life features that you might not otherwise notice, but that are…

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