npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

artillery-engine-mqtt

v1.2.3

Published

MQTT engine for Artillery

Downloads

7

Readme

Artillery MQTT Engine - artillery-engine-mqtt

The Artillery MQTT Engine is a custom engine developed for Artillery, a modern, powerful, and flexible load testing toolkit. This engine enables Artillery to perform load tests using the MQTT (Message Queuing Telemetry Transport) protocol.

Introduction

The Artillery MQTT Engine, also known as artillery-engine-mqtt, is designed to extend the capabilities of Artillery by allowing it to simulate MQTT-based load tests. MQTT is a lightweight and efficient messaging protocol commonly used in IoT (Internet of Things) applications, but it can also be used for various other messaging scenarios.

Features

The main features of the artillery-engine-mqtt project include:

  • beforeScenario / afterScenario Hooks: You can define functions that will be executed before and after each scenario. This allows you to set up necessary resources before the scenario starts and clean up after the scenario completes.
  • Publish Messages: The engine allows you to publish MQTT messages to specified topics with custom payloads. This is crucial for simulating realistic messaging patterns in your load tests.
  • Looping with whileTrue: The engine supports a loop structure called whileTrue, which lets you repeat a set of actions while a specified condition remains true. This can be useful for creating dynamic and variable load patterns in your tests.

Usage

Configuration

In your Artillery script, you need to specify the artillery-engine-mqtt as the engine and provide the necessary MQTT configuration details. Here's an example configuration snippet:

yaml

config:
  target: "mqtt://mqtt.example.com:1883"
  engines:
    mqtt: {}
  mqtt:
    clean: true
    protocolVersion: 4
    auth:
      clientId: "my-client-id"
  processor: "./processor.js"
scenarios:
  - flow:
      - loop:
          - publish:
              topic: "sensor/data"
              payload:
                message: "hello"
            whileTrue: "continueLoop"

In this example, the target field specifies the MQTT broker's URL, and the engines section instructs Artillery to use the artillery-engine-mqtt for load testing.

Contributing

Contributions to the artillery-engine-mqtt project are welcome! If you have ideas for improvements, bug fixes, or new features, please feel free to open an issue or submit a pull request. Make sure to review the contribution guidelines before getting started.

License

This project is licensed under the MIT License.


Note: This README is a template and might not reflect the exact state or features of the artillery-engine-mqtt project. Always refer to the actual project repository for the most accurate and up-to-date information.

For more information about Artillery, visit the official Artillery website.