Wire Tap Enterprise Integration Pattern
1. Overview In this tutorial, we'll cover the Wire Tap Enterprise Integration Pattern (EIP), which helps us monitor messages flowing through the system. This pattern allows us to intercept the messages...
View ArticleDownload a Binary File Using OkHttp
1. Overview This tutorial will give a practical example of how to download a binary file using the OkHttp library. 2. Maven Dependencies We'll start by adding the base library okhttp dependency:...
View ArticleJava Weekly, Issue 390
1. Spring and Java >> CopyOnWriteArrayList and Collection#toArray() [javaspecialists.eu] Deep into safe usage of the CopyOnWriteArrayList. If you haven't been working on concurrency lately, this...
View ArticleCapturing Image From Webcam In Java
1. Overview Usually, Java doesn't provide easy access to the computer hardware. That's why we might find it tough to access the webcam using Java. In this tutorial, we’ll explore a few Java libraries...
View ArticleCommand Line Arguments as Maven Properties
1. Overview In this short tutorial, we'll look at how we can pass arguments to Maven using the command line. 2. Maven Properties Maven properties are value placeholders. First, we need to define them...
View ArticleGuide to the ModelAssert Library for JSON
1. Overview When writing automated tests for software that uses JSON, we often need to compare JSON data with some expected value. In some cases, we can treat the actual and expected JSON as strings...
View ArticleConnection Timeout vs. Read Timeout for Java Sockets
1. Introduction In this tutorial, we'll focus on the timeout exceptions of Java socket programming. Our goal is to understand why these exceptions occur and how to handle them. 2. Java Sockets and...
View ArticleWhat Does Mono.defer() Do?
1. Overview In Reactive Programming, there are many ways we can create a publisher of type Mono or Flux. Here, we'll look at the use of the defer method to delay the execution of a Mono publisher. 2....
View ArticleJava DocLint
1. Overview There are so many reasons why using Javadoc is a good idea. For example, we can generate HTML from our Java code, traverse through their definitions, and discover various properties related...
View ArticleA Comparison Between JPA and JDBC
1. Overview In this tutorial, we're going to look at the differences between the Java Database Connectivity (JDBC) API and the Java Persistence API (JPA). 2. What Is JDBC JDBC is a programming-level...
View ArticleHow to Implement Min-Max Heap In Java
1. Overview In this tutorial, we'll look at how to implement a min-max heap in Java. 2. Min-Max Heap First of all, let's look at heap's definition and characteristics. The min-max heap is a complete...
View ArticleExchanges, Queues, and Bindings in RabbitMQ
1. Overview To better understand how RabbitMQ works, we need to dive into its core components. In this article, we’ll take a look into exchanges, queues, and bindings, and how we can declare them...
View ArticleThe settings.xml File in Maven
1. Overview While using Maven, we keep most of the project specific configuration in the pom.xml. Maven provides a settings file – settings.xml. This allows us to specify which local and remote...
View ArticleBuild a Dashboard With Cassandra, Astra, REST & GraphQL – Recording Status...
1. Introduction In our previous article, we looked at building a dashboard for viewing the current status of the Avengers using DataStax Astra, a DBaaS powered by Apache Cassandra using Stargate to...
View ArticleJava Weekly, Issue 391
1. Spring and Java >> BlockHound: how it works [blog.frankel.ch] Going from imperative to the reactive paradigm – is no small feat, where it makes sense. This is a cool library that will...
View ArticleHow to Get the Number of Threads in a Java Process
1. Overview Thread is the basic unit of concurrency in Java. In most cases, the throughput of an application increases when multiple threads are created to do tasks in parallel. However, there's always...
View ArticleLogical vs Bitwise OR Operator
1. Introduction In computer programming, the use case of OR is that it is either a logical construct for boolean logic or a bitwise mathematical operation for manipulating data at the bit level. The...
View ArticleCluster, Datacenters, Racks and Nodes in Cassandra
1. Introduction In this tutorial, we'll have a close look at Cassandra's architecture. We'll find out about data storing in a distributed architecture, and we'll discuss basic architecture components....
View ArticleRunning Selenium Scripts with JMeter
1. Overview In this tutorial, we'll discuss the steps to run Selenium scripts with JMeter. 2. Selenium Scripts with JMeter JMeter provides an open-source solution for performance and load testing. It...
View ArticleMonitor the Consumer Lag in Apache Kafka
1. Overview Kafka consumer group lag is a key performance indicator of any Kafka-based event-driven system. In this tutorial, we'll build an analyzer application to monitor Kafka consumer lag. 2....
View Article