Java Weekly, Issue 185
Lots of interesting writeups on Java 9 this week. Here we go… 1. Spring and Java >> Introducing Spring Cloud Function [spring.io] Spring has always adopted POJO-based approaches, now it’s time...
View ArticleVavr (ex-Javaslang) Support in Spring Data
1. Overview In this quick tutorial, we’re going to take a look at the support for Vavr in Spring Data – which was added in the 2.0.0 Spring build snapshot. More specifically, we’re going to show an...
View ArticleIntroduction to Chronicle Queue
1. Overview Chronicle Queue persists every single message using a memory-mapped file. This allows us to share messages between processes. It stores data directly to off-heap memory, therefore, making...
View ArticleIntroduction to Awaitlity
1. Introduction A common problem with asynchronous systems is that it’s hard to write readable tests for them that are focused on business logic and are not polluted with synchronizations, timeouts,...
View ArticleMigrating from JUnit 4 to JUnit 5
1. Overview In this article, we’ll see how we can migrate from JUnit 4 to the latest JUnit 5 release – with an overview of the differences between the two versions of the library. For the general...
View ArticleGuide to the HyperLogLog Algorithm
1. Overview The HyperLogLog (HLL) data structure is a probabilistic data structure used to estimate the cardinality of a data set. Suppose that we have millions of users and we want to calculate the...
View ArticleKotlin with Mockito
1. Introduction Kotlin and Java walk hand in hand. This means we can leverage the vast number of existent Java libraries in our Kotlin projects. In this short article, we’ll see how we can mock using...
View ArticleJava Weekly, Issue 186
Lots of interesting write-ups on Java 9 this week. Here we go… 1. Spring and Java >> Painlessly Migrating do Java Jigsaw Modules – a Case Study [infoq.com] Modularity is the next big thing in...
View ArticleData Modeling in Cassandra
1. Overview Cassandra is a NoSQL database that provides high availability and horizontal scalability without compromising performance. To get the best performance out of Cassandra, we need to...
View ArticleAn Introduction to Atomic Variables in Java
1. Introduction Simply put, shared state very easily leads to problems when concurrency is involved. If access to shared mutable objects is not managed properly, applications can quickly become prone...
View ArticleApache Commons Collections MapUtils
1. Introduction MapUtils is one of the tools available in the Apache Commons Collections project. Simply put, it provides utility methods and decorators to work with java.util.Map and...
View ArticleMicrobenchmarking with the Java Microbenchmark Harness
1. Introduction This quick article is focused on JMH (the Java Microbenchmark Harness) – which is scheduled to become a part of JVM in the upcoming Java 9 release. Simply put, JMH takes care of the...
View ArticleA Guide to Byte Buddy
1. Overview Simply put, ByteBuddy is a library for generating Java classes dynamically at run-time. In this to-the-point article, we’re going to use the framework to manipulate existing classes,...
View ArticleJava Static Analysis Tools in Eclipse and IntelliJ IDEA
1. Overview In our introduction to FindBugs, we looked at the functionality of FindBugs as a static analysis tool and how it can be directly integrated into IDEs like Eclipse and IntelliJ Idea. In...
View ArticleApache Camel with Spring Boot
1. Overview At its core, Apache Camel is an integration engine, which – simply put – can be used to facilitate interactions between a wide and varied array of technologies. These bridges between...
View ArticleAWS S3 with Java
1. Introduction In this tutorial, we’ll learn how to interact with the Amazon S3 (Simple Storage Service) storage system programmatically, from Java. Remember that S3 has a very simple structure –...
View ArticleOverview of the java.util.concurrent
1. Overview The java.util.concurrent package provides tools for creating concurrent applications. In this article, we will do an overview of the whole package. 2. Main Components The...
View ArticleGuide to PDFUnit
1. Introduction In this article, we’re going to explore the PDFUnit library for testing PDFs. Using the powerful APIs provided by PDFUnit, we can work with PDFs and verify text, images, bookmarks and...
View ArticleCucumber Java 8 Support
1. Overview In this quick tutorial, we’ll learn how to use Java 8 lambda expressions with Cucumber. 2. Maven Configuration First, we will need to add the following dependency to our pom.xml:...
View ArticleA Guide to Activiti with Java
1. Overview Activiti API is a workflow and Business Process Management system. We can define a process in it, execute it, and manipulate it in different ways using the services provided by the API. It...
View Article