Coder Social home page Coder Social logo

daggerok / spring-cloud-function-stream-integration Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 67 KB

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

License: MIT License

Java 100.00%
spring-cloud-function spring-cloud-stream spring-cloud-stream-rabbitmq rabbitmq docker httpie pip3 spring-cloud-stream-binder-rabbit spring-cloud-stream-reactive webflux

spring-cloud-function-stream-integration's Introduction

spring-cloud-function-stream-integration CI

This example was prepared for one of my stackoverflow question: Functional programming model bean definition and spring-cloud-function + spring-cloud-stream integration

docker run -d --rm --name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3.7.15-management-alpine
./mvnw spring-boot:start

http :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

spring-cloud-function-stream-integration's People

Contributors

daggerok avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.