Thursday, May 31, 2018

Java 9 Flow API vs. LMAX Disruptor

Introduction

Java 9 introduces a new class, Flow, that allows developers to take advantage of Reactive programming. Previously, there was a data structure that could do the same thing: LMAX Disruptor.

In this post, I will give a simple example of 2 frameworks to compare syntax and throughput. There are a lot of aspects to be compared, like functionality, memory usage, and initial time. With more complex code, the scenario is limited to 1 publisher and 1 subscriber.



from DZone.com Feed https://ift.tt/2s1jVn2

No comments:

Post a Comment