StreamsBuilderFactoryBean connects Spring configuration to a Kafka Streams application: it creates the StreamsBuilder and controls application startup and shutdown. @EnableKafkaStreams supplies the lifecycle wrapper, while a default KafkaStreamsConfiguration bean provides the settings used to create the factory bean. section 12.3
Configure the factory bean around three practical responsibilities:
- Customize the underlying KafkaStreams instance before startup, for example by installing a StateListener that logs running-state assignments. section 12.3
