Introduction to AutoMQ: A Cost-Effective Kafka Alternative
1. Overview Apache Kafka has established itself as one of the most popular and widely used messaging and event streaming platforms. However, setting up and managing Kafka clusters is a complex process,...
View ArticleResolving CVE-2022-1471 With SnakeYAML 2.0
1. Overview In this article, we’ll explore CVE-2022-1471, a critical vulnerability in Spring Boot introduced through SnakeYAML, a popular Java library for parsing YAML. We’ll also explore how SnakeYAML...
View ArticleFIFO Queue Support in Spring Cloud AWS
1. Overview FIFO (First-In-First-Out) queues in AWS SQS are designed to ensure that messages are processed in the exact order they are sent and that each message is delivered only once. Spring Cloud...
View ArticleGet Thread by Name in Java
1. Overview Threads are fundamental building blocks for concurrent programming in Java. In many applications, we might need to locate a specific thread by its name to perform operations like debugging,...
View ArticleHow to Diagnose a Null Exception Message in Java
1. Overview Exceptions in Java may help us find and fix bugs. But what happens when the exception message is null, leaving us scratching our heads for clues? In this quick tutorial, let’s look into...
View ArticleDifference Between Circuit Breaker and Retry in Spring Boot
1. Overview In distributed systems and microservices architectures, handling failures gracefully is crucial for maintaining system reliability and performance. Two fundamental resilience patterns that...
View ArticleJava Weekly, Issue 574
1. Java and Technical >> InfoQ Java Trends Report – December 2024 [infoq.com] As always, an insighful article about the state of our ecosystem, over on InfoQ. >> Dates aren’t what they used...
View ArticleList All Liquibase SQL Types With Java
1. Introduction In this article, we’ll explore the various SQL data types supported by Liquibase. We’ll also examine how they are represented across databases such as MySQL, PostgreSQL, Oracle, and...
View ArticleGuide to Objects.requireNonNull() in Java
1. Introduction A NullPointerException is one of Java’s most common exceptions. It occurs when accessing or interacting with a reference variable that points to null. Validating objects, especially...
View ArticleMocking a Method in the Same Test Class Using Mockito Spy
1. Overview Mocking is a very useful feature in unit testing, especially in isolating the single behavior we want to test in our method. In this tutorial, we’ll see how we can mock a method in the same...
View ArticleWays to Add JARs to Classpath in Java
1. Introduction While working on Java projects, we often rely on external libraries to write our applications. In this article, we’ll examine different methods for adding these libraries as JARs on the...
View ArticleAutomated Testing for OpenAPI Endpoints Using CATS
1. Introduction In this tutorial, we’ll explore using CATS to automate testing for REST APIs configured with OpenAPI. Writing API tests manually can be tedious and time-consuming, but CATS simplifies...
View ArticleReload SSL Certificates From HashiCorp Vault for Spring Boot
1. Overview Applications and devices use SSL certificates to secure connections. They help secure communication between the server and the client. These certificates have an expiry time and need to be...
View ArticleIntroduction to SootUp
1. Introduction In this article, we’ll examine the the SootUp library. SootUp is a library for performing static analysis on JVM code, using either the original source code or compiled JVM bytecode....
View ArticleStoring Null Values in Avro Files
1. Introduction In this tutorial, we’ll explore two ways of handling and writing to file null values when working with Apache Avro in Java. These ways of approaching null values will also allow us to...
View ArticleA Guide to Nomad Cloud Platform
1. Introduction In today’s rapidly evolving tech landscape, organizations need reliable solutions to deploy and manage applications across diverse environments, including on-premises infrastructure and...
View ArticleStructured Logging in Spring Boot
1. Overview Logging is an essential feature of any software application. It helps track the behavior of an application during runtime by recording errors, warnings, and other events. By default, a...
View ArticleFix The Compile Error: class X is public should be declared in a file named...
1. Overview As Java developers, we’ve all faced compile-time errors, and one that might trip us up is “class X is public should be declared in a file named X.java” In this quick tutorial, we’ll explain...
View ArticleUsing Hugging Face Models With Spring AI and Ollama
1. Overview Artificial Intelligence is changing the way we build web applications. Hugging Face is a popular platform that provides a vast collection of open-source and pre-trained LLMs. We can use...
View ArticleFiltering a List With Regular Expressions in Java
1. Introduction In this tutorial, we’ll learn how to create a new list from an existing one in Java by filtering the elements that match a regular expression (regex). We’ll also look at various ways to...
View Article