https://github.com/daggerok/spring-cloud-function-stream-integration
This example was prepared for one of my stackoverflow question: Functional programming model bean definition and spring-cloud-function + spring-cloud-stream integration https://stackoverflow.com/questions/56517391/functional-programming-model-bean-definition-and-spring-cloud-function-spring
https://github.com/daggerok/spring-cloud-function-stream-integration
docker httpie pip3 rabbitmq reactor spring-cloud-function spring-cloud-stream spring-cloud-stream-binder-rabbit spring-cloud-stream-rabbitmq spring-cloud-stream-reactive spring-webflux webflux
Last synced: about 2 months ago
JSON representation
This example was prepared for one of my stackoverflow question: Functional programming model bean definition and spring-cloud-function + spring-cloud-stream integration https://stackoverflow.com/questions/56517391/functional-programming-model-bean-definition-and-spring-cloud-function-spring
- Host: GitHub
- URL: https://github.com/daggerok/spring-cloud-function-stream-integration
- Owner: daggerok
- License: mit
- Created: 2019-06-09T22:26:20.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-10-20T00:58:27.000Z (almost 4 years ago)
- Last Synced: 2025-07-22T10:44:03.700Z (3 months ago)
- Topics: docker, httpie, pip3, rabbitmq, reactor, spring-cloud-function, spring-cloud-stream, spring-cloud-stream-binder-rabbit, spring-cloud-stream-rabbitmq, spring-cloud-stream-reactive, spring-webflux, webflux
- Language: Java
- Size: 65.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# spring-cloud-function-stream-integration [](https://github.com/daggerok/spring-cloud-function-stream-integration/actions/workflows/ci.yaml)
This example was prepared for one of my [stackoverflow question: Functional programming model bean definition and spring-cloud-function + spring-cloud-stream integration](https://stackoverflow.com/questions/56517391/functional-programming-model-bean-definition-and-spring-cloud-function-spring)
```bash
docker run -d --rm --name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3.7.15-management-alpine
./mvnw spring-boot:starthttp :8080 string=1
http :8080 string=2
http :8080 string=0
# or
http :8080/process string=1
http :8080/process string=2
http :8080/process string=0# and
echo '[0,1,1,2,3,5,8,13,21,34,55]' | http :8080/doubleIt
# or
curl -isS 0:8080/doubleIt -d '[0,1,1,2,3,5,8,13,21,34,55]' -H'Content-Type:application/json' ; echo# and
echo 3 | http post :8080/produceIt
# or
curl -isS 0:8080/produceIt -d 3 -H'Content-Type:application/json' ; echo# and
echo '{"integer":-123}' | http post :8080/logIt
# or
curl -isS 0:8080/logIt -d '{"integer":-123}' -H'Content-Type:application/json' ; echo./mvnw spring-boot:stop
docker stop rabbitmq
```## RTFM
* https://github.com/spring-cloud/spring-cloud-stream/blob/main/docs/src/main/asciidoc/spring-cloud-stream.adoc#sending-arbitrary-data-to-an-output-e-g-foreign-event-driven-sources