<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Bindings on Dapr Docs</title><link>https://v1-18.docs.dapr.io/developing-applications/building-blocks/bindings/</link><description>Recent content in Bindings on Dapr Docs</description><generator>Hugo</generator><language>en</language><atom:link href="https://v1-18.docs.dapr.io/developing-applications/building-blocks/bindings/index.xml" rel="self" type="application/rss+xml"/><item><title>Bindings overview</title><link>https://v1-18.docs.dapr.io/developing-applications/building-blocks/bindings/bindings-overview/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v1-18.docs.dapr.io/developing-applications/building-blocks/bindings/bindings-overview/</guid><description>&lt;p>Using Dapr&amp;rsquo;s bindings API, you can trigger your app with events coming in from external systems and interface with external systems. With the bindings API, you can:&lt;/p>
&lt;ul>
&lt;li>Avoid the complexities of connecting to and polling from messaging systems, such as queues and message buses.&lt;/li>
&lt;li>Focus on business logic, instead of the implementation details of interacting with a system.&lt;/li>
&lt;li>Keep your code free from SDKs or libraries.&lt;/li>
&lt;li>Handle retries and failure recovery.&lt;/li>
&lt;li>Switch between bindings at runtime.&lt;/li>
&lt;li>Build portable applications with environment-specific bindings set-up and no required code changes.&lt;/li>
&lt;/ul>
&lt;p>For example, with bindings, your application can respond to incoming Twilio/SMS messages without:&lt;/p></description></item><item><title>How-To: Trigger your application with input bindings</title><link>https://v1-18.docs.dapr.io/developing-applications/building-blocks/bindings/howto-triggers/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v1-18.docs.dapr.io/developing-applications/building-blocks/bindings/howto-triggers/</guid><description>&lt;p>With input bindings, you can trigger your application when an event from an external resource occurs. An external resource could be a queue, messaging pipeline, cloud-service, filesystem, etc. An optional payload and metadata may be sent with the request.&lt;/p>
&lt;p>Input bindings are ideal for event-driven processing, data pipelines, or generally reacting to events and performing further processing. Dapr input bindings allow you to:&lt;/p>
&lt;ul>
&lt;li>Receive events without including specific SDKs or libraries&lt;/li>
&lt;li>Replace bindings without changing your code&lt;/li>
&lt;li>Focus on business logic and not the event resource implementation&lt;/li>
&lt;/ul>
&lt;img src="https://v1-18.docs.dapr.io/images/howto-triggers/kafka-input-binding.png" width=1000 alt="Diagram showing bindings of example service">
&lt;p>This guide uses a Kafka binding as an example. You can find your preferred binding spec from &lt;a href="https://v1-18.docs.dapr.io/operations/components/setup-bindings/">the list of bindings components&lt;/a>. In this guide:&lt;/p></description></item><item><title>How-To: Use output bindings to interface with external resources</title><link>https://v1-18.docs.dapr.io/developing-applications/building-blocks/bindings/howto-bindings/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v1-18.docs.dapr.io/developing-applications/building-blocks/bindings/howto-bindings/</guid><description>&lt;p>With output bindings, you can invoke external resources. An optional payload and metadata can be sent with the invocation request.&lt;/p>
&lt;img src="https://v1-18.docs.dapr.io/images/howto-bindings/kafka-output-binding.png" width=1000 alt="Diagram showing bindings of example service">
&lt;p>This guide uses a Kafka binding as an example. You can find your preferred binding spec from &lt;a href="https://v1-18.docs.dapr.io/operations/components/setup-bindings/">the list of bindings components&lt;/a>. In this guide:&lt;/p>
&lt;ol>
&lt;li>The example invokes the &lt;code>/binding&lt;/code> endpoint with &lt;code>checkout&lt;/code>, the name of the binding to invoke.&lt;/li>
&lt;li>The payload goes inside the mandatory &lt;code>data&lt;/code> field, and can be any JSON serializable value.&lt;/li>
&lt;li>The &lt;code>operation&lt;/code> field tells the binding what action it needs to take. For example, &lt;a href="https://v1-18.docs.dapr.io/reference/components-reference/supported-bindings/kafka/#binding-support">the Kafka binding supports the &lt;code>create&lt;/code> operation&lt;/a>.
&lt;ul>
&lt;li>You can check &lt;a href="https://v1-18.docs.dapr.io/reference/components-reference/supported-bindings/">which operations (specific to each component) are supported for every output binding&lt;/a>.&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ol>


&lt;div class="alert alert-primary" role="alert">
&lt;h4 class="alert-heading">Note&lt;/h4>

 If you haven&amp;rsquo;t already, &lt;a href="https://v1-18.docs.dapr.io/getting-started/quickstarts/bindings-quickstart/">try out the bindings quickstart&lt;/a> for a quick walk-through on how to use the bindings API.

&lt;/div>

&lt;h2 id="create-a-binding">Create a binding&lt;/h2>
&lt;p>Create a &lt;code>binding.yaml&lt;/code> file and save to a &lt;code>components&lt;/code> sub-folder in your application directory.&lt;/p></description></item></channel></rss>