{"id":13651162,"url":"https://github.com/mnogu/gatling-kafka","last_synced_at":"2025-04-22T22:30:33.002Z","repository":{"id":26468028,"uuid":"29919620","full_name":"mnogu/gatling-kafka","owner":"mnogu","description":"A Gatling stress test plugin for Apache Kafka protocol","archived":true,"fork":false,"pushed_at":"2021-03-22T08:13:04.000Z","size":67,"stargazers_count":68,"open_issues_count":17,"forks_count":74,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-09T09:44:55.997Z","etag":null,"topics":["gatling","kafka","stress-test"],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mnogu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-27T15:15:42.000Z","updated_at":"2023-01-28T02:11:54.000Z","dependencies_parsed_at":"2022-08-29T17:13:43.164Z","dependency_job_id":null,"html_url":"https://github.com/mnogu/gatling-kafka","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnogu%2Fgatling-kafka","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnogu%2Fgatling-kafka/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnogu%2Fgatling-kafka/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnogu%2Fgatling-kafka/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mnogu","download_url":"https://codeload.github.com/mnogu/gatling-kafka/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250333859,"owners_count":21413470,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gatling","kafka","stress-test"],"created_at":"2024-08-02T02:00:45.927Z","updated_at":"2025-04-22T22:30:32.601Z","avatar_url":"https://github.com/mnogu.png","language":"Scala","funding_links":[],"categories":["Tools"],"sub_categories":["Plugins"],"readme":"# Gatling-Kafka ![](https://github.com/mnogu/gatling-kafka/workflows/Scala%20CI/badge.svg)\n\nAn unofficial [Gatling](http://gatling.io/) 3.3.1 stress test plugin\nfor [Apache Kafka](http://kafka.apache.org/) 2.4.0 protocol.\n\nThis plugin supports the Kafka producer API only\nand doesn't support the Kafka consumer API.\n\n## Usage\n\n### Cloning this repository\n\n    $ git clone https://github.com/mnogu/gatling-kafka.git\n    $ cd gatling-kafka\n\n### Creating a jar file\n\nInstall [sbt](http://www.scala-sbt.org/) 0.13 if you don't have.\nAnd create a jar file:\n\n    $ sbt assembly\n\nIf you want to change the version of Gatling used to create a jar file,\nchange the following line in [`build.sbt`](build.sbt):\n\n```scala\n\"io.gatling\" % \"gatling-core\" % \"3.3.1\" % \"provided\",\n```\n\nand run `sbt assembly`.\n\nIf you don't want to include kafka-clients library to the jar file,\nchange a line on kafka-clients in [`build.sbt`](build.sbt) from\n\n```scala\n(\"org.apache.kafka\" % \"kafka-clients\" % \"2.4.0\")\n```\n\nto\n\n```scala\n(\"org.apache.kafka\" % \"kafka-clients\" % \"2.4.0\" % \"provided\")\n```\n\nand run `sbt assembly`.\n\n### Putting the jar file to lib directory\n\nPut the jar file to `lib` directory in Gatling:\n\n    $ cp target/scala-2.12/gatling-kafka-assembly-*.jar /path/to/gatling-charts-highcharts-bundle-3.3.1.*/lib\n\nIf you edited `build.sbt` in order not to include kafka-clients library\nto the jar file, you also need to copy kafka-clients library to `lib` directory:\n\n    $ cp /path/to/kafka-clients-*.jar /path/to/gatling-charts-highcharts-bundle-3.3.1.*/lib\n\n\n###  Creating a simulation file\n\n    $ cd /path/to/gatling-charts-highcharts-bundle-3.3.1.*\n    $ vi user-files/simulations/KafkaSimulation.scala\n\nYou can find sample simulation files in the [test directory](src/test/scala/com/github/mnogu/gatling/kafka/test).\nAmong these files, [BasicSimulation.scala](src/test/scala/com/github/mnogu/gatling/kafka/test/BasicSimulation.scala) would be a good start point.\nMake sure that you replace `BasicSimulation` with `KafkaSimulation` in `BasicSimulation.scala`\nif your simulation filename is `KafkaSimulation.scala`.\n\nNote that gatling-kafka 0.1.x isn't compatible with 0.0.x.\nSee the [README.md in the 0.0.6 release](https://github.com/mnogu/gatling-kafka/blob/0.0.6/README.md)\nif you are using 0.0.x.\n\n### Running a stress test\n\nAfter starting an Apache Kafka server, run a stress test:\n\n    $ bin/gatling.sh\n\n## License\n\nApache License, Version 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmnogu%2Fgatling-kafka","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmnogu%2Fgatling-kafka","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmnogu%2Fgatling-kafka/lists"}