This Week in Spring - August 30th, 2022

Engineering | Josh Long | August 30, 2022 | ...

Hi, Spring fans! How are you? How're you doin' this fine tuesday morning? I'm doing well, of course, because this week VMware's tentpole show - VMware Explore - is happening not even a mile from my home, here in San Francisco! And this is just the first one - there'll be another show, my favorite show, in December: SpringOne 2022! I sure hope you've registered and that we'll see you there!

Indeed, I've got a lunch to get to, so let's get this this week's wrapup done a little more quickly: without further ado....

Creating a custom Spring Cloud Gateway Filter

Engineering | Fredrich Ombico | August 26, 2022 | ...

In this article, we look into writing a custom extension for Spring Cloud Gateway. Before we get started, let’s go over how Spring Cloud Gateway works:

Spring Cloud Gateway diagram

  1. First, a client makes a network request to the Gateway
  2. The Gateway is defined with a number of routes, each with Predicates to match the request to the route. For example, you can match on the path segment of the URL or the HTTP method of the request.
  3. Once matched, the Gateway executes pre-request logic on each of the filters applied to the route. For example, you might want to add query parameters to your request
  4. A proxy filter routes the request to the proxied service
  5. The service executes and returns a response
  6. The gateway receives the response and executes post-request logic on each filter before returning the response. For example…

This Week in Spring - August 23rd, 2022

Engineering | Josh Long | August 23, 2022 | ...

Introducing Experimental Spring Support for Apache Pulsar

Engineering | Soby Chacko | August 16, 2022 | ...

We are happy to announce that we are incubating a new experimental Spring project for Apache Pulsar. This project aims to provide Spring-friendly APIs, building blocks, and programming models for writing Java applications that interact with Apache Pulsar.

Apache Pulsar is a popular messaging system with a growing ecosystem of developers in the enterprise messaging and streaming space. Here are some main features and advantages of using Apache Pulsar for messaging-based software applications:

  • Apache Pulsar provides both the traditional queuing semantics of RabbitMQ, ActiveMQ, and others and the log-based structure of Apache Kafka through various subscription models.
  • The broker in Apache Pulsar is stateless, and the storage is not part of the broker. Instead, it uses another Apache project called Bookkeeper to separate the storage layer from the broker. Because of this fundamental design, scaling up Apache Pulsar brokers is easy.
  • Apache Pulsar uses distributed logs, called ledgers, leveraged through Bookkeeper. These ledgers distribute across multiple nodes of Bookkeeper.

This Week in Spring - August 16th, 2022

Engineering | Josh Long | August 16, 2022 | ...

Hi, Spring fans! Welcome to another wonder-filled installment of This Week in Spring! It's been a week! Sometimes I can scarcely believe it myself. And can you believe it's August 16th already?? My daughter's starting school this week! We're in the northern hemisphere, and Summer break is already over and done with for her. There's still another month and some change of summer, officially, though. So, I hope you all are doing whatever you can to maximize your enjoyment of it before the darker and colder months arrive.

Twitter helps me pass the time. I've been working on some code and wanted to use Twitter's OAuth 2 and PKCE support in the application but couldn't quite make it work. So I pinged my pal (everybody's pal, really!) and Spring Security lead Rob Winch (@rob_winch) for some clues, and he did me one better: he put together a sample that demonstrates it all in action

Spring Web Flow 3.0 M1 Released

Engineering | Rossen Stoyanchev | August 10, 2022 | ...

It has been almost 4 years since the last set of Spring Web Flow releases. Nevertheless, the project continues to serve a specific need particularly well, arguably better than alternatives, and remains in active use. While there hasn't been a strong driver for new releases, the upcoming Spring Framework 6 brings a Java 17 baseline and makes the shift to Jakarta EE, which creates the need for such a release in order to enable applications to migrate to this new baseline.

Today I'm pleased to announce the availability of Spring Web Flow 3.0 M1 in the Spring milestone repository. This release focuses mainly on compatibility with Spring Framework 6 and Jakarta EE. The Travel booking-mvc sample on spring-projects/spring-webflow-samples has been updated and the commit history provides example changes…

This Week in Spring - August 9th, 2022

Engineering | Josh Long | August 09, 2022 | ...

Get the Spring newsletter

Thank you!

Get ahead

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

Learn more

Get support

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