Skip to content

Commit 2de6415

Browse files
authored
Update README.md
1 parent 1e3bb3f commit 2de6415

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

dsl/README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Processing Error Handling with DSL
1+
# Handling Processing Errors in Kafka Streams DSL
22

3-
This module demonstrates how the processing exception handler can be used to handle processing exceptions in Kafka Streams DSL operations.
3+
This module demonstrates how to use the processing exception handler to manage processing errors in Kafka Streams DSL operations.
44

55
## Run
66

@@ -24,11 +24,13 @@ This will start the following services in Docker:
2424

2525
## Try it
2626

27-
From Control Center running on http://localhost:9021, you can produce `DeliveryBooked` events to the topic `delivery_booked_topic`.
27+
From Control Center running at http://localhost:9021, you can produce `DeliveryBooked` events to the `delivery_booked_topic` topic.
28+
29+
### Example Record
2830

2931
Key:
3032

31-
```
33+
```json
3234
"DEL12345"
3335
```
3436

@@ -43,14 +45,14 @@ Value:
4345
}
4446
```
4547

46-
To trigger the processing exception handler, you can produce a record with an incorrect format:
48+
### Triggering an Exception
4749

48-
Value with missing `numberOfTires`, triggering a `NullPointerException`:
50+
To trigger the processing exception handler, produce a record with missing `numberOfTires`, which will result in a `NullPointerException`:
4951

5052
```json
5153
{
5254
"deliveryId": "DEL12345",
5355
"truckId": "TRK56789",
5456
"destination": "Bordeaux"
5557
}
56-
```
58+
```

0 commit comments

Comments
 (0)