Hazelcast Jet allows you to write modern Java code that focuses purely on data transformation while it does all the heavy lifting of getting the data flowing and computation running across a cluster of nodes. It supports working with both bounded (batch) and unbounded (streaming) data.
These are some of the concerns Jet handles well:
Scale Up and Out: Parallelize a computation across all CPU cores and cluster nodes Auto-Rescale: Scale out to newly added nodes and recover from nodes that left or failed Correctness Guarantee: at-least-once and exactly-once processing in the face of node failures Jet integrates out of the box with many popular data storage systems such as Apache Kafka, Hadoop, relational databases, message queues and many more.
Jet supports a rich set of data transformations, such as windowed aggregations. For example, if your data is GPS location reports from millions of users, Jet can compute every user's velocity vector by using a sliding window and just a few lines of code.
Jet also comes with a fully-featured, in-memory key-value store. Use it to cache results, store reference data or as a data source itself.
Hazelcast Jet alternatives and similar libraries
Based on the "Distributed Applications" category.
Alternatively, view Hazelcast Jet alternatives based on common mentions on social networks and blogs.
Hystrix9.7 0.0 L2 Hazelcast Jet VS HystrixHystrix is a latency and fault tolerance library designed to isolate points of access to remote systems, services and 3rd party libraries, stop cascading failure and enable resilience in complex distributed systems where failure is inevitable.
Redisson9.7 9.7 L1 Hazelcast Jet VS RedissonRedisson - Easy Redis Java client with features of In-Memory Data Grid. Over 50 Redis based Java objects and services: Set, Multimap, SortedSet, Map, List, Queue, Deque, Semaphore, Lock, AtomicLong, Map Reduce, Publish / Subscribe, Bloom filter, Spring Cache, Tomcat, Scheduler, JCache API, Hibernate, MyBatis, RPC, local cache ...
Apache ZooKeeper9.6 8.5 L1 Hazelcast Jet VS Apache ZooKeeperApache ZooKeeper
Pinpoint9.5 9.7 L2 Hazelcast Jet VS PinpointAPM, (Application Performance Management) tool for large-scale distributed systems.
Akka9.4 9.6 Hazelcast Jet VS AkkaBuild highly concurrent, distributed, and resilient message-driven applications on the JVM
Zuul9.4 8.8 Hazelcast Jet VS ZuulZuul is a gateway service that provides dynamic routing, monitoring, resiliency, security, and more.
Vert.x9.3 8.6 L1 Hazelcast Jet VS Vert.xVert.x is a tool-kit for building reactive applications on the JVM
Apache Storm9.2 8.8 L1 Hazelcast Jet VS Apache StormMirror of Apache Storm
Hazelcast8.7 9.9 L3 Hazelcast Jet VS HazelcastOpen-source distributed computation and storage platform. Real-time Stream Processing Unconference. Save Your Spot https://hazelcast.com/lp/unconference/
Ribbon8.6 0.0 Hazelcast Jet VS RibbonRibbon is a Inter Process Communication (remote procedure calls) library with built in software load balancers. The primary usage model involves REST calls with various serialization scheme support.
Quasar8.2 0.0 L1 Hazelcast Jet VS QuasarFibers, Channels and Actors for the JVM
Lagom7.7 1.1 Hazelcast Jet VS LagomReactive Microservices for the JVM
Atomix7.3 0.0 L4 Hazelcast Jet VS AtomixA Kubernetes toolkit for building distributed applications using cloud native principles
Bt7.1 0.0 Hazelcast Jet VS BtBitTorrent library and client with DHT, magnet links, encryption and more
Orbit6.6 0.0 L5 Hazelcast Jet VS OrbitOrbit - Virtual actor framework for building distributed systems
JGroups6.3 9.5 L2 Hazelcast Jet VS JGroupsThe JGroups project
Copycat5.2 0.0 L4 Hazelcast Jet VS CopycatFault-tolerant state machine replication framework.
ScaleCube4.9 0.0 Hazelcast Jet VS ScaleCubea microservices library - scalecube-services is a high throughput, low latency reactive microservices library built to scale. it features: API-Gateways, service-discovery, service-load-balancing, the architecture supports plug-and-play service communication modules and features. built to provide performance and low-latency real-time stream-processing. its open and designed to accommodate changes. (no sidecar in a form of broker or any kind)
Dropwizard Circuit BreakerA circuit breaker design pattern for dropwizard
kite1.8 0.0 Hazelcast Jet VS kiteLightweight service-based PubSub, RPC and public APIs in Java
Axon FrameworkFramework for creating CQRS applications.
Write Clean Java Code. Always.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Hazelcast Jet or a related project?
Note on Hazelcast 5
With the release of Hazelcast 5.0, development of Jet has been moved to the core Hazelcast Repository - please follow the repository for details on how to use Hazelcast for building data pipelines.
Hazelcast 5 also comes with extensive documentation, replacing the existing Jet docs: https://docs.hazelcast.com/hazelcast/latest/index.html
What is Jet
Jet is an open-source, in-memory, distributed batch and stream processing engine. You can use it to process large volumes of real-time events or huge batches of static datasets. To give a sense of scale, a single node of Jet has been proven to aggregate 10 million events per second with latency under 10 milliseconds.
It provides a Java API to build stream and batch processing applications through the use of a dataflow programming model. After you deploy your application to a Jet cluster, Jet will automatically use all the computational resources on the cluster to run your application.
If you add more nodes to the cluster while your application is running, Jet automatically scales up your application to run on the new nodes. If you remove nodes from the cluster, it scales it down seamlessly without losing the current computational state, providing exactly-once processing guarantees.
For example, you can represent the classical word count problem that reads some local files and outputs the frequency of each word to console using the following API:
JetInstance jet = Jet.bootstrappedInstance(); Pipeline p = Pipeline.create(); p.readFrom(Sources.files("/path/to/text-files")) .flatMap(line -> traverseArray(line.toLowerCase().split("\\W+"))) .filter(word -> !word.isEmpty()) .groupingKey(word -> word) .aggregate(counting()) .writeTo(Sinks.logger()); jet.newJob(p).join();
and then deploy the application to the cluster:
bin/jet submit word-count.jar
Another application which aggregates millions of sensor readings per second with 10-millisecond resolution from Kafka looks like the following:
Pipeline p = Pipeline.create(); p.readFrom(KafkaSources.<String, Reading>kafka(kafkaProperties, "sensors")) .withTimestamps(event -> event.getValue().timestamp(), 10) // use event timestamp, allowed lag in ms .groupingKey(reading -> reading.sensorId()) .window(sliding(1_000, 10)) // sliding window of 1s by 10ms .aggregate(averagingDouble(reading -> reading.temperature())) .writeTo(Sinks.logger()); jet.newJob(p).join();
Jet comes with out-of-the-box support for many kinds of data sources and sinks, including:
- Apache Kafka
- Local Files (Text, Avro, JSON)
- Apache Hadoop (Azure Data Lake, S3, GCS)
- Apache Pulsar
When Should You Use Jet
Jet is a good fit when you need to process large amounts of data in a distributed fashion. You can use it to build a variety of data-processing applications, such as:
- Low-latency stateful stream processing. For example, detecting trends in 100 Hz sensor data from 100,000 devices and sending corrective feedback within 10 milliseconds.
- High-throughput, large-state stream processing. For example, tracking GPS locations of millions of users, inferring their velocity vectors.
- Batch processing of big data volumes, for example analyzing a day's worth of stock trading data to update the risk exposure of a given portfolio.
Predictable Latency Under Load
Jet uses a unique execution model with cooperative multithreading and can achieve extremely low latencies while processing millions of items per second on just a single node:
The engine is able to run anywhere from tens to thousands of jobs concurrently on a fixed number of threads.
Fault Tolerance With No Infrastructure
Jet stores computational state in a distributed, replicated in-memory store and does not require the presence of a distributed file system nor infrastructure like Zookeeper to provide high-availability and fault-tolerance.
Jet implements a version of the Chandy-Lamport algorithm to provide exactly-once processing under the face of failures. When interfacing with external transactional systems like databases, it can provide end-to-end processing guarantees using two-phase commit.
Advanced Event Processing
Event data can often arrive out of order and Jet has first-class support for dealing with this disorder. Jet implements a technique called distributed watermarks to treat disordered events as if they were arriving in order.
How Do I Get Started
Follow the Get Started guide to start using Jet.
You can download Jet from https://jet-start.sh.
Alternatively, you can use the latest docker image:
docker run -p 5701:5701 hazelcast/hazelcast-jet
Use the following Maven coordinates to add Jet to your application:
<groupId>com.hazelcast.jet</groupId> <artifactId>hazelcast-jet</artifactId> <version>4.2</version>
See the tutorials for tutorials on using Jet. Some examples:
Jet supports a variety of transforms and operators. These include:
- Stateless transforms such as mapping and filtering.
- Stateful transforms such as aggregations and stateful mapping.
Hazelcast Jet team actively answers questions on Stack Overflow and Hazelcast Community Slack.
You are also encouraged to join the hazelcast-jet mailing list if you are interested in community discussions
How Can I Contribute
Thanks for your interest in contributing! The easiest way is to just send a pull request. Have a look at the issues marked as good first issue for some guidance.
Building From Source
To build, use:
./mvnw clean package -DskipTests
Use Latest Snapshot Release
You can always use the latest snapshot release if you want to try the features currently under development.
<repositories> <repository> <id>snapshot-repository</id> <name>Maven2 Snapshot Repository</name> <url>https://oss.sonatype.org/content/repositories/snapshots</url> <snapshots> <enabled>true</enabled> <updatePolicy>daily</updatePolicy> </snapshots> </repository> </repositories> <dependencies> <dependency> <groupId>com.hazelcast.jet</groupId> <artifactId>hazelcast-jet</artifactId> <version>4.3-SNAPSHOT</version> </dependency> </dependencies>
Trigger Phrases in the Pull Request Conversation
When you create a pull request (PR), it must pass a build-and-test procedure. Maintainers will be notified about your PR, and they can trigger the build using special comments. These are the phrases you may see used in the comments on your PR:
verify- run the default PR builder, equivalent to
mvn clean install
run-nightly-tests- use the settings for the nightly build (
mvn clean install -Pnightly). This includes slower tests in the run, which we don't normally run on every PR
run-windows- run the tests on a Windows machine (HighFive is not supported here)
run-cdc-debezium-tests- run all tests in the
run-cdc-mysql-tests- run all tests in the
run-cdc-postgres-tests- run all tests in the
Where not indicated, the builds run on a Linux machine with Oracle JDK 8.
Source code in this repository is covered by one of two licenses:
- [Apache License 2.0](licenses/apache-v2-license.txt)
- [Hazelcast Community License](licenses/hazelcast-community-license.txt)
The default license throughout the repository is Apache License 2.0 unless the header specifies another license. Please see the Licensing section for more information.
We owe (the good parts of) our CLI tool's user experience to picocli.
Copyright (c) 2008-2021, Hazelcast, Inc. All Rights Reserved.
Visit www.hazelcast.com for more info.
*Note that all licence references and agreements mentioned in the Hazelcast Jet README section above are relevant to that project's source code only.