-
Notifications
You must be signed in to change notification settings - Fork 631
Spring Cloud Stream 2.0.0 Release Notes
Oleg Zhurakousky edited this page Jan 18, 2018
·
38 revisions
- Polling Consumer
- Micrometer
- Default Content type is set to
application/jsonwhich needs to be taken into consideration when migrating 1.3 application and/or operating in the mixed mode (i.e., 1.3 producer -> 2.0 consumer). - Messages with textual payloads and "contentType"
text/*or*/jsonwill be converted toMessage<String>to maintain the behavioral compatibility with previous version of the framework. Message's payload will still be converted to the appropriate argument type by the argument resolvers (MessageConverter's) if such argument is not aString(i.e., POJO) essentially resulting in secondary conversion which is not necessary for most cases. We are considering a flag to override this behavior to avoid secondary conversion. -
@StreamMessageConverter- to define customMessageConverter's used by argument resolvers. Added to the top of the list of existing MessageConverters - List of MessageConverter's configured by default (in order):
- TupleJsonMessageConverter - tbd
- ByteArrayMessageConverter - tbd
- ObjectStringMessageConverter - tbd
- JavaSerializationMessageConverter (DEPRECATED) - tbd
- KryoMessageConverter (DEPRECATED) - tbd
- JsonUnmarshallingMessageConverter - tbd
- JavaSerializationMessageConverter (DEPRECATED) - tbd
- KryoMessageConverter (DEPRECATED) - tbd
- Note about
partitionKeyExtractorClassdeprecation in favor of Spring configured beans -
partitionCountmust be accompanied by 'partitionKeyExtractor' otherwise it's an error