Blog Archives

00: Create a simple REST API with Spring Boot

Q1. What is the key benefit of using Spring boot?
A1. The key benefit is that you can “build a production ready application from scratch in a matter of minutes”.

Over the years since its inception, Spring has grown to be very complex in terms of the amount of configuration an application requires.…



01 : Spring Cloud with Eureka Discovery Server Tutorial

Q1. What is Spring Cloud? A1. Spring Boot is widely used to develop MicroServices. As many organisations deploy these services on the cloud like AWS, etc you need to take…



02: Spring Cloud to register client with Eureka Discovery Server Tutorial

This extends Spring Cloud with Eureka Discovery Server Tutorial. Step 1: Go to https://start.spring.io/ to create a skeleton spring-boot application. Add Eureka Discovery Client and Server as shown below: Click…



03: Spring Cloud Config Server with Git Tutorial

Q. Why do micro services applications require a config server? A. A Config Server is a MicroServices Architecture (aka MSA) feature where all configurable parameters of Microservices are written to…



04: Spring Cloud Config Client with Git Tutorial

Q. Why do micro services applications require a config server? A. A Config Server is a MicroServices Architecture (aka MSA) feature where all configurable parameters of Microservices are written to…



05. Spring Cloud routing with Netflix’s Zuul

Q. What is Netflix’s Zuul usecase in Micro Services Architecture? A. In a typical micro service architecture you have many micro services running on different hosts and ports. The challenge…



06: Spring Cloud declarative REST client Feign

Q. What use Feign client?
A. Feign is a declarative web service client, which makes creation of web service clients a breeze.

1) Unlike a RestTemplate, Feign client acts as a load balancer. Spring Cloud integrates Netflix/ribbon and Netflix/eureka to provide a load balanced http client when using Feign.

2) Due to is declarative nature, does not require any unit tests to be written.…



07: Spring Cloud with Resilience4j CircuitBreaker

Q. What is Resilience4j?
A. Resilience4j is a fault-tolerance library implementing the Circuit Breaker pattern inspired by Netflix Hystrix, but offers a more convenient API and a number of other features like Rate Limiter to block too many frequent requests to some services, Bulkhead to limit the number of concurrent requests to a specific service, cacheing, fail retry, and time limiter.…



08: Spring boot with OpenAPI (Swagger) tutorial

This tutorial extends Create a simple REST API with Spring Boot.

Q1. What is Swagger?
A1. The OpenAPI (used to be called Swagger) automates the documentation of REST APIs. Documentation of any REST Service API is a must because

1) Consumers of the services need to know which all services are available, the signatures, and the expected input.…



800+ Java & Big Data Interview Q&As

200+ Java & Big Data Tutorials

Top