How to Compress Requests Using the Spring RestTemplate 1. Introduction In this short tutorial, we’ll look at how to send HTTP requests containing compressed data. In addition, we’ll look at how to configure a Spring web application so it handles compressed requests. 2. Sending Compressed Requests Firstly, let’s create a… Continue Reading spring-resttemplate-compressing-requests

Array Operations in Java 1. Overview Any Java developer knows that producing a clean, efficient solution when working with array operations isn’t always easy to achieve. Still, they’re a central piece in the Java ecosystem – and we’ll have to deal with them on several occasions. For this reason, it’s… Continue Reading java-common-array-operations

Better Retries with Exponential Backoff and Jitter 1. Overview In this tutorial, we’ll explore how we can improve client retries with two different strategies: exponential backoff and jitter. 2. Retry In a distributed system, network communication among the numerous components can fail anytime. Client applications deal with these failures by implementing… Continue Reading resilience4j-backoff-jitter

Check If Two Lists are Equal in Java 1. Introduction In this short article we’ll focus on the common problem of testing if two List instances contain the same elements in exactly the same order. List is an ordered data structure so the order of elements matters by design. have… Continue Reading java-test-a-list-for-ordinality-and-equality

Spring Data MongoDB: Projections and Aggregations 1. Overview Spring Data MongoDB provides simple high-level abstractions to MongoDB native query language. In this article, we will explore the support for Projections and Aggregation framework. If you’re new to this topic, refer to our introductory article Introduction to Spring Data MongoDB. 2.… Continue Reading spring-data-mongodb-projections-aggregations