Skip to main content
Quick navigation

Simulate Slow Producers and Consumers

Introduction

This interceptor slows responses from the brokers.

It will operate only on a set of topics rather than all traffic.

This interceptor only works on Produce requests and Fetch requests.

Configuration

keytypedefaultdescription
topicString.*Topics that match this regex will have the interceptor applied.
rateInPercentintThe percentage of requests that will apply this interceptor
minLatencyMsintMinimum for the random response latency in milliseconds
maxLatencyMsintMaximum for the random response latency in milliseconds

Example

{
"name": "mySimulateSlowProducersConsumersInterceptor",
"pluginClass": "io.conduktor.gateway.interceptor.chaos.SimulateSlowProducersConsumersPlugin",
"priority": 100,
"config": {
"rateInPercent": 100,
"minLatencyMs": 50,
"maxLatencyMs": 1200
}
}