Ep. 93 Distributed Data Show
The new 2.0 version of the DataStax Java Driver introduced some new patterns for accessing your data : reactive programming. In this episode, Alexandre explains the reactive APIs available in the new driver and the "sweetspots" for when to use them.
0:00 - Welcoming Alex back to the show to continue the conversation about new features in the DataStax Java Driver 4.0 for Cassandra.
0:30 - When people talk about reactive programming in Java they are often talking about the Reactive Streams API which includes interfaces such as Publisher, Subscriber and Subscription. One major advantage is not having to manage threads and futures.
2:55 - The 4.0 API contains operations such as Session.execReactive() which returns a ReactiveResultSet to which your application can register a subscription
4:10 - The driver uses a custom implementation of the reactive APIs in order to avoid bringing in additional dependencies. The implementation passed the Reactive Streams compatibility tests (TCK).
5:20 - The subscriber supports a backpressure feature - it does not requesting additional pages from the publisher if there are not resources to handle on the client.