Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Commit 2630b75

Browse files
author
odacremolbap
committed
some self revieweing
1 parent b6566a8 commit 2630b75

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

docs/guides/creatingadls.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ A [Dead Letter Sink](https://knative.dev/docs/eventing/event-delivery/) is a Kna
99

1010
In this example we are going to create a [Bridge](https://docs.triggermesh.io/concepts/) that contains a [PingSource](https://knative.dev/docs/eventing/sources/ping-source/) object that will emit an event on a regular basis to a [Broker](https://knative.dev/docs/eventing/broker/) named `demo`. A [Service](https://knative.dev/docs/serving/services/), named `event-success-capture` will subscribe to PingSource events flowing through the Broker using a [Trigger](https://knative.dev/docs/eventing/broker/triggers/).
1111

12-
The [Broker](https://knative.dev/docs/eventing/broker/) delivery options will be set to use a [Dead Letter Sink](https://knative.dev/docs/eventing/event-delivery/) so that in the case of a delivery error the event will be forwarded to another Service named `event-failure-capture` instead of being lost into the void.
12+
The Broker delivery options will be set to use a [Dead Letter Sink](https://knative.dev/docs/eventing/event-delivery/) so that in the case of a delivery error the event will be forwarded to another Service named `event-failure-capture` instead of being lost into the void.
1313

14-
We will test the bridge to make sure events are delivered to `event-success-capture`, then we will break the bridge by removing the `event-success-capture` service, in which case we expect the [Dead Letter Sink](https://knative.dev/docs/eventing/event-delivery/) to receive all events that were not delivered.
14+
![bridge DLS](../assets/images/creatingadls/bridge-diagram.png)
15+
16+
We will test the bridge to make sure events are delivered to `event-success-capture`, then we will break the bridge by removing the `event-success-capture` service, in which case we expect the Dead Letter Sink to receive all events that were not delivered.
1517

1618
## Creating a Bridge with a Dead Letter Sink
1719

@@ -57,15 +59,15 @@ spec:
5759
apiVersion: serving.knative.dev/v1
5860
kind: Service
5961
name: event-failure-capture
60-
backoffDelay: "PT0.5S" # or ISO8601 duration
61-
backoffPolicy: exponential # or linear
62+
backoffDelay: "PT0.5S" # ISO8601 duration
63+
backoffPolicy: exponential # exponential or linear
6264
retry: 2
6365
```
6466
6567
Here a Broker named `demo` is configured with the following delivery options:
6668

6769
- 2 retries on failure, backing off exponentialy with a 0.5 seconds factor. This is not the focus of this article but it is recommended to setup retries before giving up on delivery and sending to the DLS.
68-
- Dead letter sink pointing to a service named `event-failure-capture`. You can request the creation of this Broker even if the service does not exists yet.
70+
- Dead Letter Sink pointing to a service named `event-failure-capture`. Kubernetes can be requested the creation of this object even if the DLS service does not exists yet.
6971

7072

7173
### Step 2: Create the PingSource

0 commit comments

Comments
 (0)