Giter Club home page Giter Club logo

datastreamer-rust's Introduction

Data-streamer

In order to support the evaluation of stream processing engine a data source that is able to mimic different streaming data characteristics is desirable. Evaluating the engines with different data stream characteristics would provide more insights into the performance of the engine.

This data streaming component is inspired by the works of Van Dongen et al on streaming engines benchmark. In the reference paper, Apache Kafa was used as a data source for a more reliable measurement of latency. However, distributed messaging brokers like Kafka have an overhead of I/O operations since they write the data first to disk before reading and streaming it.

In order to reduce the overhead of the I/O operations, we implemented an in-memory data streaming component which will store the necessary data in memory first before streaming. The data streamer could also be
generalized to stream any kinds of data for evaluation purposes without being bound to a specific dataset.

Configuration of data streamer

The data streamer can be configured with the config.toml file. Currently, only two mode of data streaming characteristics are supported;

  • Constant: streams the data at a constant stream data rate determined by the volume parameter
  • Periodic: streams the data at a periodic rate, a burst of data followed by low data stream rate. The amount of data streamed during the burst is determined by the volume parameter.

Multiple data sources can be streamed by defining more array of tables with the key [[streamconfigs]]

The config file looks as follows:

log_level="info" 

[[streamconfigs]]
ip = "0.0.0.0"
port = 9000
mode = "Constant"
volume = 1
input_format = "JSON"
output_format = "JSON"
data_folder = "./data/flow"

[[streamconfigs]]
ip = "0.0.0.0"
port = 9001
mode = "Periodic"
volume = 20
input_format = "JSON"
output_format = "JSON"
data_folder = "./data/speed"

Running

To start the data streamer, you could run the following command:

./start.sh

This will start the docker for the data streamer component and listen for client connections at the specified ports.

Stopping

Stopping the data streamer is as simple as running:

./stop.sh

datastreamer-rust's People

Contributors

ajuvercr avatar ghsnd avatar s-minoo avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

ajuvercr

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.