最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Spring Boot 3.3.3 Kafka Virtual Threads with custom Configuration - Stack Overflow

programmeradmin4浏览0评论

With Spring Boot 3.3.3 (spring.threads.virtual.enabled=true), the default Kafka autoconfiguration uses virtual threads. However, my custom Kafka bean configuration still uses platform threads. Could someone share a working example of how to configure a Kafka listener to use virtual threads? Specifically, I'm looking for configuration examples for:

@Bean
public ConcurrentKafkaListenerContainerFactory<String, String> kafkaListenerContainerFactory(
        ConsumerFactory<String, String> consumerFactory) {
    // How to configure this to use virtual threads?
}
发布评论

评论列表(0)

  1. 暂无评论