Going Reactive - High Performance JVM Code with Reactor
This talk was given at DevFest Vienna 2013, featuring an introduction into the Reactor framework (https://github.com/reactor/reactor) combined with exhaustive demos.
to build reac+ve applica+ons. • Gray area between user-‐ and low-‐level code. • Build your applica+on cores on top of it. • Helps: drivers, servers, libraries, evented architectures. • Maintained by, but no dependency on Spring. • Currently in RC state! (hGps://github.com/reactor/reactor)
public interface Consumer<T> { void accept(T t); } • Supply the caller with T. public interface Supplier<T> { T get(); } • Perform work on T and return V. public interface Function<T, V> { V apply(T t); } • Check if the input matches the criteria. public interface Predicate<T> { boolean test(T t); }
into ApplicationContext @EnableReactor Wiring annotated handlers • DispatcherTaskExecutor Not intended for “high scale” Used to get Spring components running in the same thread as Reactor consumers.
today! TCP Client/Server based on Ne>y 4 Buffer tooling Sequencing for event ordering Work Queue support on top of Java Chronicle Logback Appender Language Constructs (Composables, Tuples,…)