Files
spring-cloud-static/spring-cloud-stream/2.1.2.RELEASE/multi/multi__whats_new_in_2_1.html
2019-03-04 12:49:45 +00:00

18 lines
8.5 KiB
HTML

<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>3.&nbsp;What&#8217;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&nbsp;I.&nbsp;Preface"><link rel="prev" href="multi__quick_start.html" title="2.&nbsp;Quick Start"><link rel="next" href="multi__notes_on_migrating_from_1_x_to_2_x.html" title="4.&nbsp;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.&nbsp;What&#8217;s New in 2.1?</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="multi__quick_start.html">Prev</a>&nbsp;</td><th width="60%" align="center">Part&nbsp;I.&nbsp;Preface</th><td width="20%" align="right">&nbsp;<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.&nbsp;What&#8217;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&nbsp;New Features and Components">Section&nbsp;3.1, &#8220;New Features and Components&#8221;</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&nbsp;Notable Enhancements">Section&nbsp;3.2, &#8220;Notable Enhancements&#8221;</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&nbsp;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&nbsp;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&nbsp;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&#8217;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&nbsp;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&#8217;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>&nbsp;</td><td width="20%" align="center"><a accesskey="u" href="multi__preface.html">Up</a></td><td width="40%" align="right">&nbsp;<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.&nbsp;Quick Start&nbsp;</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">&nbsp;4.&nbsp;Notes on migrating from 1.x to 2.x?</td></tr></table></div></body></html>