We are all well aware of all the fancy new features that JDK 8 brought to us and probably it's hard to find a Java developer that doesn't know what Java Streams, Lambdas or CompletableFutures are. So all these nice features came a few years back with JDK 8, but what happened a bit earlier... Continue Reading →
When parallelism beats concurrency
I'm aware that for many of you these two concepts probably mean the same or maybe you'd struggle to explain the differences between them; however, they're actually two very different concepts and this is quite important to understand the way in which we process data nowadays. In both cases we try to solve a problem... Continue Reading →
Combining multiple API calls with CompletableFuture
After having had an introduction to the new concurrency paradigm in Java in my previous article "A new concurrency model in Java", I've considered that it'd be beneficial to show a more realistic and practical example with CompletableFuture. So what we're going to do is to implement a component responsible for fetching posts from different... Continue Reading →
A new Java concurrency model
Things have changed considerably in the last few years in terms of how we write code in concurrent models. In the past we always had a tendency to share state and use complex concurrency mechanisms to synchronise the threads to allow them a fair use of the resources in our application, those were the times when... Continue Reading →