简体   繁体   中英

Spring cloud stream what is the meaning of in-0

I have see this config of spring cloud 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? Can we have -1 , -10 , ..., -100 ?

Yes, you can have multiple suffixes -1 , -2 , etc but you won't need it often.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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