/reactor

Reactor is a foundational library for building reactive fast-data applications on the JVM.

Primary LanguageJava

Reactor

Join the chat at https://gitter.im/reactor/reactor

Reactor is a foundational library building for reactive fast data applications on the JVM. It provides abstractions for Java, Groovy, Clojure and other JVM languages to make building event and data-driven applications easier. It’s also really fast. On a recent laptop with a dual-core processor, it's possible to process over 15,000,000 events per second with the RingBufferDispatcher and over 25,000,000 events per second in a single thread. Other dispatchers are available to provide the developer with a range of choices from thread-pool style, long-running task execution to non-blocking, high-volume task dispatching.

Build Status

Build instructions

Reactor uses a Gradle-based build system. Building the code yourself should be a straightforward case of:

git clone git@github.com:reactor/reactor.git
cd reactor
./gradlew test

This should cause the submodules to be compiled and the tests to be run. To install these artifacts to your local Maven repo, use the handly Gradle Maven plugin:

./gradlew install

Maven Artifacts

Snapshot Maven artifacts are provided in the SpringSource snapshot repositories. To add this repo to your Gradle build, specify the URL like the following:

ext {
  reactorVersion = '2.0.4.RELEASE'
}

repositories {
  maven { url 'http://repo.spring.io/libs-release' }
  //maven { url 'http://repo.spring.io/libs-milestone' }
  //maven { url 'http://repo.spring.io/libs-snapshot' }
  mavenCentral()
}

dependencies {
  // Reactor Core
  compile 'io.projectreactor:reactor-core:$reactorVersion'

  // Reactor Stream
  // compile 'io.projectreactor:reactor-stream:$reactorVersion'


  // Reactor Groovy
  // compile 'io.projectreactor:reactor-groovy:$reactorVersion'

  // Reactor Spring
  // compile 'io.projectreactor:reactor-spring:$reactorVersion'

   // Reactor Net
   // compile 'io.projectreactor:reactor-net:$reactorVersion'

   // Netty for Reactor Net (auto detects if in classpath)
   // compile 'io.netty:netty-all:4.0.27.Final'
}

Documentation

Community / Support

License

Reactor is Apache 2.0 licensed.