理解Sping Cloud Stream的'readerSchema'属性

时间:2018-08-31 14:02:32

标签: avro spring-cloud-stream

在将Spring Cloud Stream与模式演化结合使用时,我们可以设置属性spring.cloud.stream.schema.avro.readerSchema以在反序列化有效负载时显式定义读者的模式。

(请参阅:https://docs.spring.io/spring-cloud-stream/docs/current/reference/html/schema-evolution.html#_avro_schema_registry_message_converter_properties

但是,似乎未按通道定义此属性吗?这是否意味着如果Spring Cloud Stream应用正在从具有不同有效负载的多个通道(以我的情况为Kafka主题)进行读取,就不可能分别为每个通道定义一个读取器架构?还是我完全误解了财产?

0 个答案:

没有答案