spring-cloud-stream

Error to serialize message when sending to kafka topic

[亡魂溺海] 提交于 2019-12-11 02:06:12
问题 i need to test a message, which contains headers, so i need to use MessageBuilder, but I can not serialize. I tried adding the serialization settings on the producer props but it did not work. Can someone help me? this error: org.apache.kafka.common.errors.SerializationException: Can't convert value of class org.springframework.messaging.support.GenericMessage to class org.apache.kafka.common.serialization.StringSerializer specified in value.serializer My test class: public class

How to aggregate hystrix metrics with turbine-stream and kafka when using spring cloud?

社会主义新天地 提交于 2019-12-11 01:18:44
问题 When I aggregate hystrix metrics in clusters with turbine when using spring cloud stream and kafka stream. I encountered the following error: 2017-03-07 16:54:57.519 INFO 12808 --- [o-eventloop-3-1] o.s.c.n.t.s.TurbineStreamConfiguration : SSE Request Received 2017-03-07 16:54:57.519 INFO 12808 --- [o-eventloop-3-2] o.s.c.n.t.s.TurbineStreamConfiguration : SSE Request Received 2017-03-07 16:55:04.121 INFO 12808 --- [o-eventloop-3-3] o.s.c.n.t.s.TurbineStreamConfiguration : Unsubscribing

why can't spring find the @Source bean channel created by spring cloud stream?

佐手、 提交于 2019-12-10 22:57:40
问题 I'm trying to use Spring Cloud Stream to publish and consume Kafka messages. I've been working off of the documentation here on Accessing Bound Channels. I'm trying to use a custom name on the channel for my topic, so I have a @Qualifier when I'm trying to inject it, but spring can't find the relevant bean. It says "For each bound interface, Spring Cloud Stream will generate a bean that implements the interface", but the auto-wiring isn't working. The error I'm getting is "Parameter 0 of

Spring Cloud Stream and RabbitMQ health check

半世苍凉 提交于 2019-12-10 16:59:44
问题 I have a simple Spring Boot application using Spring Cloud Stream Rabbit and Eureka Discovery Client. The application works fine together with Eureka Server, and the messaging over RabbitMQ is also working. But if I spin up a Spring Boot Admin Server, the application starts logging health check failures: 2017-06-21 19:47:57.352 INFO 11416 --- [trap-executor-0] c.n.d.s.r.aws.ConfigClusterResolver : Resolving eureka endpoints via configuration 2017-06-21 19:51:25.047 INFO 11416 --- [nio-8303

Spring Cloud Streams RabbitMQ multi-binder vs the Shovel Plugin/Application

最后都变了- 提交于 2019-12-10 11:46:17
问题 Let's consider two systems. Each of the systems uses a dedicated messaging broker for communication between its micro-services. We want to communicate these two systems using Spring Cloud Stream. Case A Both the systems use RabbitMQ as a message broker. Which approach is better: Multi-binder ( spring.cloud.stream.binders ) allows connecting to two different administrative domains. "Multi-binder configuration the environment.spring.rabbitmq forces us to create a whole new child application

Spring Cloud Stream App VS Spring Cloud Task App

情到浓时终转凉″ 提交于 2019-12-10 11:06:13
问题 I'm exploring the the SCDF for orchestrating the existing batch task for my system. I noticed that the SC Stream App Starters already provides some OOTB ready to use streaming applications, which suits my use case of: Extracting xml file from FTP -> the ftp source Customize transformation Upload the transformed xml file to another FTP -> the ftp sink But, my system only requires the above mentioned batch job to be executed at every 10 minutes interval. Implementing it using streams app is

How Spring Cloud Config Server PUSH plain text files to Config Client Application?

最后都变了- 提交于 2019-12-08 08:52:50
问题 What I have implemented so far are: Spring Cloud Config Server with "native" repo. spring.profiles.active: native spring.cloud.config.server.native.searchLocations: file:/path/to/config-repo Config Server is pushing notification to Config Client App through RabbitMQ, as http://cloud.spring.io/spring-cloud-config/spring-cloud-config.html#_push_notifications_and_spring_cloud_bus Config Client App has @RefreshScope annotated on Service bean. So /config-repo has 3 files - application.yaml, client

spring.cloud.stream.kafka.binder.headers not working as expected

白昼怎懂夜的黑 提交于 2019-12-07 18:28:15
问题 I am trying to use spring.cloud.stream.kafka.binder.headers to transport a custom header that I am setting based upon a previous question. I have read in the documentation where... spring.cloud.stream.kafka.binder.headers The list of custom headers that will be transported by the binder. Default: empty. seems to suggest that setting a list (comma separated?) will cause a custom header to get transported in the Message<> , but the header is lost as soon as the kafka write is completed. My

How Spring Cloud Config Server PUSH plain text files to Config Client Application?

旧街凉风 提交于 2019-12-06 15:18:09
What I have implemented so far are: Spring Cloud Config Server with "native" repo. spring.profiles.active: native spring.cloud.config.server.native.searchLocations: file:/path/to/config-repo Config Server is pushing notification to Config Client App through RabbitMQ, as http://cloud.spring.io/spring-cloud-config/spring-cloud-config.html#_push_notifications_and_spring_cloud_bus Config Client App has @RefreshScope annotated on Service bean. So /config-repo has 3 files - application.yaml, client.yaml and client.json All yaml properties changes will be auto reloaded by Config Client App for sure.

@MessagingGateway, Spring Cloud Stream, and error handling across both

此生再无相见时 提交于 2019-12-06 14:29:26
问题 Regarding the answer posted for How can @MessagingGateway be configured with Spring Cloud Stream MessageChannels?, what is the correct way to handle errors at the @MessagingGateway that can be returned from Spring Cloud Stream services? To recap, I have a @MessagingGateway that provides synchronous access to asynchronous services built using Spring Cloud Stream. When an error occurs within my Spring Cloud Stream service layer, I create an error response and send it through a