updating scs-099 tutorial
@@ -2,7 +2,9 @@
|
||||
|
||||
## Producer Consumer
|
||||
|
||||
A simple Example of an Event Driven Flow by the help of **SPRING CLOUD STREAM KAFKA**
|
||||
A simple example for an Event Driven Flow by the help of **SPRING CLOUD STREAM KAFKA**
|
||||
|
||||

|
||||
|
||||
##### properties
|
||||
|
||||
@@ -12,8 +14,6 @@ A simple Example of an Event Driven Flow by the help of **SPRING CLOUD STREAM KA
|
||||
|
||||
The Docker-compose file contains: single kafka and zookeeper. just simply run the following command
|
||||
|
||||

|
||||
|
||||
```shell
|
||||
docker-compose up -d
|
||||
```
|
||||
|
||||
|
Before Width: | Height: | Size: 119 KiB After Width: | Height: | Size: 119 KiB |
|
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 33 KiB |
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 33 KiB |
@@ -41,10 +41,7 @@ public class PobSubService {
|
||||
String message = String.format("TestString of %s - %s", counter, value);
|
||||
|
||||
//here is out message publisher in the given channel into topic "scs-099.order"
|
||||
myBinder.orderOut()
|
||||
.send(MessageBuilder.withPayload(message)
|
||||
.setHeader(MessageHeaders.CONTENT_TYPE, MimeTypeUtils.APPLICATION_JSON)
|
||||
.build());
|
||||
myBinder.orderOut().send(MessageBuilder.withPayload(message).build());
|
||||
|
||||
//to show what we have produced in kafka ("WARN" to show in different color on the console)
|
||||
log.warn("message produced: {}", message);
|
||||
|
||||
@@ -17,7 +17,7 @@ spring:
|
||||
cloud.stream.bindings:
|
||||
order-out.producer.partition-count: 10
|
||||
order-in:
|
||||
group: ${spring.application.name}-shipping-group
|
||||
group: ${spring.application.name}-group
|
||||
consumer.concurrency: 1
|
||||
|
||||
cloud.stream.kafka.binder:
|
||||
@@ -31,7 +31,7 @@ spring:
|
||||
cloud.stream.bindings:
|
||||
order-out.producer.partition-count: 10
|
||||
order-in:
|
||||
group: ${spring.application.name}-shipping-group
|
||||
group: ${spring.application.name}-group
|
||||
consumer.concurrency: 3
|
||||
|
||||
cloud.stream.kafka.binder:
|
||||
|
||||