If a requested Microservice takes long time to respond, Zuul Api Gateway might timeout and a Gateway timeout error will take place. { “timestamp”: “2019-05-24T00:53:22.152+0000”, “status”: 504, “error”: “Gateway Timeout”, “message”: “com.netflix.zuul.exception.ZuulException: Hystrix Readed time out” } In this short blog post I am going to share with you how to make your Zuul Api…

Read More Zuul API Gateway Timeout Error

In this tutorial you will learn how to handle errors when using Hystrix Circuit breaker together with Feign client. To handle errors we will use Feign Hystrix FallbackFactory. For step-by-step video beginner lessons that demonstrate how to do Feign error handling and also how to build Microservices with Spring Boot and Spring Cloud, have a…

Read More Hystrix Circuit Breaker and Feign Error Handling

In this tutorial I am going to share with you how you can use Feign ErrorDecoder to handle errors that take place when using Feign client in Microservices communication. For step-by-step video beginner lessons that demonstrate how to do Feign error handling and also how to build Microservices with Spring Boot and Spring Cloud, have a…

Read More Feign Error Handling with ErrorDecoder

In this tutorial you will learn how to use Netflix Hystrix circuit breakers to enable your Microservices to gracefully handle situations when one of the Microservices becomes unavailable to handle a request during the inter-service communication. For step-by-step beginner video lessons that demonstrate how to use Hystrix Circuit Breaker and also how to build Microservices…

Read More Hystrix CircuitBreaker and Feign

In this tutorial I am going to share with you how to use Feign Client to send HTTP Request to another Microservice. For a step by step series of video lessons, please check this page: Spring Boot Microservices and Spring Cloud. Adding Feign to Your Project To use Feign Client in your Spring Boot application,…

Read More Feign Client to Call Another Microservice

In this tutorial you will learn you how to use Asymmetric Encryption(RSA key pair) to encrypt sensitive information in configuration properties served by Spring Cloud Config Server.  Asymmetric Encryption is a stronger encryption type than symmetric encryption(shared key) but it requires just a little bit more effort to set up because we need to generate an encryption…

Read More Spring Cloud Config – Asymmetric Encryption and Decryption

In this tutorial you will learn how to encrypt and decrypt a property value which is being served by Spring Cloud Config Server. The Config Server can use a symmetric (shared) key or an asymmetric one (RSA key pair). In this tutorial we will use symmetric key. For Asymmetric Encryption read this tutorial: Spring Cloud Config…

Read More Spring Cloud Config – Symmetric Encryption and Decryption

In this tutorial you will learn how to configure your Spring Cloud Config Server to use native file system as a backend. For a step by step series of video lessons, please check this page: Spring Boot Microservices and Spring Cloud. Create Spring Cloud Config Server To learn how to create your very first Spring Cloud…

Read More Spring Cloud Config Server – File System as a Backend

In this tutorial you will learn how to use Declarative REST Client Feign to make HTTP Requests RESTful Web Services. You can use Feign client to make HTTP Requests to a registered with Eureka Discovery Service Microservice or to an external RESTful Web Service. For a step by step series of video lessons, please check…

Read More Spring Feign Client HTTP Request Example

In this Java tutorial I am going to share with you a different ways of how to generate a random String of characters. You will learn to generate the following types of random Strings of characters: alpha-numeric String of characters of any length or of a specific length, Letters only, Numbers only. I hope you…

Read More Generate Random String in Java. Different ways.

In this Spring Boot tutorial you will learn how to implement User Authentication(User Login) functionality for your RESTful Web Service built with Spring Boot, Spring MVC, Spring Security using JWT. There is also a step-by-step video demonstration on how to do User Authentication available here. The user authentication functionality we are going to implement in…

Read More User Authentication – Spring Boot, Spring Security, JWT

In this short tutorial you will learn how to use SearchPaths to configure your Spring Cloud Config Server to discover properties files in a remote Git repository subdirectories. To learn how to configure Spring Cloud Config Server and also Spring Cloud Config Client please read this tutorial: Learn to use Spring Cloud Config Server and Spring…

Read More Spring Cloud Config Server – SearchPaths

In this tutorial you will learn how to bind nested properties from application.properties file to a Java class. Once you finish this tutorial you might also want to check: How to bind simple(not nested) properties to a Java class, and How to use @ConfigurationProperties with Spring Boot @Profile. Example of Nested Properties in a Properties File…

Read More Spring Boot Nested Properties with @ConfigurationProperties

In this tutorial you will learn how to use @ConfigurationProperties together with Spring Boot Profiles and @Profile annotation. This tutorial assumes you have a basic knowledge of how to use @ConfigurationProperties in your Spring Boot application. If you are very new to it, then please read this tutorial: Spring Boot @ConfigurationProperties Tutorial. You should also have…

Read More Using Spring Boot @ConfigurationProperties and @Profile