gatling-kafka-plugin icon indicating copy to clipboard operation
gatling-kafka-plugin copied to clipboard

Define topic at sending time

Open gosia-politowska opened this issue 1 year ago • 1 comments

Hi,

In my test I need to send messages to multiple kafka topics within one scenario. Is it possible at the moment? Currently I can see that you define the topic at the protocol building, but I'd like to be able to execute something like this:

private val scn = scenario("Basic")
        .exec(kafka("BasicRequest").send("my-topic", "my-message"))
        .exec(kafka("anotherRequest").send("my-other-topic", "custom-key", "12.0"))

gosia-politowska avatar Apr 25 '23 04:04 gosia-politowska

I suggest anything related to the Kafka target cluster to be configurable dynamically rather than requiring hardcoding / statically binding in the Simulation.

This is equivalent to vanilla Gatling for which the target is not part of the simulation / scenario.

Any suggestion on how to work around the current limitation outside of statically loading from env / config file / hardcoding in each Simulation?

cosminci avatar Jul 06 '23 09:07 cosminci