Upd
This commit is contained in:
parent
dfcd60c4cb
commit
aed0f06587
@ -1,4 +1,4 @@
|
||||
# [Amigoscode, Nelson] Microservices and Distributed Systems [ENG, 2022] Kafka Part
|
||||
# [Amigoscode, Nelson] Microservices and Distributed Systems [ENG, 2022]
|
||||
|
||||
<br/>
|
||||
|
||||
|
@ -16,6 +16,17 @@
|
||||
![Application](/img/pic02.png?raw=true)
|
||||
|
||||
|
||||
<br/>
|
||||
|
||||
```
|
||||
// Receive a Message
|
||||
$ kafka-console-consumer.sh \
|
||||
--bootstrap-server localhost:9092 \
|
||||
--topic amigoscode \
|
||||
--from-beginning
|
||||
|
||||
^C
|
||||
```
|
||||
|
||||
<br/>
|
||||
|
||||
@ -31,6 +42,24 @@ $ curl \
|
||||
| jq
|
||||
```
|
||||
|
||||
<br/>
|
||||
|
||||
**But something not working! Looks with Data Format on Reading from Kafka**
|
||||
|
||||
|
||||
<br/>
|
||||
|
||||
```
|
||||
$ kafka-console-consumer.sh \
|
||||
> --bootstrap-server localhost:9092 \
|
||||
> --topic amigoscode \
|
||||
> --from-beginning
|
||||
{"message":"Hooray Amigoscode","created":[2022,4,9,21,20,9,460259917]}
|
||||
{"message":"Hooray Amigoscode","created":[2022,4,9,21,22,22,43521562]}
|
||||
{"message":"Hooray Amigoscode","created":[2022,4,9,21,22,33,600139003]}
|
||||
{"message":"Hooray Amigoscode","created":[2022,4,9,21,22,41,357558500]}
|
||||
```
|
||||
|
||||
<br/><br/>
|
||||
|
||||
---
|
||||
|
Loading…
Reference in New Issue
Block a user