All Stories

Spring Data Mongo using Mongo Cluster with Docker

In this post we are going to talk about how to configure a MongoDB Cluster in local using docker-compose and how to use it with Spring Data Mongo.

Circuit Breaker with Resilience4j and Spring

When a remote service is down the Circuit Breaker pattern prevents a cascade of failures. After a number of failed attempts, we can consider that the service is unavailable/overloaded and...

AsyncRestTemplate returns 404 (Site Not Found) with Apache HttpComponents

When you create an AsyncRestTemplate, Spring uses SimpleClientHttpRequestFactory by default which depends on default configuration of HttpURLConnection. This implementation doesn’t have connection pooling.

Logging Requests and Responses in Spring (including body)

Recently we have found some problems trying to log a complete Request and Response in a Spring Application. When we talk about a “complete Request and Response” we are indicating...

Logging of Requests and Responses in Spring with Undertow (no body)

In this post we’re going to configure Undertow as embedded server in our Spring Boot Application. Then we’ll trace in logs all the requests and responses of our controllers.

Example of MQTT with Mosquitto

Mosquitto is a message broker that implements the MQTT protocol. MQTT is very used in IOT to share info between devices. In this post we will simulate a communication between...