简体   繁体   中英

Spring integration Kafka MessaheChannel Thread?

I have an Spring Integration flow bean (configured via Java DSL) which processes the messages from kafka queue message channel binded with Spring CloudStream.

The source of kafka message is an external application so what I really want to understand, is what thread/threads will actually process that messages.

Is it a single dedicated thread created with application, or is there a thread pool created and configured automatically by CloudStream, or something else?

And could I manage it somehow?

The kafka message channel binder uses one thread by default; if you increase the binding consumer.concurrency property, you will get that number of threads - you need at least as many partitions as the concurrency setting because a partition can only be consumed by one consumer.

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