Home > Software design >  I don't see the concurrency property in Spring docs
I don't see the concurrency property in Spring docs

Time:08-09

I'm migrating my application from Spring Boot 2.4 to Spring Boot 2.7, and Spring Cloud to 2021.0.3.

I came across this situation. I am now using spring-cloud-stream package version 3.2.3, looking at the documentation here, it has no reference to the spring.cloud.stream.rabbit.bindings.<channelName>.consumer.concurrency property that I use, it is quoted in exclusive and maxConcurrency properties, these in the settings of my application.yml also do not appear.

Is the documentation correct? If so, shouldn't the org.springframework.cloud.stream.binder.ConsumerProperties class be consistent with the documentation?

CodePudding user response:

spring.cloud.stream.rabbit.bindings..consumer.concurrency

concurrency is a common property for all binders, it is not rabbitmq specific.

spring.cloud.stream.bindings.<channelName>.consumer.concurrency 

https://docs.spring.io/spring-cloud-stream/docs/current/reference/html/spring-cloud-stream.html#_consumer_properties

  • Related