Questions tagged [spring-cloud]

Spring Cloud provides tools to quickly build common patterns in distributed systems (e.g. configuration management, service discovery, circuit breaker, intelligent routing, micro-proxy, control bus, global locks, leadership election, distributed sessions). Coordination of these systems leads to boiler plate patterns, and using Spring Cloud you can quickly create applications that implement those patterns.

Spring Cloud provides tools for developers to quickly build some of the common patterns in distributed systems (e.g. configuration management, service discovery, circuit breakers, intelligent routing, micro-proxy, control bus, one-time tokens, global locks, leadership election, distributed sessions, cluster state). Coordination of distributed systems leads to boiler plate patterns, and using Spring Cloud developers can quickly stand up services and applications that implement those patterns. They will work well in any distributed environment, including the developer's own laptop, bare metal data centres, and managed platforms such as Cloud Foundry.

5046 questions
24
votes
2 answers

Spring Cloud: How to use Feign without Ribbon

I would like to use Feign without client-side loadbalancer Ribbon because I don't want to run Eureka, which would need to be distributed and highly available. Instead internal ELBs with internal DNS names managed by Route53 will do just…
Konrad Hosemann
  • 251
  • 1
  • 2
  • 5
24
votes
11 answers

Spring Cloud Configuration Server not working with local properties file

I have been playing around with the Spring Cloud project on github located here: https://github.com/spring-cloud/spring-cloud-config However I have been running into some problems getting it to read a local properties file instead of pulling the…
user3270760
  • 1,444
  • 5
  • 23
  • 45
23
votes
3 answers

How to Secure Spring Cloud Config Server

I understand that a Spring Cloud Config Server can be protected using an user name and password , which has to be provided by the accessing clients. How can i prevent the clients from storing these user name and password as clear text in the…
yathirigan
  • 5,619
  • 22
  • 66
  • 104
22
votes
4 answers

SpringCloudGateway - Log incoming request url and corresponding route URI

I am new to spring cloud gateway, what I want is to log incoming request to corresponding route url, For e.g. if I have following route config: - id: route1 uri: http://localhost:8585/ predicates: - Path=/foo/** …
JavaCodeNet
  • 1,115
  • 1
  • 15
  • 21
22
votes
2 answers

Spring Cloud @SqsListener MessageConversionException: Cannot convert from [java.lang.String] for GenericMessage

I'm seeing the following exception when I try to consume an SQS message: org.springframework.messaging.converter.MessageConversionException: Cannot convert from [java.lang.String] to [com.example.demo.Foo] for GenericMessage [payload={},…
Joe Stepowski
  • 656
  • 1
  • 6
  • 8
22
votes
8 answers

bootstrap.yml not loading in Spring Boot 2

I'm experiencing a problem when starting a spring boot client application that needs to connect to the configuration server. The bootstrap.yml file is being ignored Configuration Server - This works! server: port: 8888 spring: application: …
Renan Lalier
  • 671
  • 2
  • 7
  • 13
22
votes
5 answers

How to set custom Jackson ObjectMapper with Spring Cloud Netflix Feign

I'm running into a scenario where I need to define a one-off @FeignClient for a third party API. In this client I'd like to use a custom Jackson ObjectMapper that differs from my @Primary one. I know it is possible to override spring's feign…
Newbie
  • 7,031
  • 9
  • 60
  • 85
22
votes
2 answers

Spring Boot + Eureka Server + Hystrix with Turbine: empty turbine.stream

I'm trying to run Spring Boot (with Spring Cloud) + Eureka Server + Hystrix Dashboard and Turbine stream, but I run into a problem I couldn't find any solution so far. I use Spring Boot 1.2.1.RELEASE and Spring Cloud 1.0.0.RC2. Here is what I…
Szymon Stepniak
  • 40,216
  • 10
  • 104
  • 131
20
votes
4 answers

Gateway timeout with Spring cloud gateway and Nginx as reverse proxy

I created an API gateway for my application and it will act as a front controller for other microservices. In my production setup I use Nginx as a reverse proxy for my gateway The API gateway is running on port 8080 Nginx configured as…
Nitin
  • 2,701
  • 2
  • 30
  • 60
20
votes
2 answers

Differences between netflix.feign & openfeign

Introduction I recently used netflix feign along with ribbon which was quite useful. An Example of this is: @FeignClient(name = "ldap-proxy") public interface LdapProxyClient { @RequestMapping(path = "/ldap-proxy/v1/users/{userNameOrEMail}",…
Menelaos
  • 23,508
  • 18
  • 90
  • 155
20
votes
1 answer

Set profile on bootstrap.yml in spring cloud to target different config server

I use docker compose to run all my micro services. For each service I give it a short hostname. version: '2' services: config: image: springbox-config-server restart: always ports: - "8890:8890" discovery: image:…
Hui Wang
  • 1,923
  • 3
  • 19
  • 27
20
votes
3 answers

Can Zuul Edge Server be used without Eureka / Ribbon

We have an infrastructure with service discovery and load balancing (i.e. server side with STM and weblogic cluster). Now we are in the process of refactoring into micro-services. We would need an API gateway which does basic routing to other…
Fahim Farook
  • 1,482
  • 2
  • 14
  • 38
20
votes
1 answer

How to route in between microservices using Spring Cloud & Netflix OSS

During our development of microservices using Spring Cloud, we started out using Zuul as a proxy for any connection from the outside to microservices, and for any microservice needing to contact another microservice. After some time we made the…
19
votes
8 answers

Spring Gateway Request blocked by CORS (No Acces0Control-Allow-Orgin header)

I have a Angular frontend, spring cloud gateway and a spring web service. When I try to send GET/POST data to the spring web service through the gateway I get the following error: CORS error. When sending the data directly to the web service it…
Kyle Van Raay
  • 228
  • 1
  • 2
  • 11
19
votes
7 answers

com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection refused: connect in Spring Boot

I am developing code from http://www.javainuse.com/spring/spring-cloud-netflix-zuul-tutorial, no customization yet. I keep getting the error mentioned below. So, to avoid this error I added the following in application.properties…
Jeff Cook
  • 7,956
  • 36
  • 115
  • 186