Asynchronous scenario for Kafka consumer

Hi,

I’ve used Gatling in the past for testing a synchrous rest api application, and i’m wondering if i should use it for my current project.

I’m working on a Spring Boot application that consumes Kafka messages, converts these and forwards them to a SAP rest endpoint.
I’d like to run some Gatling load on it. The first part is pretty simple, I saw that there is a Kafka plugin which can generate load.
Since that is an asynchronous process the verification part is harder: the definition of performance is the time taken before a message (or all messages) are posted to the SAP endpoint. But how to meassure that, how does the Gatling scenario/dsl know that that call is made?
I guess i need a (mock) endpoint in Gatling to catch the post to the SAP system (I can map these calls to the inital Kafka message). Is such construct possible?
Or are there other options?

Gatling version: 3.11.5 (must be up to date)
Gatling flavor: [ x] java kotlin scala javascript typescript
Gatling build tool: [x ] maven gradle sbt bundle npm

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.