<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Camel on Antoine Debuisson</title><link>https://blog-39aaf1.gitlab.io/tags/camel/</link><description>Recent content in Camel on Antoine Debuisson</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 11 Mar 2019 00:00:00 +0000</lastBuildDate><atom:link href="https://blog-39aaf1.gitlab.io/tags/camel/index.xml" rel="self" type="application/rss+xml"/><item><title>Reliable Dead Letter Queue (DLQ) using Apache Camel and Kafka</title><link>https://blog-39aaf1.gitlab.io/posts/reliable-dead-letter-queue-dlq-using-apache-camel-and-kafka/</link><pubDate>Mon, 11 Mar 2019 00:00:00 +0000</pubDate><guid>https://blog-39aaf1.gitlab.io/posts/reliable-dead-letter-queue-dlq-using-apache-camel-and-kafka/</guid><description>&lt;p&gt;By default, the Kafka consumer will use auto commit, where the offset will be committed automatically in the background using a given interval.&lt;/p&gt;
&lt;h2 id="enable-manual-commit"&gt;Enable Manual Commit &lt;a href="#enable-manual-commit" class="anchor"&gt;🔗&lt;/a&gt;&lt;/h2&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-properties" data-lang="properties"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#b44"&gt;camel.component.kafka.auto-commit-enable&lt;/span&gt;&lt;span style="color:#666"&gt;=&lt;/span&gt;&lt;span style="color:#b44"&gt;false&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#b44"&gt;camel.component.kafka.allow-manual-commit&lt;/span&gt;&lt;span style="color:#666"&gt;=&lt;/span&gt;&lt;span style="color:#b44"&gt;true&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The Kafka consumer periodically fetch a set of records and feeds them to the route.
If an exception is thrown while processing the current message at offset N.
&lt;code&gt;camel.component.kafka.break-on-first-error=true&lt;/code&gt; is required to stop processing further messages.
Otherwise the next message would be processed and offset N + 1 would be commited.&lt;/p&gt;</description></item></channel></rss>