简体   繁体   English

Spring cloud stream in-0是什么意思

[英]Spring cloud stream what is the meaning of in-0

I have see this config of spring cloud stream我看到了 spring 云 stream 的配置

spring:
  cloud:
    function:
      definition: topic1
    stream:
      bindings:
        topic1-in-0:
          destination: topic1
          group: topic1

Could you guys explain me what is -0 at the end of bindings?你们能解释一下绑定末尾的-0是什么吗? Can we have -1 , -10 , ..., -100 ?我们可以有-1 , -10 , ..., -100吗?

Yes, you can have multiple suffixes -1 , -2 , etc but you won't need it often.是的,您可以有多个后缀-1-2等,但您不会经常需要它。

It's called partial function chaining or currying and you can read more about it at Spring Cloud reference: https://docs.spring.io/spring-cloud-stream-binder-kafka/docs/current/reference/html/spring-cloud-stream-binder-kafka.html#_beyond_two_inputs它被称为部分 function 链接或柯里化,您可以在 Spring 阅读更多相关信息云参考: https://docs.spring.io/spring-cloud-stream-binder-kafka/docs/current/reference/html/spring-cloud -stream-binder-kafka.html#_beyond_two_inputs

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM