From a5740071aec0320632c5f5427ccd395f9c27db86 Mon Sep 17 00:00:00 2001 From: Amulya Varote Date: Tue, 7 Dec 2021 10:56:39 -0800 Subject: [PATCH] Modified based on the review comments -3 Signed-off-by: Amulya Varote --- .../building-blocks/bindings/howto-bindings.md | 4 ++-- .../building-blocks/bindings/howto-triggers.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/daprdocs/content/en/developing-applications/building-blocks/bindings/howto-bindings.md b/daprdocs/content/en/developing-applications/building-blocks/bindings/howto-bindings.md index 6faf06a45..72ecab70e 100644 --- a/daprdocs/content/en/developing-applications/building-blocks/bindings/howto-bindings.md +++ b/daprdocs/content/en/developing-applications/building-blocks/bindings/howto-bindings.md @@ -11,7 +11,7 @@ For a complete sample showing output bindings, visit this [link](https://github. ## Example: -The below code example loosely describes an application that processes orders. In the example, there is an order processing service which has a Dapr sidecar. The order processing service uses Dapr to invoke external resources via an output binding. +The below code example loosely describes an application that processes orders. In the example, there is an order processing service which has a Dapr sidecar. The order processing service uses Dapr to invoke external resources, in this case a Kafka, via an output binding. Diagram showing bindings of example service @@ -93,7 +93,7 @@ spec: ## 2. Send an event(Output Binding) -Below are code examples that leverage Dapr SDKs for output binding. +Below are code examples that leverage Dapr SDKs to interact with an output binding. {{< tabs Dotnet Java Python Go Javascript>}} diff --git a/daprdocs/content/en/developing-applications/building-blocks/bindings/howto-triggers.md b/daprdocs/content/en/developing-applications/building-blocks/bindings/howto-triggers.md index 26ec1176c..aea179f5e 100644 --- a/daprdocs/content/en/developing-applications/building-blocks/bindings/howto-triggers.md +++ b/daprdocs/content/en/developing-applications/building-blocks/bindings/howto-triggers.md @@ -28,11 +28,11 @@ The below code example loosely describes an application that processes orders. I An input binding represents a resource that Dapr uses to read events from and push to your application. -For the purpose of this guide, you'll use a Kafka binding. You can find a list of the different binding specs [here]({{< ref setup-bindings >}}). +For the purpose of this guide, you'll use a Kafka binding. You can find a list of supported binding components [here]({{< ref setup-bindings >}}). Create a new binding component with the name of `checkout`. -Inside the `metadata` section, configure Kafka related properties such as the topic to publish the message to and the broker. +Inside the `metadata` section, configure Kafka related properties, such as the topic to publish the message to and the broker. {{< tabs "Self-Hosted (CLI)" Kubernetes >}} @@ -281,7 +281,7 @@ In order to tell Dapr that you successfully processed an event in your applicati ### Rejecting an event -In order to tell Dapr that the event was not processed correctly in your application and schedule it for redelivery and handle it gracefully using logs or exceptions. +In order to tell Dapr that the event wasn't processed correctly in your application and schedule it for redelivery, return any response different from `200 OK`. For example, a `500 Error`. ### Specifying a custom route