spring-cloud-stream

Spring Cloud Dataflow Custom App stuck in Deploying state

喜夏-厌秋 提交于 2020-05-01 03:58:54
问题 I created a custom Spring Cloud Stream Processor Application and deployed it as the processor step in a Source|Processor|Sink stream. Everything seems to be working fine, but my custom app shows "deploying" in the dataflow UI. I'm deploying it as a SNAPSHOT from mavenLocal if that affects anything. Am I missing something to let SCDF know the deployment was successful? 回答1: The usual culprit, in this case, is the unavailability of Boot's actuator endpoints at runtime. More specifically, it is

Spring Cloud Function - Separate routing-expression for different Consumer

泪湿孤枕 提交于 2020-04-30 07:13:23
问题 I have a service, which receives different structured messages from different message queues. Having @StreamListener conditions we can choose at every message type how that message should be handled. As an example: We receive two different types of messages, which have different header fields and values e.g. Incoming from "order" queue: Order1: { Header: {catalog:groceries} } Order2: { Header: {catalog:tools} } Incoming from "shipment" queue: Shipment1: { Header: {region:Europe} } Shipment2:

Caused by: java.lang.ClassNotFoundException: org.springframework.integration.dsl.IntegrationFlowBuilder

房东的猫 提交于 2020-04-30 06:56:08
问题 I'm working on Spring Cloud Stream using RabbitMQ using Spring Boot v2.2.6.RELEASE . Error: java.lang.IllegalStateException: Error processing condition on org.springframework.cloud.stream.config.BindingServiceConfiguration at org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:60) ~[spring-boot-autoconfigure-2.2.6.RELEASE.jar:2.2.6.RELEASE] at org.springframework.context.annotation.ConditionEvaluator.shouldSkip(ConditionEvaluator.java:108) ~

how to set concurrency (or other configurations) for ConcurrentKafkaListenerContainerFactory per StreamListener

青春壹個敷衍的年華 提交于 2020-04-18 00:49:40
问题 We have scenario where our application(spring boot, spring-cloud-stream based) listens to multiple Kafka topics (TOPIC_A with 3 partitions, TOPIC_B with 1 partition,TOPIC_C with 10 partitions) i.e. 3 @StreamListener methods. @StreamListener(TopicASink.INPUT) public void processTopicA(Message<String> msg) { logger.info("** recieved message: {} ", msg.getPayload()); // do some processing } @StreamListener(TopicBSink.INPUT) public void processTopicB(Message<String> msg) { logger.info("**

num.stream.threads creating idle threads

那年仲夏 提交于 2020-03-23 23:20:50
问题 I have a spring boot kafka stream application with 2 topics consider topics A and B.Topic A has 16 partition and Topic B has 1 partition.Consider the application is deployed in 1 instance having num.stream.threads =16. I ran kafka-consumer-groups.bat command to check how the threads are assigned to the partition in group,got the following output.Topic A and B assigned with 16 threads where 14 threads in topic B is idle. kafka-consumer-groups.bat --bootstrap-server 0.0.0.0:9092 --group <topic

num.stream.threads creating idle threads

孤街浪徒 提交于 2020-03-23 23:17:49
问题 I have a spring boot kafka stream application with 2 topics consider topics A and B.Topic A has 16 partition and Topic B has 1 partition.Consider the application is deployed in 1 instance having num.stream.threads =16. I ran kafka-consumer-groups.bat command to check how the threads are assigned to the partition in group,got the following output.Topic A and B assigned with 16 threads where 14 threads in topic B is idle. kafka-consumer-groups.bat --bootstrap-server 0.0.0.0:9092 --group <topic

Skipper https rest end point requests returning http urls

て烟熏妆下的殇ゞ 提交于 2020-03-05 03:10:29
问题 I am trying a poc with Spring cloud dataflow streams and have the the application iis running in Pivotal Cloud Foundry. Trying the same in kubernetes and the spring dataflow server dashboard is not loading.Debugged the issue and found the root cause is when the dashboard is loaded, its trying to hit the Skipper rest end point /api and this returns a response with the urls of other end points in skipper but the return urls are all in http. How can i force skipper to return https urls instead

Skipper https rest end point requests returning http urls

天涯浪子 提交于 2020-03-05 03:10:17
问题 I am trying a poc with Spring cloud dataflow streams and have the the application iis running in Pivotal Cloud Foundry. Trying the same in kubernetes and the spring dataflow server dashboard is not loading.Debugged the issue and found the root cause is when the dashboard is loaded, its trying to hit the Skipper rest end point /api and this returns a response with the urls of other end points in skipper but the return urls are all in http. How can i force skipper to return https urls instead

RabbitMQ Alternative for Local

我只是一个虾纸丫 提交于 2020-02-05 04:00:10
问题 I am providing new software design and going to use RabbitMQ as messaging bus along with Spring Cloud Stream. One of the issues is that the developers cannot install Erlang or RabbitMQ on the local machine. Spring Cloud stream do not support ActiveMQ. Is there anyway I can install queue on local machine and use that while use RabbitMQ in the unix environment? 回答1: A good option is run rabbitmq in a docker container on the local machine. You could use a rabbitmq image already published on

RabbitMQ Alternative for Local

霸气de小男生 提交于 2020-02-05 04:00:07
问题 I am providing new software design and going to use RabbitMQ as messaging bus along with Spring Cloud Stream. One of the issues is that the developers cannot install Erlang or RabbitMQ on the local machine. Spring Cloud stream do not support ActiveMQ. Is there anyway I can install queue on local machine and use that while use RabbitMQ in the unix environment? 回答1: A good option is run rabbitmq in a docker container on the local machine. You could use a rabbitmq image already published on