Skip to content

springexamples/spring-cloud-stream-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-cloud-stream example

To trigger the stream:

curl localhost:8080/<some name>

e.g.:

curl -XGET http://localhost:8080/Mohammad%20Hewedy

output:

Received: Person{name='MOHAMMAD HEWEDY'}

what is happening:

http > stringSupplier > upperCase > log

  • http endpoint accept string and publish it to stringSupplier supplier, which put it in upperCase.topic destination.
  • an upperCase function, read the string from the upperCase.topic destination and convert it into person with upper case name and put it in log.topic destination.
  • a log consumer reads the person object from log.topic destination and log it to stdout.

About

playing with spring-cloud-stream

Resources

Stars

Watchers

Forks

Languages