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

How do you allow 400 Errors to propagate when using Feign with Hystrix?

I'm building a SpringBoot microservice that calls another microservice and naturally want to use Hystrix and Feign clients, which are both included with Spring Cloud. I'm using version Camden.SR5. For any timeouts, connection failures and 50x…
peterl
  • 1,881
  • 4
  • 21
  • 34
12
votes
4 answers

Spring Cloud Feign Client @RequestParam with List parameter creates a wrong request

I have a Spring Clound Feign Client mapping defined as following @RequestMapping(method = RequestMethod.GET, value = "/search/findByIdIn") Resources get(@RequestParam("ids") List ids); when I…
12
votes
1 answer

Spring Cloud Zuul/Eureka dynamic route

I am using spring cloud eureka and spring cloud zuul proxy and i was wondering if there is any way to add dymanic zuul routes when a new service is register in eureka server or the only way to add a route is edit the application.yml file and restart…
alfespa17
  • 335
  • 1
  • 3
  • 12
12
votes
1 answer

spring-boot metrics vs spring-cloud metrics

I've been playing with metrics in spring-boot and run into a bit of confusion around how spring-cloud seems to change the behavior. A simple minimal spring-boot 1.3.3.RELEASE application with actuator and with a single…
gadams00
  • 771
  • 1
  • 10
  • 24
12
votes
2 answers

Spring Boot + Cloud | Zuul Proxy | Integration testing

When working with Spring Boot to build micro-services its very easy to write extensive and very readable integration tests and mock remote service requests with MockRestServiceServer. Is there a way to use similar approach to perform additional…
12
votes
1 answer

spring-cloud-aws not able to put files to S3 when run from EC2

I am trying to put some files in S3 bucket through my Spring Boot app using AmazonS3Client. In AWS, I created an IAM user (test_user1) and granted S3 full access rights to this user. Also in S3, I granted "s3:*" actions to this user. The same…
vijay sarathi
  • 123
  • 1
  • 4
11
votes
3 answers

Spring Boot upgrade to 2.6.0 not compatible with Spring Cloud release train

We're trying to upgrade spring boot version to 2.6.0 and faced up with "Spring Boot [2.6.0] is not compatible with this Spring Cloud release train" (when running integration tests). In additional spring-cloud.version = 2020.0.4 We're using…
AsfK
  • 3,328
  • 4
  • 36
  • 73
11
votes
5 answers

Get request body string from ServerHttpRequest / Flux

I am using spring boot version - 2.0.6.RELEASE and spring cloud version - Finchley.SR2 and i have created my custom gateway filter to modify the request body. but while converting the request body to string using Flux i am getting a empty string. i…
bhavishya singh
  • 121
  • 1
  • 1
  • 5
11
votes
3 answers

Spring Cloud Gateway or Zuul2, Which one is the right replacement for Zuul1?

Since Spring Cloud team has abandoned development of Zuul module, we are moving to Spring Cloud Gateway or Zuul2 but I believe Zuul2 needs a lot of changes in the architecture and needs big changes in the microservices(correct me if i'm wrong), can…
Kyle
  • 330
  • 1
  • 4
  • 13
11
votes
3 answers

How to set up Spring Cloud Gateway application so it can use the Service Discovery of Spring Cloud Kubernetes?

I created two Spring Boot applications which both will be deployed in a Kubernetes cluster. One of those apps will act as a gateway and therefore uses Spring Cloud Gateway as a dependency. Also I want to integrate service discovery with Spring Cloud…
11
votes
3 answers

How to make Spring Cloud Contract reset WireMock before or after each test

We are writing a Spring Boot application and use the Cloud Contract WireMock support to stub a backing service. Our test class is annotated like so: @RunWith(SpringRunner.class) @SpringBootTest(webEnvironment =…
arcimboldo
  • 121
  • 1
  • 1
  • 5
11
votes
1 answer

Netflix Zuul server - /routes endpoint not available

In this coding exercise for learning microservices, I've created a Netflix Zuul project for service routing my microservices. Sadly, the /routes endpoint does not seem to be mounted. Everything else seems to be working fine: Defining prefixes and…
Lucas T
  • 3,011
  • 6
  • 29
  • 36
11
votes
2 answers

Spring Cloud Function-suitable for REST API? How to access GET path params?

I'm new to WebFlux and Serverless. I'm trying to create a REST API as Serverless via AWS API gateway. The flow would be API Gateway --> Lambda --> DynamoDB In order to achieve the API flow, would the Spring Cloud Function be the best choice? I found…
Haran
  • 1,040
  • 2
  • 13
  • 26
11
votes
2 answers

What is Release Train Bom?

I am working on Spring cloud contract documentation and I have seen a comment in dependency from Spring cloud documentation and would like to know what exactly is this