Coder Social home page Coder Social logo

compare-rabbitmq-stream-clients's Introduction

compare-rabbitmq-clients

This repository contains scripts to create a local test environment to measure differences in consumption performance between rabbitmq clients even with latencies (e.g., in a cloud environment).

To launch the tests:

make

This script will create 2 files (one for golang and one for java) that will compare the performance of the two clients while consuming the stream and with an indication of the test latency. To change this latency check the Makefile and update the --delay argument (it is in ms).

As it is at the moment the delay is only client-side, but you can also add it server-side by adding --label com.docker-tc.enabled=1 --label com.docker-tc.delay=5ms in the creation of the rabbitmq container in docker-compose.

To clear the environment:

make clear

Benchmark

In the benchmark directory, you'll find the results from my local machine. It appears that:

  • Without any delay, the Java client is 4x faster in a local environment.
  • With a 5ms delay, it seems the Java client is around 20x faster.
  • With a 10ms delay, it seems the Java client is around 22x faster.

It appears that there are differences in how the client handles connections or things like that. Also, in the java client it seems that the reduction in performance is about linear with respect to the increase in latency (as we should expect, I guess), while in the go client it seems much steeper.

compare-rabbitmq-stream-clients's People

Contributors

hiimjako avatar

Watchers

 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.