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
17
votes
1 answer

Disable Cloudformation in Spring Cloud AWS

How can I disable the Cloudformation in a spring boot app that using spring cloud AWS? I keep getting this error when running my app on amazon: ... Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate…
17
votes
3 answers

Mock an Eureka Feign Client for Unittesting

i am using spring cloud's eureka and feign to communicate between some services (lets say A and B). Now id like to unittest my service layer of a single service (A). The problem is, that this service (A) is using a feign client to request some…
17
votes
5 answers

Using Spring Boot, how do I see debug info for Zuul?

I am trying to use Zuul within my Spring Boot project. application.properties server.context-path=/${spring.application.name} zuul.routes.engine.path=/api/engine/** zuul.routes.engine.url=${engine.url} GET requests are working; however, Zuul is not…
Eric Francis
  • 23,039
  • 31
  • 88
  • 122
17
votes
1 answer

Spring Cloud: Canary Deployments with Zuul

I am getting started with Spring Cloud using Eureka and Zuul and had some questions around structuring blue/green and Canary deployments. So far, I have the basics worked out and have Eureka, Zuul, and a config server working as expected. What I am…
17
votes
7 answers

Spring Cloud - Zuul Proxy is producing a No 'Access-Control-Allow-Origin' ajax response

Startup Appplication: @SpringBootApplication @EnableZuulProxy public class ZuulServer { public static void main(String[] args) { new SpringApplicationBuilder(ZuulServer.class).web(true).run(args); } } My YAML file is like…
Given
  • 585
  • 1
  • 7
  • 14
16
votes
7 answers

Feign client and Spring retry

I have a restful service calling an external service using Spring Cloud Feign client @FeignClient(name = "external-service", configuration = FeignClientConfig.class) public interface ServiceClient { @RequestMapping(value = "/test/payments",…
16
votes
2 answers

How to implement OAuth2 "Token Exchange" with Spring Cloud Security

I would like to know if someone has an example to see how to implement "Token Exchange" technique with Spring Cloud Security (with OAuth2). Currently I have implemented "Token Relay" technique in a Microservices Environment using ZuulProxy to…
miguelfgar
  • 311
  • 1
  • 3
  • 9
16
votes
1 answer

What's the difference between zookeeper vs spring cloud config server?

What's the difference between zookeeper vs spring cloud config server? They both store configurations in server and make them available to clients. When should one be used over the other?
user321532
  • 409
  • 5
  • 14
16
votes
2 answers

Spring Cloud Consul Config over Spring Cloud Config

I'm having a real tough time with this one. We want to use Spring Cloud Consul for service discovery and my colleges are pushing the idea to use Spring Cloud Consul Config over Spring Cloud Config, which I have already previously implemented for a…
Starlton
  • 429
  • 5
  • 14
16
votes
1 answer

ZuulProxy fails with "RibbonCommand timed-out and no fallback available" when it should do failover

Short description: I'm trying to get a ZuulProxy to handle instance failover but it throws ZuulException: Forwarding error, instead of responding with a result from a working instance. Long description: My setup is one standalone Eureka Server, one…
Magnus
  • 163
  • 1
  • 1
  • 8
16
votes
1 answer

How should I configure Spring Cloud with Netflix Zuul and Eureka in a Docker contained in an EC2 instance

I am evaluating building microservices using Spring Boot and Spring Cloud (Zuul and Eureka) running in separate docker containers, deployed in separate Amazon EC2 instances. I have a simple REST service that registers with Eureka, and have…
Rob
  • 1,037
  • 1
  • 13
  • 20
16
votes
7 answers

Ribbon with Spring Cloud and Eureka: java.lang.IllegalStateException: No instances available for Samarths-MacBook-Pro.local

I am working on Spring Boot Eureka Client Application with Ribbon Load Balancer. I have two instances of the server registered with Eureka with the name "TEST". On the client side, I have the following code to fetch the server from…
16
votes
1 answer

Using spring cloud feign causes java.lang.NoClassDefFoundError: feign/Logger

I enabled my spring cloud for feignClients like this: @Configuration @EnableAutoConfiguration @RestController @EnableEurekaClient @EnableCircuitBreaker @EnableFeignClients public class SpringCloudConfigClientApplication { } But as oon as I add…
user3006967
  • 3,291
  • 10
  • 47
  • 72
15
votes
2 answers

spring-security-oauth2 vs spring-cloud-starter-oauth2

I am working on building an oAuth2 application using spring boot. However, there are various sample projects in Github using spring-security-oauth2 and spring-cloud-starter-oauth2. Do we have specific scenarios where we can use a specific jar among…
15
votes
6 answers

SpringBoot @SqsListener - not working - with Exception - TaskRejectedException

I have a AWS SQS with 5000 messages already on the Queue (Sample Message looks like this 'Hello @ 1') I created a SpringBoot Application and inside one of the Component Classes create a method to read messages from the SQS. package…
Hbargujar
  • 360
  • 2
  • 4
  • 14