Skip to main content
Quick navigation

Simulate Slow Brokers

Introduction

This interceptor slows responses from the brokers.

This only works on Produce requests and Fetch requests.

Configuration

keytypedescription
rateInPercentintThe percentage of requests that will have the interceptor applied
minLatencyMsintMinimum for the random response latency in milliseconds
maxLatencyMsintMaximum for the random response latency in milliseconds

Example

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