AWS AppSync With Spring Boot
1. Introduction In this article, we'll explore AWS AppSync with Spring Boot. AWS AppSync is a fully-managed, enterprise-level GraphQL service with real-time data synchronization and offline programming...
View ArticleGenerating PDF Files Using Thymeleaf
1. Overview In this tutorial, we'll learn how to generate PDFs using Thymeleaf as a template engine through a quick and practical example. 2. Maven Dependencies First, let's add our Thymeleaf...
View ArticleIntroduction to Lock-Free Data Structures
1. Introduction In this tutorial, we'll learn what non-blocking data structures are and why they are an important alternative to lock-based concurrent data structures. First, we'll go over some terms...
View ArticleIntroduction to Finagle
1. Overview In this tutorial, we'll take a quick look at Finagle, Twitter's RPC library. We'll use it to build a simple client and server. 2. Building Blocks Before we dig into the implementation, we...
View ArticleFinding an Object’s Class in Java
1. Overview In this article, we'll explore the different ways of finding an object's class in Java. 2. Using the getClass() Method The first method that we'll check is the getClass() method. First,...
View ArticleJava Weekly, Issue 333
1. Spring and Java >> Getting Started With RSocket: Servers Calling Clients [spring.io] A nice example of server-client communication using RSocket's request-stream interaction mode. >>...
View ArticleJava 14 Record Keyword
1. Introduction Passing immutable data between objects is one of the most common, but mundane tasks in many Java applications. Prior to Java 14, this required the creation of a class with boilerplate...
View ArticleFormatting Currencies in Spring Using Thymeleaf
1. Introduction In this tutorial, we'll learn how to format currencies by locale using Thymeleaf. 2. Maven Dependencies Let's begin by importing the Spring Boot Thymeleaf dependency: <dependency>...
View ArticleApplying CI/CD With Spring Boot
1. Overview In this tutorial, we'll take a look at the Continuous Integration/Continuous Deployment (CI/CD) process and implement its essential parts. We'll create a simple Spring Boot application and...
View ArticleOpen/Closed Principle in Java
1. Overview In this tutorial, we'll discuss the Open/Closed Principle (OCP) as one of the SOLID principles of object-oriented programming. Overall, we'll go into detail on what this principle is and...
View ArticleHow to Call Python From Java
1. Overview Python is an increasingly popular programming language, particularly in the scientific community due to its rich variety of numerical and statistical packages. Therefore, it's not an...
View ArticleClicking Elements in Selenium using JavaScript
1. Introduction In this short tutorial, we're going to take a look at a simple example of how to click and element in Selenium WebDriver using JavaScript. For our demo, we'll use JUnit and Selenium to...
View Article@PropertySource with YAML Files in Spring Boot
1. Overview In this quick tutorial, we'll show how to read a YAML properties file using the @PropertySource annotation in Spring Boot. 2. @PropertySource and YAML format Spring Boot has great support...
View ArticleCQRS and Event Sourcing in Java
1. Introduction In this tutorial, we'll explore the basic concepts of Command Query Responsibility Segregation (CQRS) and Event Sourcing design patterns. While often cited as complementary patterns,...
View ArticleIntroduction to Exchanger in Java
1. Overview In this tutorial, we'll look into java.util.concurrent.Exchanger<T>. This works as a common point for two threads in Java to exchange objects between them. 2. Introduction to...
View ArticleLinkedBlockingQueue vs ConcurrentLinkedQueue
1. Introduction LinkedBlockingQueue and ConcurrentLinkedQueue are the two most frequently used concurrent queues in Java. Although both queues are often used as a concurrent data structure, there are...
View ArticleSpring REST Docs vs OpenAPI
1. Overview Spring REST Docs and OpenAPI 3.0 are two ways to create API documentation for a REST API. In this tutorial, we'll examine their relative advantages and disadvantages. 2. A Brief Summary of...
View ArticleUnivocity Parsers
1. Introduction In this tutorial, we'll take a quick look at Univocity Parsers, a library for parsing CSV, TSV, and fixed-width files in Java. We'll start with the basics of reading and writing files...
View ArticleAn Introduction to Invoke Dynamic in the JVM
1. Overview Invoke Dynamic (Also known as Indy) was part of JSR 292 intended to enhance the JVM support for dynamically typed languages. After its first release in Java 7, the invokedynamic opcode is...
View ArticleJava Weekly, Issue 334
1. Spring and Java >> Switch as an expression in Java with Lambda-like syntax [blog.codeleak.pl] A quick guide that shows how to return a value from a Java 14 switch expression. >>...
View Article