<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Daniel Schierbeck on Medium]]></title>
        <description><![CDATA[Stories by Daniel Schierbeck on Medium]]></description>
        <link>https://medium.com/@dasch?source=rss-b7e4b878038c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Hy1_Inp77Xbrmbfq.jpeg</url>
            <title>Stories by Daniel Schierbeck on Medium</title>
            <link>https://medium.com/@dasch?source=rss-b7e4b878038c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 19:49:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dasch/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Racecar v2: A New Foundation]]></title>
            <link>https://zendesk.engineering/racecar-v2-a-new-foundation-1932b00aafc1?source=rss-b7e4b878038c------2</link>
            <guid isPermaLink="false">https://medium.com/p/1932b00aafc1</guid>
            <category><![CDATA[kafka]]></category>
            <category><![CDATA[ruby]]></category>
            <dc:creator><![CDATA[Daniel Schierbeck]]></dc:creator>
            <pubDate>Thu, 17 Sep 2020 01:03:04 GMT</pubDate>
            <atom:updated>2020-09-17T01:03:04.594Z</atom:updated>
            <content:encoded><![CDATA[<p><em>tl;dr: Racecar v2 has switched to using rdkafka-ruby rather than ruby-kafka as the underlying Kafka client library.</em></p><p>It’s been three years since we <a href="https://medium.com/zendesk-engineering/introducing-racecar-fdb5178bcafb">introduced Racecar</a>, a simple framework for building Kafka consumer applications that worked seamlessly with or without Ruby on Rails. With <a href="https://github.com/zendesk/racecar">Racecar</a>, building a consumer application for processing messages in Kafka topics was as simple as adding a file to your existing application directory structure, e.g.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/efac45571196f06633ae12c7dfbfc519/href">https://medium.com/media/efac45571196f06633ae12c7dfbfc519/href</a></iframe><p>Racecar has always been focused on being an approachable, easy to learn, easy to operate framework for Ruby and Rails application developers, exposing just enough of the power of Kafka to be useful to the vast majority of users while shielding you from most of the complexity of the underlying technology. In fact, Racecar was developed in order to streamline and standardize the way we wrote, deployed, and operated Kafka consumers in Ruby at Zendesk. We had already developed <a href="https://github.com/zendesk/ruby-kafka">ruby-kafka</a>, the underlying client library that interacts with Kafka using its wire protocol, but realized that we needed a higher level abstraction.</p><p>In the years that have passed since we first created ruby-kafka in 2016 there has been an explosion of activity in the Kafka ecosystem, and the development of Kafka itself has accelerated significantly. The pace of change is now so fast that it has become infeasible to keep ruby-kafka up to date with the latest innovations.</p><p>At the same time, <a href="https://github.com/edenhill/librdkafka">librdkafka </a>has emerged as the de-facto low-level C Kafka client library, and it is now used under the hood by a significant number of language-specific client libraries. Confluent — the corporate backer of Kafka — itself contributes to its development, and new features are added much more quickly than they can be in ruby-kafka.</p><p><a href="https://github.com/appsignal/rdkafka-ruby">rdkafka-ruby</a> has implemented Ruby bindings for this C library, enabling Ruby developers to write Kafka applications utilizing the power and features of librdkafka. However, the exposed API is still low-level.</p><p>With all this in mind the decision was made to port Racecar to work on top of rdkafka-ruby instead of ruby-kafka, providing the same accessible API and standardized operations as before, but now with a faster, more stable, and better maintained engine under the hood.</p><p>Racecar v2 should be a seamless upgrade. Check out the <a href="https://github.com/zendesk/racecar">repository </a>for documentation, ask questions in our <a href="https://github.com/zendesk/racecar/discussions">discussions</a>, or file any bug in the <a href="https://github.com/zendesk/racecar/issues">issue tracker</a>.</p><p>So what will happen with ruby-kafka? For the time being it is still being maintained, but we have no ambition of keeping up with all the changes being shipped in Kafka. Bug and security fixes, as well as smaller features, are still being contributed by a sizable developer community. We have every intention of supporting this community indefinitely, although in time we expect most users will transition to rdkafka-ruby based libraries and frameworks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N5BcaCmoX0xT752MED_17w.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1932b00aafc1" width="1" height="1" alt=""><hr><p><a href="https://zendesk.engineering/racecar-v2-a-new-foundation-1932b00aafc1">Racecar v2: A New Foundation</a> was originally published in <a href="https://zendesk.engineering/">Zendesk Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Say Hi to Delivery Boy!]]></title>
            <link>https://zendesk.engineering/say-hi-to-delivery-boy-f32ef0724f8b?source=rss-b7e4b878038c------2</link>
            <guid isPermaLink="false">https://medium.com/p/f32ef0724f8b</guid>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[kafka]]></category>
            <dc:creator><![CDATA[Daniel Schierbeck]]></dc:creator>
            <pubDate>Wed, 06 Sep 2017 00:05:40 GMT</pubDate>
            <atom:updated>2017-09-06T00:05:40.985Z</atom:updated>
            <content:encoded><![CDATA[<h4>A simple, convention-based library for publishing messages to Kafka from Rails.</h4><p>Hot off the heels of releasing <a href="https://github.com/zendesk/racecar">Racecar</a>, our easy-to-use framework for running <a href="https://kafka.apache.org/">Kafka</a> consumers in Ruby, we’re ready to release yet another Kafka-related library!</p><p>This time, it’s all about message <em>delivery</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*i9S3Z1YySN3bM0hmffihDA.jpeg" /></figure><p>Up until now, if you wanted to produce messages to Kafka from a Rails application, you’d need to write some boilerplate code: instantiating the <a href="https://github.com/zendesk/ruby-kafka">ruby-kafka</a> client with your desired configuration, setting up a producer instance with the right message delivery policy, and making sure to shut things down properly upon exit, including making sure to deliver any pending messages.</p><p>It was never a <em>lot</em> of work, but it was still an impediment to getting started, and there were too many chances to mess things up. That’s why we’re releasing <a href="https://github.com/zendesk/delivery_boy">Delivery Boy</a>, a simple library that helps you publish messages to Kafka. It reads configuration from a YAML file (or environment variables, if you’re into that) and handles setting up thread-safe Kafka producer instances for you.</p><h4>Getting started</h4><p>Add this to your Gemfile:</p><pre>gem &quot;delivery_boy&quot;</pre><p>Then run bundle install followed by bundle exec rails generate delivery_boy:install. This will generate a config file at config/delivery_boy.yml. If your Kafka broker is running locally, this should work out of the box. Otherwise change the file to point at one or more of your brokers.</p><p>Once this is done, you can start publishing messages to Kafka immediately! Here’s an example:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e3dedd364d4932a354b9951619ec23f0/href">https://medium.com/media/e3dedd364d4932a354b9951619ec23f0/href</a></iframe><p>This will push the pending message to a background thread that handles message deliveries automatically. Doing this is important if you want to insulate your application against Kafka broker failures: while it is possible to deliver messages to Kafka directly using the deliver method, doing so would mean that a delivery error would blow up your whole application. We recommend using deliver_async unless you’re absolutely sure that it’s okay for your Rails code to get an exception — or maybe hang for a while — when Kafka is having issues. Better safe than sorry.</p><p>At Zendesk, we’re already using DeliveryBoy at scale, producing between 1,000 and 2,000 messages every second in our global deployment.</p><p>If you want to read more about DeliveryBoy, head over to its <a href="https://github.com/zendesk/delivery_boy">GitHub page</a>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f32ef0724f8b" width="1" height="1" alt=""><hr><p><a href="https://zendesk.engineering/say-hi-to-delivery-boy-f32ef0724f8b">Say Hi to Delivery Boy!</a> was originally published in <a href="https://zendesk.engineering/">Zendesk Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing Racecar]]></title>
            <link>https://zendesk.engineering/introducing-racecar-fdb5178bcafb?source=rss-b7e4b878038c------2</link>
            <guid isPermaLink="false">https://medium.com/p/fdb5178bcafb</guid>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[kafka]]></category>
            <dc:creator><![CDATA[Daniel Schierbeck]]></dc:creator>
            <pubDate>Mon, 17 Jul 2017 10:01:01 GMT</pubDate>
            <atom:updated>2017-07-17T10:01:01.078Z</atom:updated>
            <content:encoded><![CDATA[<h3>A simple framework for writing Kafka consumers in Ruby</h3><p>At Zendesk we’ve invested heavily in <a href="http://kafka.apache.org/">Kafka</a>. We’ve authored the <a href="http://maxwells-daemon.io/">Maxwell</a> MySQL change capture application and the <a href="https://github.com/zendesk/ruby-kafka">ruby-kafka</a> client library.</p><p>Today we’d like to announce a new open source project: <a href="https://github.com/zendesk/racecar">Racecar</a>. Racecar makes it dead easy to write, configure, test, and run Kafka consumers in Ruby, and integrates nicely into Rails applications. It sacrifices some flexibility in exchange for simpler operation — if you need more tuning, you can always use ruby-kafka directly.</p><p>If you’re using Rails, getting started is easy; just add this to your Gemfile:</p><pre>gem &quot;racecar&quot;</pre><p>Now, add a consumer class that will receive messages from your Kafka topic. Start by executing the following:</p><pre>$ rails generate racecar:consumer hello</pre><p>This should create a file at app/consumers/hello_consumer.rb that looks like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/68dd5ecb65ea0324226967a48ece068c/href">https://medium.com/media/68dd5ecb65ea0324226967a48ece068c/href</a></iframe><p>Let’s test things out! Assuming you’re running Kafka on your local machine, execute the following command:</p><pre>$ racecar HelloConsumer</pre><p>The consumer will start running, waiting for messages to appear on the topic some-topic. Let’s write a message to this topic in order to test that things actually work. In another terminal window, execute the following:</p><pre>$ racecarctl produce --value &quot;hello!&quot; --topic some-topic</pre><p>You should now see the greeting printed by your consumer!</p><p>If you’re not running a Kafka broker on your local machine, either execute export RACECAR_BROKERS=my.kafka.host.name:9092 before launching the consumer with Racecar or <a href="https://github.com/zendesk/racecar#configuration">read the documentation</a> on how to configure Racecar for production and non-default environments.</p><p>You can start multiple instances of HelloConsumer — they will form what’s known as a <em>consumer group</em> and coordinate processing of messages, making sure that each partition in a topic is handled by just a single consumer.</p><p>Note that Rails is not required to use Racecar. Check out the documentation for more information.</p><p>Learn more about Racecar on <a href="https://github.com/zendesk/racecar">GitHub</a> and tell us what you think!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qEtFuP79xFlEVKXwGslFwQ.jpeg" /><figcaption>Racecar goes wroom!!</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fdb5178bcafb" width="1" height="1" alt=""><hr><p><a href="https://zendesk.engineering/introducing-racecar-fdb5178bcafb">Introducing Racecar</a> was originally published in <a href="https://zendesk.engineering/">Zendesk Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>