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
43
votes
8 answers

Using Spring Cloud Config without Git repo

Is it possible to use Spring Cloud Config without using any Git repo at all? I'm trying to test it with a local directory with this in application.properties: spring.cloud.config.server.git.uri=file://${user.dir}/src/main/resources/config-repo But I…
Turar
  • 1,511
  • 5
  • 17
  • 27
42
votes
3 answers

Eureka never unregisters a service

I'm currently facing an issue where Eureka does not unregister a registered service. I've pulled the Eureka server example straight from git hub and made only one change, eureka.enableSelfPreservation = false. My application.yml looks like…
lp1776
  • 1,141
  • 1
  • 11
  • 19
42
votes
3 answers

Can I configure a @FeignClient url using a properties/yml file?

My goal is to create a strategy of different steps to get from a point-to-point communication between 2 components to a "full blown netflix" style of communication using eureka, ribbon, hystrix. With each iteration I want to add more while I try to…
Freek van Gool
  • 423
  • 1
  • 4
  • 6
41
votes
5 answers

Spring Cloud Config Client Without Spring Boot

We have an existing spring web app deployed as a WAR file into Amazon Elastic Beanstalk. Currently we load properties files as http resources to give us a single source of property placeholder config resolution. Im investigating replacing this with…
David Geary
  • 1,756
  • 2
  • 14
  • 23
40
votes
1 answer

Spring @EnableResourceServer vs @EnableOAuth2Sso

Most of the tutorials I've read so far uses @EnableOAuth2Sso instead of @EnableResourceServer on the API gateway. What are the differences? What the OAuth2Sso does in contrast? Details: I'm implementing a security/infra architecture for spring-based…
39
votes
11 answers

Spring Cloud AWS SQS fails to connect to service endpoint locally

I'm trying to use Spring Cloud's AWS SQS in a project I'm working on. At this time, I'm only running the application locally on my dev machine. Thus, what I want is to connect to the SQS on AWS without having to deploy my app to an EC2…
Carven
  • 14,988
  • 29
  • 118
  • 161
39
votes
2 answers

Zuul - Api Gateway Authentication

I want to introduce Zuul through Spring Cloud as an API Gateway in front of a few services. I have some design doubts around Authentication. The Authentication would be handled by Spring Security, which comes before Zuul in the servlet filter…
Adrian Ivan
  • 545
  • 1
  • 5
  • 11
37
votes
1 answer

Eureka Server: How to achieve high availability

I'm new to spring cloud. I've read this doc and it says the client application must specify a service url: eureka: client: serviceUrl: defaultZone: http://localhost:8761/eureka/ But what if localhost:8761 goes down?
Neo
  • 2,196
  • 5
  • 32
  • 58
37
votes
2 answers

Spring Cloud or Spring Boot? what is right spring project for developing Biz API's?

We are trying to build a new Business API layer in between UI and applications/services. Which project in spring is best and will serve the needs for developing Biz Api's with restful services? Is it Spring Cloud or Spring Boot?
SpringForLiving
  • 599
  • 2
  • 5
  • 12
36
votes
2 answers

Unable to use Spring cloud to connect with AWS SES

I have made a very simple maven project using Spring Boot. I am trying to connect with AWS SES using Spring cloud. While running the project, I am getting following error: No valid instance id defined Caused by:…
Abhinav
  • 3,322
  • 9
  • 47
  • 63
36
votes
1 answer

How to config multiple Eureka Servers from client in Spring Cloud

From the spring doc, I see we can have peer eureka server together, so for Eureka1, in application.yml, I can have: spring: profiles: peer1 eureka: instance: hostname: peer1 client: serviceUrl: defaultZone:…
user3006967
  • 3,291
  • 10
  • 47
  • 72
34
votes
4 answers

Feign Client with Spring Boot: RequestParam.value() was empty on parameter 0

I created a simple Feign Client with Spring Boot like this: @FeignClient("spring-cloud-eureka-client") public interface GreetingClient { @RequestMapping("/greeting") String greeting(@RequestParam String name); } But when I try just to start…
Igorock
  • 2,691
  • 6
  • 28
  • 39
31
votes
9 answers

bean creation error when starting spring boot application

When i try to run my spring boot application i get this Exception: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configurationPropertiesBeans' defined in class path…
NyeSass
  • 373
  • 1
  • 4
  • 10
30
votes
4 answers

Understanding Spring Cloud Release Versions

Spring folks do a great job of releasing lots of quality projects. One of them we have been using is Spring Cloud and its various sub-projects. One aspect that is really confusing to me is Spring Cloud version names. For ex., if you goto Spring…
singularity
  • 1,057
  • 2
  • 10
  • 20
30
votes
6 answers

Cannot disable Spring Cloud Config via spring.cloud.config.enabled:false

Let me preface this by saying that I'm not using Spring Cloud Config directly, it is transitive via Spring Cloud Hystrix starter. When only using @EnableHystrix, Spring Cloud also tries to locate a configuration server, expectedly unsuccessfully,…
bvulaj
  • 5,023
  • 5
  • 31
  • 45