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

Disadvantages of using eureka for Service Discovery with kubernetes

Context I am deploying a set of services that are containerised using Docker into AWS. No matter which deployment solution is chosen (e.g. raw EC2/ECS/Elastic Beanstalk/Fargate) we will face the issue of "service discovery". To name just a few of…
David
  • 7,652
  • 21
  • 60
  • 98
15
votes
2 answers

Spring Security with OAuth2 and JWT: Encoded password does not look like BCrypt

I am trying to implement a spring AuthorizationServer with JWT. I was able to produce JWT tokens and login until I added BCrypt to the mix. Now, when I am trying to login, I get "Bad credentials" from the API.…
15
votes
1 answer

Using Spring boot/cloud with Amazon AWS lambda does not inject values

I have an AWS lambda RequestHandler class which is invoked directly by AWS. Eventually I need to get it working with Spring Boot because I need it to be able to retrieve data from Spring Cloud configuration server. The problem is that the code works…
mindas
  • 26,463
  • 15
  • 97
  • 154
15
votes
1 answer

Can a Spring Cloud Feign client share interface with an Spring Web Controller?

Building an endpoint and client with Spring MVC and Feign Client (with spring cloud). I had the thought that since both ends need to have the same annotations - and that they have to be pretty much in sync. Maybe I could define them in an interface…
Kristoffer
  • 410
  • 2
  • 6
  • 16
14
votes
4 answers

Post Spring Boot 3 update - Unable to instantiate factory class [org.springframework.cloud.config.client.ConfigServerConfigDataLocationResolver]

I've updated backend service to use latest Spring Boot 3, however after update, SB application fails due to some issues with setting up deferred logs during config load. Could anyone help with the idea what might be wrong, below is the stack…
user1584564
  • 141
  • 1
  • 1
  • 4
14
votes
1 answer

What is the difference between spring-boot-starter-oauth2-client, spring-cloud-starter-oauth2 and spring-security-oauth2

I am developing a client application for client_credentials grant type flow in OAUTH2. I am not able to decide on which dependency to use in my project for this purpose among the…
14
votes
3 answers

Why bootstrap.properties is ignored by spring-cloud-starter-config?

My goal is to get the config for world-service from a config-service. The architecture: config-service with dependency spring-cloud-config-server at localhost:8888 world-service with dependency the spring-web and spring-cloud-starter-config. What…
14
votes
1 answer

Prevent spring-cloud-aws-messaging from trying to stop the queue

I'm using spring-cloud-aws-messaging in a Spring Boot project. I have SQS queue created manually in AWS. It is being used like: @SqsListener("${sqs.name.incoming}") public void listen(String message) { ... } It works fine. But when I stop my…
Kartik
  • 7,677
  • 4
  • 28
  • 50
14
votes
1 answer

SQSListener with ThreadpoolExecutor

In the below example , I am setting the max and core pool size to 1. However no messages are being processed. When I enable debug log , I am able to see the messages being pulled from SQS , but I guess it is not being processed / deleted. However…
Punter Vicky
  • 15,954
  • 56
  • 188
  • 315
14
votes
1 answer

Turbine Dashboard Is not Loading for Aggregation in Spring Cloud Microservice

I am trying to develop a spring cloud microservice using spring MVC and spring boot framework. And Eureka server , Zuul , Ribbon , hystrix and Turbine using for spring cloud. I already developed a microservice and implemented only hystrix dashboard.…
Mr.DevEng
  • 2,651
  • 14
  • 57
  • 115
14
votes
3 answers

Include common config for multiple apps in Spring Cloud Config server

I'm trying to migrate our stable of app servers to get their configuration from a Spring Cloud Config server. Each app has a {my-app}.yml file on the config server and we can use profiles (either in files named {my-app}-{profile}.yml or using…
Sonafets
  • 497
  • 1
  • 4
  • 13
14
votes
2 answers

Using SqsListener with SNS and SQS

I'm using spring-cloud-aws's SqsListener to receive AWS SNS HTTP Notifications in JSON Format from AWS's Simple Queue Service (SQS). This is the code for the listener: @SqsListener(value = "my-queue", deletionPolicy =…
msp
  • 3,272
  • 7
  • 37
  • 49
14
votes
1 answer

Difference between Ribbon circuit breaker and Hystrix

I'm giving a try to Spring Cloud and Spring Boot. It uses Netflix OSS Applications, among them there are Ribbon and Hystrix. Ribbon is a load balancer and comes with some features, one of them is a circuit breaker. Hystrix is a circuit breaker…
reos
  • 8,766
  • 6
  • 28
  • 34
14
votes
2 answers

Why don't Eureka DS Replicas Links work?

Why does the DS Replicas not work in the Spring gui? When you click on the links they try to go to http://hostname:8761/eureka/. Shouldn't the link point to http://hostname:8761/?
Brian Abston
  • 601
  • 3
  • 7
  • 15
13
votes
1 answer

What's the difference between Spring Cloud loadbalancer and Ribbon?

Our team is planning to move from Spring Cloud Netflix Ribbon to Spring Cloud LoadBalancer and using spring-cloud-kubernetes as discovery client. Using Spring Cloud Gateway instead of Zuul and Resilience4j instead of Hystrix. What are the required…
Vaibhav Atray
  • 208
  • 4
  • 14