Hystrix Integration with Existing Spring Application Cloud Spring 1. Overview In the last article we looked at the basics of Hystrix and how it can help with building a fault tolerant and resilient application. There are lots of existing Spring applications that make calls to external systems that would benefit… Continue Reading hystrix-integration-with-spring-aop

Upload and Retrieve Files Using MongoDB and Spring Boot 1. Overview In this tutorial, we’ll discuss how to upload and retrieve files using MongoDB and Spring Boot. We’ll use MongoDB BSON for small files and GridFS for the larger ones. 2. Maven Configuration First, we’ll add the spring-boot-starter-data-mongodb dependency to… Continue Reading spring-boot-mongodb-upload-file

Java Annotations Interview Questions (+ Answers) 1. Introduction Annotations have been around since Java 5, and nowadays, they are ubiquitous programming constructs that allow enriching the code. In this article, we’ll review some of the questions, regarding annotations; that are often asked on technical interviews and, where appropriate; we’ll implement… Continue Reading java-annotations-interview-questions

Introduction to Chaos Monkey 1. Introduction In this tutorial, we’re going to talk about Chaos Monkey for Spring Boot. This tool helps us introduce some of the principles of chaos engineering into our Spring Boot web applications by adding latency to our REST endpoints, throwing errors, or even killing an app.… Continue Reading spring-boot-chaos-monkey

An Introduction to Apache Commons Lang 3 1. Overview The Apache Commons Lang 3 library is a popular, full-featured package of utility classes, aimed at extending the functionality of the Java API. The library’s repertoire is pretty rich, ranging from string, array and number manipulation, reflection and concurrency, to the implementations… Continue Reading java-commons-lang-3

Configuring a Hikari Connection Pool with Spring Boot 1. Overview Hikari is a JDBC DataSource implementation that provides a connection pooling mechanism. Compared to other implementations, it promises to be lightweight and better performing. For an introduction to Hikari, see this article. This quick tutorial shows how we can configure a Spring… Continue Reading spring-boot-hikari