Java Concurrency Interview Questions (+ Answers) 1. Introduction Concurrency in Java is one of the most complex and advanced topics brought up during technical interviews. This article provides answers to some of the interview questions on the topic that you may encounter. Q1. What Is the Difference Between a Process… Continue Reading java-concurrency-interview-questions

Validation in Spring Boot 1. Overview When it comes to validating user input, Spring Boot provides strong support for this common, yet critical, task out of the box. Although Spring Boot supports seamless integration with custom validators, the de-facto standard for performing validation is Hibernate Validator, the Bean Validation framework’s… Continue Reading spring-boot-bean-validation

WebSockets with AsyncHttpClient 1. Introduction AsyncHttpClient (AHC) is a library, based on Netty, created to easily execute asynchronous HTTP calls and communicate over the WebSocket protocol. In this quick tutorial, we’ll see how we can start a WebSocket connection, send data and handle various control frames. 2. Setup The latest… Continue Reading async-http-client-websockets

Gatling vs JMeter vs The Grinder: Comparing Load Test Tools DevOps Testing 1. Introduction Choosing the right tool for the job can be daunting. In this tutorial, we’ll simplify this by comparing three web application load testing tools – Apache JMeter, Gatling, and The Grinder–against a simple REST API. 2.… Continue Reading gatling-jmeter-grinder-comparison

Spring Security – Whitelist IP Range 1. Overview In this tutorial, we’ll discuss how to whitelist IP ranges in Spring Security. We’ll take a look at both Java and XML configurations. We’ll also see how to whitelist IP range using a custom AuthenticationProvider. 2. Java Configuration First, let’s explore the… Continue Reading spring-security-whitelist-ip-range