KafkaStreamsExecutionContext could expose all properties instead of only the ones under kafka.properties #198
Labels
enhancement
This issue or pull request improves a feature
feature
This issue adds a new feature
good first issue
Good for newcomers
Problem
KStreamplify reads all configurations from the Spring Boot context and exposes those under the kafka.properties prefix in a static global object, KafkaStreamsExecutionContext.
protected void initProperties() { properties = PropertiesUtils.loadProperties(); serverPort = (Integer) properties.get(SERVER_PORT_PROPERTY); kafkaProperties = PropertiesUtils.loadKafkaProperties(properties); KafkaStreamsExecutionContext.registerProperties(kafkaProperties); }
Suggestion
I would like to be able to access all my properties through this object to manage some business or technical aspects that are not directly related to Kafka from my external configuration. Typically, a Kafka Streams application developed with KStreamplify uses Processor or Transformer classes, which are not directly managed by the Spring Application Context.
Alternatives Considered
Possible alternatives for implementation include:
The text was updated successfully, but these errors were encountered: