Skip to content

Commit 54a87a2

Browse files
committed
Update documentation
1 parent 60b81f2 commit 54a87a2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,15 @@ Access the Kafka broker container:
5050
docker exec -it broker bash
5151
```
5252

53-
Produce records of type `<String, String>` to the topic `INPUT_TOPIC`. The records represent orders, with the order number as the key and a list of items (prefixed by the quantity) as the value.
53+
Produce records of type `<String, String>` to the topic `INPUT_TOPIC`.
5454

5555
```bash
5656
kafka-console-producer --bootstrap-server localhost:9092 --topic INPUT_TOPIC --property parse.key=true --property key.separator=,
57+
```
58+
59+
The records represent orders, with the order number as the key and a list of items (prefixed by the quantity) as the value.
60+
61+
```bash
5762
> ORD1001, 2, MacBook Air, USB-C Hub
5863
> ORD1002, 3, Samsung Galaxy S24, Wireless Charger, Phone Case
5964
> ORD1003, 2, Sony WH-1000XM5 Headphones, Bluetooth Speaker
@@ -62,7 +67,6 @@ kafka-console-producer --bootstrap-server localhost:9092 --topic INPUT_TOPIC --p
6267
You can trigger processing exceptions by producing a record with an incorrect format:
6368

6469
```bash
65-
kafka-console-producer --bootstrap-server localhost:9092 --topic INPUT_TOPIC --property parse.key=true --property key.separator=,
6670
> ORD1001, MacBook Air, USB-C Hub # Missing quantity
6771
> ORD1002, 3 # Missing items
6872
```

0 commit comments

Comments
 (0)