This commit is contained in:
webmak1 2022-04-09 23:17:10 +03:00
parent dfcd60c4cb
commit aed0f06587
2 changed files with 30 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# [Amigoscode, Nelson] Microservices and Distributed Systems [ENG, 2022] Kafka Part
# [Amigoscode, Nelson] Microservices and Distributed Systems [ENG, 2022]
<br/>

View File

@ -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/>
---