Kafka

Apache Kafka is a distributed event streaming platform. With the Gatling Kafka plugin, you can load test Kafka brokers and the systems built around them.

Gatling supports:

  • producing records, with a key, headers, and a partition, and a value from any Gatling body
  • request-reply, measuring the time until the reply to a request is read
  • waiting for a record that another system produces, measuring the end-to-end latency of a pipeline, by blocking the virtual user or with subscriptions that let it continue
  • checks on the value, the key, and the headers of the records read
  • Avro, Protobuf, and JSON Schema keys and values, with a schema registry
  • SASL authentication (PLAIN, SCRAM, OAUTHBEARER, AWS MSK IAM, and GSSAPI) and TLS
Project Setup Learn how to set up your project to use the Gatling Kafka protocol.
Kafka Protocol Learn how to configure the Kafka protocol, secure the connections to the brokers, and match replies to their requests.
Actions Learn how to produce records, wait for their replies, and measure the end-to-end latency of a pipeline.
Checks Learn how to check the records Gatling reads, and save values for the next requests.
Schema Registry Learn how to produce Avro, Protobuf, and JSON Schema records with a schema registry, and check their replies.