2
votes

I am thinking of using spring-cloud-stream to building message-driven micro-service application using RabbitMQ as the broker.

I see that spring-cloud-stream is built on top of Spring-Integration(SI) and SI provides spring-integration-scripting to execute python scripts. But I don't know how to hook this up in spring-cloud-stream.

So what I want to know is when a message arrives on a queue, how can I execute a python script in turn and get the output of the script?

Any code and config example would be helpful.

Hope someone can help.

Thanks GM

1

1 Answers

1
votes

For this purpose Spring Cloud Stream provides particular Processor Application.

You can just register it into your Spring Cloud Data Flow and configure it with desired script.