Spring Cloud Config is, alongside Eureka, one of the two survivors of the original Spring Cloud stack — still maintained, still the standard answer for centralized configuration outside Kubernetes. This post is a complete rewrite of my 2020 Config Server tutorials for Spring Boot 3.x: a Config Server backed by Git (with native/filesystem mode for local development), clients using the modern spring.config.import mechanism instead of the long-gone bootstrap.properties, and runtime refresh that actually works.
Tag Archives: Spring
Spring Cloud: Exploring Spring Cloud Config Server (Native Mode)
This is a quick tutorial on Spring Cloud Config Server. In brief, Spring cloud config allows you to have applications/micro-services configuration at a centralized place. Since we are working on spring micro-services, in production we may have hundreds of micro-services running together. Now if we want to manage configuration for hundreds of those micro-services then it would be a big pain if we do it manually. Instead, we will use Spring cloud config server to manage that configuration from a central place.
TL;DR You can download whole project by clicking following link.
Continue reading Spring Cloud: Exploring Spring Cloud Config Server (Native Mode)Spring Cloud: Adding Filters in Zuul Gateway
This tutorial is the continuation of Spring Cloud: Exploring Zuul Gateway tutorial. In this tutorial, we will be exploring the functionality of filters provided by Zuul.
As discussed earlier Zuul provides various filters which we can use for request validation or processing. Let’s say if you have an incoming request and if you want to check whether the user is authenticated or not, you can use Zuul pre-filter for this. If your request is processed and if you want to encrypt the response you can use Zuul post filter. The major upside of Zuul filter is, you can manage all of your filters at a centralized location.
Zuul has provision to create following four types of filter.
prefilters run before the request is routed.routefilters can handle the actual routing of the request.postfilters run after the request has been routed.errorfilters run if an error occurs while handling the request.
Spring Cloud: Exploring Zuul Gateway
This is a quick tutorial for Spring cloud Zuul component. In this tutorial, we will explore Zuul functionality and will create a gateway to our Spring cloud environment using Zuul.
What is Zuul?
Zuul is a gateway component in Spring cloud ecosystem. It provides access to the services present in our Spring cloud from services/applications which are outside of our environment.
Zuul creates a single entry point for our application which we can use from the outside world. In our environment, we might have 100’s of services running, each one serving a special purpose. Now if we want to access those services via another network or from the internet, then exposing those 100 services will not be a great idea.
In such cases, Zuul comes handy. It provides us with a single proxy to access those services. Apart from that Zuul also provides request filters. We can use those to check/process each and every request before it hits the actual service.
TL;DR You can download whole project by clicking following link.
Continue reading Spring Cloud: Exploring Zuul GatewaySpring Cloud: Playing with Hystrix Circuit Breaker
This tutorial is a continuation of Spring Cloud: Adding Hystrix Circuit Breaker. In the previous tutorial, we had an overview of Hystrix circuit breaker and we have implemented the same in our producer application. Now in this tutorial, we will see it in action.
Continue reading Spring Cloud: Playing with Hystrix Circuit BreakerSpring Cloud: Adding Hystrix Circuit Breaker
This is a quick tutorial on Hystrix circuit break. This tutorial gives an overview of Hystrix circuit breaker component present in Spring Cloud and how we can implement it in our project.
What is Hystrix Circuit Breaker?
Hystrix circuit breaker follows the circuit breaker pattern. In layman terms, you can visualize it similar to your electrical circuit break present at your home. Firstly, Hystrix allows us to define fallback methods. Secondly, Whenever a method starts throwing errors due to any reason and it has a fallback method defined, Hystrix will invoke the fallback method rather than invoking the main method. That is it will isolate the erroneous method for time being.
TL;DR You can download whole project by clicking following link.
In this tutorial, we will be creating a spring boot application and we will be adding a fallback method using Hystrix.
Continue reading Spring Cloud: Adding Hystrix Circuit BreakerSpring Cloud OpenFeign on Spring Boot 3.x: Declarative REST Clients with Eureka and Resilience4j
Feign occupies an odd spot in 2026: the Netflix incarnation is long dead, but its community successor — Spring Cloud OpenFeign — is alive, widely deployed, and in “feature-complete” maintenance, while Spring’s own HTTP interface clients are the stated future. This rewrite of my 2020 Feign tutorial shows declarative REST clients on Spring Boot 3.x the modern way: OpenFeign with Eureka and Spring Cloud LoadBalancer, Resilience4j fallbacks, and an honest section on when to pick @HttpExchange instead.