Git Product home page Git Product logo

gatling-zeromq's Introduction

gatling-zeromq

Build Status Maven Central Dependencies

Goal of the project

The aim of the project is to allow load testing of applications using ZeroMQ with the help of the Gatling tool.

Adding gatling-zeromq to your project

SBT dependency:

"com.softwaremill.gatling-zeromq" %% "gatling-zeromq" % "0.1.0"

Gradle dependency:

"com.softwaremill.gatling-zeromq:gatling-zeromq_2.11:0.1.0"

gatling-zeromq is available for Scala 2.11 and requires Java 8.

You need to add a dependency on Gatling tool to your project since it is not bundled in this library.

Running tests

Tests in the project can be started with:

sbt gatling:test

For more information look at the Gatling SBT plugin.

ZeroMQ connector

The project uses JeroMQ as the ZeroMQ connector.

Configuration

Before running a scenario, you have to provide host and port to connect to. For example:

  val config = zmqConfig
    .host("localhost")
    .port("8916")

Message patterns

The plugin supports:

  • the publishing side of the PUB-SUB pattern (zmqPub("...")),
  • the requesting side of the REQ-REP pattern (zmqReq("...")),
  • and the pushing side of the PUSH-PULL pattern (zmqPush("...")),

Sending data

Sending of a message and a multi-part message is supported:

scenario("Scenario A")
    .exec(
        zmqPub("a request")
            .send("a message")
    )

scenario("Scenario B")
    .exec(
        zmqPub("a request")
            .sendMore("a multi")
            .sendMore("part")
            .send("message")
    )

Types of data can be String, Array[Byte], numeric ones and Gatling's Expression Language strings as well.

Contributing

Take a look at the open issues and pick a task you'd like to work on!

gatling-zeromq's People

Contributors

magdzikk avatar mchmielarz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.