bootstrap.yml configuration not processed anymore with Spring Cloud 2020.0

As pointed put by Nicoll, With Spring Cloud Vault 3.0 and Spring Boot 2.4, the bootstrap context initialization (bootstrap.yml, bootstrap.properties) of property sources was deprecated. This can be fixed in one of the 2 ways Use Spring Boot 2.4.0 Config Data API to import configuration from Vault (Preferred) Legacy Processing: Enable the bootstrap context either … Read more

What are the advantages and disadvantages of using feign over RestTemplate

Feign allows you to abstract the mechanics of calling a REST service. Once you configure and annotate the Feign interface, you can call a REST service by making a simple Java function call. The actual implementation of making a REST call is handled at runtime by Feign. This means that the implementation can be configured … Read more

What is Eureka service, Eureka Client, Eureka instance and Eureka server

Definitions Eureka Server The discovery server. It contains a registry of services and a REST api that can be used to register a service, deregister a service, and discover the location of other services. Eureka Service Any application that can be found in the Eureka Server’s registry and is discoverable by others. A service has … Read more

Is there a compatibility matrix of Spring-boot and Spring-cloud?

Updated in January 2023 Spring Cloud release train Spring Boot compatibility Compatibility Matrix Spring Cloud Spring Boot 2022.0.x aka Kilburn 3.0.x 2021.0.3+ aka Jubilee 2.6.x, 2.7.x 2021.0.x aka Jubilee 2.6.x 2020.0.3+ aka Ilford 2.4.x, 2.5.x 2020.0.x aka Ilford 2.4.x ⚠ Below Spring Cloud versions have all reached end of life status and are no longer … Read more

Understanding Spring Cloud Eureka Server self preservation and renew threshold

I got the same question as @codependent met, I googled a lot and did some experiment, here I come to contribute some knowledge about how Eureka server and instance work. Every instance needs to renew its lease to Eureka Server with frequency of one time per 30 seconds, which can be define in eureka.instance.leaseRenewalIntervalInSeconds. Renews … Read more

How is Spring Cloud Gateway different from Zuul?

I am the author of spring cloud gateway. Zuul is built on servlet 2.5 (works with 3.x), using blocking APIs. It doesn’t support any long lived connections, like websockets. Gateway is built on Spring Framework 5, Project Reactor and Spring Boot 2 using non-blocking APIs. Websockets are supported and it’s a much better developer experience … Read more