-
add dependency and jitpack repo
build.gradlerepositories { maven { url 'https://jitpack.io' } } dependencies { implementation 'com.github.gAmUssA:ktor-kafka:main-SNAPSHOT' }
build.gradle.ktsrepositories { maven { url = uri("https://jitpack.io") } } dependencies{ implementation("com.github.gAmUssA:ktor-kafka:main-SNAPSHOT") }
-
in
Application.module
Application.ktimport io.confluent.developer.ktor.Kafka import io.confluent.developer.ktor.newTopic fun Application.module(){ //install Kafka feature install(Kafka) { configurationPath = "src/main/resources/kafka.conf" topics = listOf( newTopic("myTopic") { partitions = 3 replicas = 1 } ) } }
forked from gAmUssA/ktor-kafka
-
Notifications
You must be signed in to change notification settings - Fork 0
Kafka feature for Ktor
License
anshuman35/ktor-kafka
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Kafka feature for Ktor
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Kotlin 95.5%
- JavaScript 4.5%