Skip to content

Define topic at sending time #151

Open
gosia-politowska opened this issue Apr 25, 2023 · 1 comment
Open

Define topic at sending time #151

gosia-politowska opened this issue Apr 25, 2023 · 1 comment

Comments

@gosia-politowska
Copy link

gosia-politowska commented Apr 25, 2023

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"))
@cosminci
Copy link

cosminci commented Jul 6, 2023

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants