move kafka topics creator into events-processors

This commit is contained in:
Adam 2022-10-08 14:16:43 +02:00
parent 1c9a93b457
commit 6035c2eaa0
7 changed files with 32 additions and 16 deletions

View file

@ -1,10 +0,0 @@
package dev.adamko.kafkatorio.processor.admin
import dev.adamko.kafkatorio.processor.config.ApplicationProperties
fun main() {
val appProps = ApplicationProperties.load()
val admin = KafkatorioKafkaAdmin(appProps)
admin.createKafkatorioTopics()
}

View file

@ -18,12 +18,12 @@ import org.apache.kafka.streams.Topology
import org.apache.kafka.streams.TopologyDescription
private val appProps = ApplicationProperties.load()
suspend fun launchTopology(
id: String,
topology: Topology,
additionalProperties: Map<String, String> = mapOf(),
appProps: ApplicationProperties,
): Unit = coroutineScope {
val props: Properties = appProps.kafkaStreamsConfig.toProperties()