18 lines
8.5 KiB
HTML
18 lines
8.5 KiB
HTML
<html><head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
<title>3. What’s New in 2.1?</title><link rel="stylesheet" type="text/css" href="css/manual-multipage.css"><meta name="generator" content="DocBook XSL Stylesheets V1.79.1"><link rel="home" href="multi_spring-cloud-stream.html" title="Spring Cloud Stream Reference Guide"><link rel="up" href="multi__preface.html" title="Part I. Preface"><link rel="prev" href="multi__quick_start.html" title="2. Quick Start"><link rel="next" href="multi__notes_on_migrating_from_1_x_to_2_x.html" title="4. Notes on migrating from 1.x to 2.x?"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">3. What’s New in 2.1?</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="multi__quick_start.html">Prev</a> </td><th width="60%" align="center">Part I. Preface</th><td width="20%" align="right"> <a accesskey="n" href="multi__notes_on_migrating_from_1_x_to_2_x.html">Next</a></td></tr></table><hr></div><div class="chapter"><div class="titlepage"><div><div><h2 class="title"><a name="_whats_new_in_2_1" href="#_whats_new_in_2_1"></a>3. What’s New in 2.1?</h2></div></div></div><p>Spring Cloud Stream introduces a number of new features, enhancements, and changes in addition to the once already introduced in
|
|
<a class="link" href="https://docs.spring.io/spring-cloud-stream/docs/Elmhurst.SR2/reference/htmlsingle/#_what_s_new_in_2_0" target="_top">version 2.0</a></p><p>The following sections outline the most notable ones:</p><div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"><a class="xref" href="multi__whats_new_in_2_1.html#spring-cloud-stream-preface-new-features" title="3.1 New Features and Components">Section 3.1, “New Features and Components”</a></li><li class="listitem"><a class="xref" href="multi__whats_new_in_2_1.html#spring-cloud-stream-preface-notable-enhancements" title="3.2 Notable Enhancements">Section 3.2, “Notable Enhancements”</a></li></ul></div><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="spring-cloud-stream-preface-new-features" href="#spring-cloud-stream-preface-new-features"></a>3.1 New Features and Components</h2></div></div></div><div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"><span class="strong"><strong>Spring Cloud Function</strong></span>: One of the core themes of the 2.1.x release is the introduction of programming model based on <a class="link" href="https://cloud.spring.io/spring-cloud-function/" target="_top">Spring Cloud Function</a> project.
|
|
For more details you can jump right into the <a class="link" href="">relevant section</a>.
|
|
You can also read <a class="link" href="https://spring.io/blog/2018/10/30/spring-cloud-stream-fishtown-rc1-2-1-0-rc1-release-announcement" target="_top">this blog post</a> for more details.</li><li class="listitem"><span class="strong"><strong>Simplified Test Binder</strong></span>: In addition to an already existing testing support via <code class="literal">spring-cloud-stream-test-support</code>, this release also introduces a simpler implementation of a test binder that is
|
|
more aligned with the current binder API providing for a better integration testing as it is touches on all aspects of binding API.
|
|
This binder was primarily designed for internal use, but found its usages outside. For more information on how to use it and how it can help you please refer to <a class="link" href="multi__testing.html#spring_integration_test_binder" title="13.2 Spring Integration Test Binder">this section</a> of user guide.</li></ul></div></div><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="spring-cloud-stream-preface-notable-enhancements" href="#spring-cloud-stream-preface-notable-enhancements"></a>3.2 Notable Enhancements</h2></div></div></div><div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"><span class="strong"><strong>Improved Reactive Support</strong></span>: Given that <a class="link" href="https://projectreactor.io/" target="_top">Project Reactor</a> primitives such as <code class="literal">Flux</code> and <code class="literal">Mono</code> are at the core
|
|
of <a class="link" href="https://cloud.spring.io/spring-cloud-function/" target="_top">Spring Cloud Function</a> project, you no longer
|
|
have to use or draw any distinction between <span class="emphasis"><em>reactive</em></span> and <span class="emphasis"><em>conventional</em></span> stream handler design,
|
|
hence you no longer need to explicitly rely on <code class="literal">spring-cloud-stream-reactive</code> module, which we’re now
|
|
considering for deprecation. For more details please refer to <a class="link" href="">Spring Cloud Function</a> section of this user guide.</li><li class="listitem"><p class="simpara"><span class="strong"><strong>Enhanced properties binding support</strong></span>: This version of Spring Cloud Stream introduces significant
|
|
enhancements to configuration properties bindings primarily to ensure consistency between the default and binding specific properties.
|
|
A particular emphasis was given to maintaining the <span class="emphasis"><em>precedence</em></span> and <span class="emphasis"><em>inheritance</em></span> aspects where:</p><div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: circle; "><li class="listitem"><span class="emphasis"><em>precedence</em></span> - binding specific properties always take precedence over the default properties, effectively allowing binding specific properties to override the default ones</li><li class="listitem"><span class="emphasis"><em>inheritance</em></span> - default will propagate to individual binding properties unless explicitly overriden by the binding specific properties</li></ul></div></li><li class="listitem"><span class="strong"><strong>Additional Content-Type Negotiation Improvements</strong></span>: One of the core themes for 2.0.x release was an improved content-type negotiation.
|
|
This release introduces few more significant enhancements to introduce more consistency. One such enhancement is
|
|
the delegation of type conversion to MessageConverters in <span class="emphasis"><em>all</em></span> cases, including the ones where the target type of the handler method is not known.
|
|
To you (the end user) it simply means that starting with this release extending content-type negotiation via <code class="literal">@StreamMessageConverter</code> is available for all type conversion cases.
|
|
NOTE: Keep in mind that most of the content-type work at the moment also preserves compatibility with 1.3.x version of Spring Cloud Stream, thus will be further simplified once 1.3.x line goes EOL.</li></ul></div></div><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="spring-cloud-stream-preface-notable-deprecations" href="#spring-cloud-stream-preface-notable-deprecations"></a>3.3 Notable Deprecations</h2></div></div></div><p>As of version 2.1, the following items have been deprecated:</p><div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem">Aggregator Builder support is deprecated in favor of application composition via <a class="link" href="">Spring Cloud Function</a> programming model.</li><li class="listitem">As mentioned earlier we’re also considering the deprecation of <code class="literal">spring-cloud-stream-reactive</code> module in favor of the adequate support already provided by <a class="link" href="">Spring Cloud Function</a>.</li></ul></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="multi__quick_start.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="multi__preface.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="multi__notes_on_migrating_from_1_x_to_2_x.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">2. Quick Start </td><td width="20%" align="center"><a accesskey="h" href="multi_spring-cloud-stream.html">Home</a></td><td width="40%" align="right" valign="top"> 4. Notes on migrating from 1.x to 2.x?</td></tr></table></div></body></html> |