Giter Club home page Giter Club logo

s-query-examples's Introduction

S-Query-examples

This repo hosts some examples that query the internal state of stateful operators in S-Query. (Based on Hazelcast Jet)

S-Query is an adaptation of Hazelcast Jet which supports querying the internal state.

Structure

The most important are the dh, benchmark-getter-job and generic-query/generic-inc-query modules.

The dh module contains the Jet jobs for the Delivery Hero order tracking application in the S-Query paper.

Submodules:

  • dh-job Job which contains the stateful operations happening on the stream and measures the time it takes to go from source to sink.
  • dh-direct-query Job that queries the state of a given stateful operator using the direct object interface.
  • dh-queries Job which queries the state with one of 4 complex SQL queries
  • dh-query-benchmark Job which queries one of 4 complex SQL queries continuously and measures the latencies.

The benchmark-getter-job is a Jet job which gets the 2PC times of S-Query/Jet. Internally (in S-Query) the time it takes to complete a 2 phase commit is measured and put to a List. This job gets that list and prints the latencies to the console (in ns). Both phase 1 and phase 2 are individually measured.

generic-query Is a helper job which can query any table with any type of query with the latest snapshot ID.

generic-inc-query Is similar to generic-query except it will query incremental snapshots, again with the latest snapshot id.

The scripts folder contains several scripts for transferring the jars to a remote machine/multiple remote machines.

s-query-examples's People

Contributors

jimver avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  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.