streams->stream and other edits
This commit is contained in:
@@ -1,29 +1,31 @@
|
||||
Spring Cloud Streams Sink Sample
|
||||
Spring Cloud Stream Sink Sample
|
||||
=============================
|
||||
|
||||
In this sample for *Spring Cloud Streams* this sink module will receive messages from the stream and write the payload to console.
|
||||
In this *Spring Cloud Stream* sample, messages are received from a stream and the payload of each is logged to the console.
|
||||
|
||||
## Requirements
|
||||
|
||||
In order for the sample to run you will need to have installed:
|
||||
To run this sample, you will need to have installed:
|
||||
|
||||
* Java 7 or Above
|
||||
|
||||
This example requires Redis to be running on localhost.
|
||||
|
||||
## Code Tour
|
||||
|
||||
This sample is a Spring Boot application that uses Spring Cloud Streams to retrieve data from a stream and write result to the console. The sink module has 2 primary components
|
||||
This sample is a Spring Boot application that uses Spring Cloud Stream to receive messages and write each payload to the console. The sink module has 2 primary components:
|
||||
|
||||
* SinkApplication - the Spring Boot Main Application
|
||||
* LogSink - the module that receives the data from the stream and writes it out to the console
|
||||
|
||||
* SinkApplication - in which is the Spring Boot Main Application
|
||||
* LogSink - the module that receives the data from the stream and writes it out to console.
|
||||
## Building with Maven
|
||||
|
||||
Build the sample simply by executing:
|
||||
Build the sample by executing:
|
||||
|
||||
sink>$ mvn clean package
|
||||
|
||||
## Running the Sample
|
||||
|
||||
This example requires a local instance of Redis to be up an running.
|
||||
To start the sink module execute the following:
|
||||
|
||||
sink>$ java -jar target/spring-cloud-streams-sample-sink-1.0.0.BUILD-SNAPSHOT-exec.jar
|
||||
|
||||
Reference in New Issue
Block a user