More Fail early – Java 8

Fail fast or Fail early is a software engineering concept that tries to prevent complex problems happening by stopping execution as soon as something that shouldn’t happen, happens. In a previous blog post and presentation I go more into detail about the merits of this approach, in this blog post I will just detail another use of this idea in Java 8.   ...

Read More »

AJAX with CKEditor in Spring Boot

java-interview-questions-answers

1. Overview In this article, we will cover how to use CKEditor with Spring Boot. In this tutorial, we will be importing an XML document with numerous data, program the ability to load a set of data to the CKEditor instance with a GET request, and do a POST request to save the CKEditor’s data. Technologies we will be using include ...

Read More »

Constructors or Static Factory Methods?

I believe Joshua Bloch said it first in his very good book “Effective Java”: static factory methods are the preferred way to instantiate objects compared with constructors. I disagree. Not only because I believe that static methods are pure evil, but mostly because in this particular case they pretend to be good and make us think that we have to ...

Read More »

A Deep Dive into InfluxDB

I gave you an overview of the TICK stack in a previous article, but here we’ll focus on InfluxDB, a database optimized to store and run time series data. I care about time series for a variety of reasons. With the adoption of agile methodologies, cloud, and DevOps, we are now able to develop faster to release new features. This ...

Read More »

Transactions Made Simple Using Speedment 3.0.17 and Above

Transactions Sometimes we want to make sure that our database operations are executed atomically and separated from other operations. This is where transactions come into play. A transaction is a set of operation proposals that may or may not be accepted by the database as an atomic operation. So, either all operations in the transaction are accepted or no operations ...

Read More »

Docker for Java Developers: Build on Docker

Over the first few parts of the tutorial we went through basics of the Docker and the multitude of the ways to interface with it. It is time to apply the knowledge we have acquired to real-world Java projects, starting the discussion from the topic of how Docker affects the well-established build processes and practices.           ...

Read More »

Controlling parallelism level of Java parallel streams

With recent Java 9 release we got many new goodies to play with and improve our solutions once we grasp those new features. The release of Java 9 is also a good time to revise whether we have grasped Java 8 features. In this post I’d like to bust the most common misconception about Java parallel streams. It’s often said ...

Read More »

Introduction to Apache Kafka

java-interview-questions-answers

What is Apache Kafka? Apache Kafka is a distributed streaming system with publish and subscribe the stream of records. In another aspect it is an enterprise messaging system. It is highly fast, horizontally scalable and fault tolerant system. Kafka has four core APIs called, Producer API: This API allows the clients to connect to Kafka servers running in cluster and ...

Read More »

Spring Boot web application with Gradle

1. Introduction Before we move on to create our demo Spring Boot web application with Gradle, I assume we all are ready with the Gradle setup. Guide to Gradle Setup Gradle Official Website 2. Creating Demo Application Now that we ready with the plugin installed, create a new Gradle project as shown below –     Clicking on Next, specify ...

Read More »