Sunday, January 14th, 2018
Reactive Streams is an initiative trying to standardize asynchronous stream processing with non-blocking back-pressure. With Java 9, new classes in the java.util.concurrent.flow package offer a semantically equivalent counterpart to this standard that may be adopted by other frameworks.
In the following short tutorial we’re implementing examples for reactive streams with Java 9 and the Flow API, with RxJava2, with Akka, with Reactor and finally there is an example in RxJava1, too though it does not follow the standard.
(more…)
Tags: akka, backpressure, consumer, diagramming, flow, flow-api, java9, jdk9, manifesto, maven, plantuml, producer, publisher, reactive, reactivex, reactor, rxjava, rxjava1, rxjava2, streams, subscriber, uml
Posted in Java | 3 Comments »
Sunday, August 23rd, 2015
Writing tests for asynchronous applications has never been much fun as we’re always struggling with the problem how to determine state changes, handle process terminations, dealing with timeouts or failures and stuff like this.
Awaitility eases this process for us offering a nice DSL, rich support for languages like Scala or Groovy and an easy-to-use syntax that’s even more fun when using it with Java 8′s lambda expressions.
In the following short introduction I’d like to demonstrate writing some tests different scenarios.
(more…)
Tags: async, asynchronous, awaitility, event, eventbus, eventhandler, gradle, groovy, guava, junit, scala, subscriber, tdd, test, testing
Posted in Java, testing | No Comments »