Get ahead
VMware offers training and certification to turbo-charge your progress.
Learn moreOn behalf of the team, I am pleased to announce that the first release candidate for Spring Cloud Stream is out. As the last milestone before 1.0.0.RELEASE, it stabilizes the APIs, and comes with a number of new features and bug fixes, in the area of tooling support, and content type management. Here is a highlight of the most important changes:
The configuration for binders and bindings has changed to a model friendlier to Spring Boot configuration metadata. Now all the configuration properties (including binding-specific properties) support validation and completion (in Spring Tool Suite).
Configuration properties for generic binding settings, as well as binder-specific settings, have changed, please consult the documentation for details.
NOTE: The short form for destinations, e.g. spring.cloud.stream.bindings.input=someDestination
, is not supported anymore. The standard form, i.e. spring.cloud.stream.bindings.input.destination=someDestination
must be used instead.
In addition to Spring Integration support, which is a first class citizen in Spring Cloud Stream, 1.0.0.RC1 introduces a new @StreamListener
annotation for message dispatching to methods, based on the Spring Messaging infrastructure for argument and content type handling (more details here). This allows for more seamless handling for messages with known content types (e.g. marhalled JSON with a content type header) and better interoperability with other Spring Cloud Stream applications, and for certain types of middleware, like Rabbit MQ, or even applications that are not based on Spring Cloud Stream.
For example, an application that receives String
payloads with an application/json
content type header, can do the transformation to the Vote POJO directly.
@EnableBinding(Sink.class)
public class VoteHandler {
@Autowired
VotingService votingService;
@StreamListener(Sink.INPUT)
public void handle(Vote vote) {
votingService.record(vote);
}
}
Additionally the release features a number of bug fixes in the area of content type management, as well as improved documentation. The entire list of changes is available in Git Hub.
We are looking forward to a 1.0.0.RELEASE at the beginning of April.
And, as always, we welcome feedback: either in GitHub, on Stack Overflow, or on Twitter.
If you happen to be in Barcelona mid-May, don’t miss the chance to join the Spring I/O conference where I’ll be presenting Spring Cloud Stream. Also, the registration for SpringOne Platform (early August, Las Vegas) has opened recently, in case you want to benefit from early bird ticket pricing. The latter is also still open for talk proposals (but only until March 24, so hurry up!). So if you’re interested to give a talk about Spring or Pivotal-related technologies, feel free to submit!