Skip to content

Commit

Permalink
#586 add dispatcher for alpakka kafka
Browse files Browse the repository at this point in the history
Signed-off-by: Johannes Schneider <johannes.schneider@bosch.io>
  • Loading branch information
jokraehe committed Jun 8, 2021
1 parent 462a16c commit 2cb4fb9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions connectivity/service/src/main/resources/connectivity.conf
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ ditto {
consumer = ${akka.kafka.consumer} # resolve defaults from reference.conf
consumer {

use-dispatcher = "kafka-connection-dispatcher"
poll-interval = 50ms

throttling {
Expand All @@ -260,6 +261,9 @@ ditto {
# can be defined in this configuration section.
producer = ${akka.kafka.producer} # resolve defaults from reference.conf
producer {

use-dispatcher = "kafka-connection-dispatcher"

kafka-clients {
# Close idle connections after the number of milliseconds specified by this config.
# When a message should be produced after a connection was closed because of this timeout, the client
Expand Down Expand Up @@ -618,4 +622,15 @@ http-push-connection-dispatcher {
}
}

kafka-connection-dispatcher {
type = "Dispatcher"
executor = "thread-pool-executor"
thread-pool-executor {
keep-alive-time = 60s
fixed-pool-size = off
max-pool-size-max = 256
max-pool-size-max = ${?KAFKA_CONNECTION_DISPATCHER_POOL_SIZE_MAX}
}
}

include "connectivity-extension"

0 comments on commit 2cb4fb9

Please sign in to comment.