<?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 Lyric Hartley on Medium]]></title>
        <description><![CDATA[Stories by Lyric Hartley on Medium]]></description>
        <link>https://medium.com/@lyric?source=rss-6f8b4857c86b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*KwQqZHYZjKqtIB5v3ZscXQ.jpeg</url>
            <title>Stories by Lyric Hartley on Medium</title>
            <link>https://medium.com/@lyric?source=rss-6f8b4857c86b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 02:06:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@lyric/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[Deploying Conduit on Heroku]]></title>
            <link>https://medium.com/meroxa/deploying-conduit-on-heroku-3f04c849b2c6?source=rss-6f8b4857c86b------2</link>
            <guid isPermaLink="false">https://medium.com/p/3f04c849b2c6</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[heroku]]></category>
            <category><![CDATA[kafka-connect]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Lyric Hartley]]></dc:creator>
            <pubDate>Thu, 10 Mar 2022 17:22:08 GMT</pubDate>
            <atom:updated>2022-03-10T17:22:08.956Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_B2uqodOwoV0A-t5uTPxrQ.png" /></figure><p>If you are not familiar with <a href="https://github.com/ConduitIO/conduit">Conduit</a>, you can get the low down <a href="https://medium.com/meroxa/conduit-a-leap-forward-for-real-time-data-integration-67272fe50a84">here</a>. If you don’t know about <a href="https://www.heroku.com/">Heroku</a> either, you may be lost? No worries, I am here to help. The short version is Conduit is a tool to move data around and Heroku is an application platform. Ok, let’s get the two hitched up.</p><h3>Intro</h3><p>Why might you want to deploy Conduit on Heroku? Heroku provides an easy platform to get an application up and going. It has some free data resources like PostgreSQL as well. This gives you <a href="https://devcenter.heroku.com/articles/free-dyno-hours">free hosting</a> and data for Conduit!</p><h3>Methods of Deploy</h3><p>At a high level, there are two options: deploy Conduit pre-built or build it on Heroku. The advantage of deploying the pre-built version is that dependencies will already be met. The downside is that you can’t change the build configuration. We will touch on why you may want to tweak the build configuration in the “Considerations” Section.</p><h3>Docker</h3><p>Using <a href="https://devcenter.heroku.com/categories/deploying-with-docker">Heroku’s Docker</a> support makes deploying the latest <a href="https://github.com/ConduitIO/conduit#docker">Conduit to Heroku</a> easy as it gathers your dependencies. Docker operates a little bit differently than regular Heroku deploys. You can look over the details <a href="https://devcenter.heroku.com/articles/build-docker-images-heroku-yml">here</a>.</p><p>You can test this method via <a href="https://github.com/ahamidi/conduit-on-heroku">this repo</a>.</p><h3>Go lang Binary</h3><p>Conduit provides a Go binary as part of each release. The latest can be found <a href="https://github.com/ConduitIO/conduit/releases/latest">here</a>. To deploy a <a href="https://go.dev/">Go</a> binary to Heroku you will need to give Heroku something to detect. For example, we use a package.json file to trick the build process in this repo.</p><p>You can test this method via the button below, which is based on version 0.11 of Conduit.</p><figure><a href="https://heroku.com/deploy?template=https://github.com/lyric-meroxa/conduit-button"><img alt="Deploy to Heroku" src="https://cdn-images-1.medium.com/max/149/1*hiUCsGXwe8dQlSe2phN1_Q.png" /></a></figure><p>When the deploy is done, you can click <strong>View</strong> or <strong>Manage &gt; View</strong> to open the app in the browser. You may need to change the base URL to land on the Admin UI.</p><p>The base URL will be:</p><p>https://[application-name].herokuapp.com/ui/pipelines</p><p>For example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/1*ap6ZmnjdrysBc_RTcqCLVw.png" /><figcaption>Conduit UI</figcaption></figure><h3>A Conduit GitHub Repo</h3><p>You can deploy Conduit to Heroku using the <a href="https://elements.heroku.com/buildpacks/heroku/heroku-buildpack-go">Go buildpack</a>. We provide a test version of this method via the button below. This version does not have the UI enabled for security reasons (see below). To learn more about building Conduit from source you can reference the <a href="https://github.com/ConduitIO/conduit#build-from-source">build instructions</a>.</p><figure><a href="https://heroku.com/deploy?template=https://github.com/lyric-meroxa/conduit/tree/Heroku-button"><img alt="Deploy to Heroku" src="https://cdn-images-1.medium.com/proxy/1*hiUCsGXwe8dQlSe2phN1_Q.png" /></a></figure><h3>Considerations</h3><h4>Persisting of configuration</h4><p>By default, Conduit stores its configuration on the local disk in conduit.db. Heroku has an <a href="https://devcenter.heroku.com/articles/active-storage-on-heroku#ephemeral-disk">ephemeral file system</a>. This means that you will lose your configuration when the file system is “reset” and that happens on every restart. The dynos are <a href="https://devcenter.heroku.com/articles/dynos#automatic-dyno-restarts">restarted every 24 hours</a> and anytime there is a new “release” or deploy. You will want to add a <a href="https://www.heroku.com/postgres">Heroku PostgreSQL addon</a> and use the option below as part of your start command to let Conduit know to store the configs in PostgreSQL.</p><p>web: ./conduit -db.postgres.connection-string $DATABASE_URL</p><p>You can use this <a href="https://github.com/lyric-meroxa/conduit-button/blob/main/Procfile">Procfile</a> as an example. The deploy buttons above include the addon and this option.</p><h4>HTTP API Port binding</h4><p>Heroku web apps <a href="https://devcenter.heroku.com/articles/dynos#web-dynos">bind</a> to $PORT when they startup. By default, Conduit uses port 8080, which will not work. This will need to be set for Conduit via the following flag. Note the leading : .</p><p>./conduit -http.address :$PORT</p><h4>Conduit HTTP security</h4><p>The Conduit UI does not currently have authentication in front of it. One option is to build Conduit without the UI (like in the Go repo button above). This would be better for production deploys. If you still want a UI, you have a couple of options.</p><p>You can add a buildpack like the <a href="https://elements.heroku.com/buildpacks/heroku/heroku-buildpack-nginx">nginx buildpack</a> and <a href="https://docs.nginx.com/nginx/admin-guide/security-controls/configuring-http-basic-authentication/">configure it</a> to provide authentication. Or, in the Procfile you can set your <a href="https://devcenter.heroku.com/articles/process-model">process type</a> to something other than web: e.g. worker: and it will not bind to a port connected to the public internet. As this may work well in Private Spaces (or using an <a href="https://devcenter.heroku.com/articles/internal-routing">internally routed</a> dyno) it may not be viable in the Common runtime (e.g. free dyno).</p><h4>gRPC API lack of support</h4><p>gRPC requires HTTP/2. Heroku <a href="https://devcenter.heroku.com/articles/http-routing#not-supported">does not currently support HTTP/2</a>. So, you will not be able to use the gRPC admin API.</p><h3>What’s Next?</h3><p>Now that you have Conduit up and going, you can visit the <a href="https://www.conduit.io/">Conduit.io</a> or view the docs in the <a href="https://github.com/ConduitIO/conduit">repo</a>. And get started building Pipelines!</p><ul><li><a href="https://www.conduit.io/docs/connectors/postgres/overview">PostgreSQL Connector</a></li><li><a href="https://www.conduit.io/docs/connectors/kafka/overview">Kafka Connector</a> (may require a Private Space)</li></ul><p><a href="https://github.com/ConduitIO/conduit/issues">Let us know if you have any issues!</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3f04c849b2c6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/meroxa/deploying-conduit-on-heroku-3f04c849b2c6">Deploying Conduit on Heroku</a> was originally published in <a href="https://medium.com/meroxa">Meroxa</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“Real-time”is becoming the default expectation. What is holding it back?]]></title>
            <link>https://medium.com/meroxa/real-time-is-becoming-the-default-expectation-what-is-holding-it-back-6afb02462f0b?source=rss-6f8b4857c86b------2</link>
            <guid isPermaLink="false">https://medium.com/p/6afb02462f0b</guid>
            <category><![CDATA[business]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[real-time-analytics]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Lyric Hartley]]></dc:creator>
            <pubDate>Fri, 25 Feb 2022 23:05:47 GMT</pubDate>
            <atom:updated>2022-02-25T23:05:47.991Z</atom:updated>
            <content:encoded><![CDATA[<h3>“Real-time” is becoming the default expectation. What is holding it back?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*Pxw146wjbS7fXlHY" /></figure><p>The world keeps moving faster, trending towards more rapid delivery of goods, services, and ideas. We use the term “Real-time” to mean that it happens as close to “now” as possible. For ideas, the internet is an obvious multiplier and we can easily see how it enables information to spread at, well, close to the speed of light.</p><p>A number of new technologies aim to accelerate this for goods and services as the <strong>expectations for “faster’’ continue to grow</strong>. In PwC’s June 2021 Global Consumer Insights Survey, 87% of responding consumers ranked <strong>reliability</strong> and <strong>fast delivery</strong> as top concerns when shopping online. After reading that stat a few questions came to mind:</p><p>What is at the core of those feelings?</p><p>What should we be thinking about as the world trends towards “real-time” being the default expectation in all domains?</p><p>What does this mean for businesses?</p><p>Let’s tease this apart a bit.</p><h3>Time is scarce and valuable</h3><p>Time is finite, it keeps moving forward no matter what we think about it. As more things are required of us, the time consumed becomes more valuable. Time is one of our most scarce, non-renewable resources. We may be able to backfill some resources, but not time. We’re all getting pulled into this new speedy world of change whether we want to or not. Someone demands something speedy from you, you, in turn, require speedy results from someone else.</p><blockquote><strong>Scarcity increases value </strong>and<strong> time is becoming increasingly scarce.</strong></blockquote><p>The thing that then begins to differentiate you from your competitor is <strong>how long it takes for the customer to get value</strong> from what you offer.</p><p>You can set yourself apart by showing that you <strong>value your customer’s time more than your competitors</strong>. Showing them that you care.</p><p>However, speed is only one part of the equation.<strong> It has to be accurate as well </strong>or…well, it wastes to fix it. That is often more frustrating than the time “saved” on the front end. And it will certainly get reflected back to the image of the company.</p><h3>Value the customer’s time</h3><p>Businesses have historically focused on saving time <em>internally</em>. Trying to make the business itself more efficient etc. However, today’s businesses have to focus on <strong>empathy for the customer</strong> by saving them time. The companies that send customers the message that they <strong>don’t value their time, will lose</strong>…unless they have a monopoly (looking at you DMV).</p><h3>Customers expect fast and reliable</h3><p>While your business goals may be focused on your external customers, your internal “customers” will have the same expectations when it comes to speed and accuracy of information. You can see this in the numerous companies that service internal teams. Those teams used to send that work to another internal team like IT. Teams found they could get their needs met from someone/company externally who could deliver on the promise more <strong>reliably and faster</strong>. So, they pulled out that corporate card with a quickness.</p><p>Not all time wasters are in shipping or inaccuracies though. <strong>A company can also show a lack of empathy by wasting the customer’s time with, for example, a design or data that is not actionable.</strong> People have expectations in some of these areas already, but they will have expectations in all of them over time. It is best to understand it now.</p><p>It might be boiled down to the time it takes to do something or even decide to do or not do something. We see an increase in <strong>frictionless design</strong>. For example, “One-Click” buying, intuitive interface designs, intelligent options or defaults, and other time-savers.</p><p>We now expect things to be “smooth”, if not, it feels like a waste of time.</p><p>An example of internal vs external user experience that comes to mind is the difference between Amazon’s regular customer experience and that of AWS. The Amazon.com site meets (and sets) many of the expectations for speed and reliability. While using AWS often feels like the opposite. That may converge over time. If not, startups will continue to pop up around making a smoother experience to fill the gap.</p><p>You may be thinking “ok, I get it, folks now expect things in “real-time” or as close to it as possible” soooo …what is the holdup?</p><h3>What is holding us back?</h3><p>There are a few things slowing, or in some cases stopping the realization of “everything real-time all the time!”. Some things we have to just live with, but others we can do something about.</p><h3>Physics</h3><p>One that rears its head is physics. If you work in tech for long you will eventually get the question “why is it taking so long?!”. Sometimes it can be fixed, but sometimes you just have to say “we have not figured out how to go faster than the speed of light”. If you wanna move 5TB of data across the world over the public internet, it just takes a bit of time. Sure you can get a dedicated, better pipe, but eventually, you hit the reach of our understanding of physics. If you want your product to magically appear after you order it? Same problem. Wouldn’t be great if when you needed salt, coffee, whatever, <em>bing</em> it appeared. It would be like in that old show<a href="https://en.wikipedia.org/wiki/I_Dream_of_Jeannie"> I dream of Jeannie</a>. Well, that’s not going to happen, but we can make changes to get as close as possible.</p><h3>Legacy Systems</h3><p>If physics is not the limitation, another common one is that <strong>existing systems don’t support going faster</strong>. It could be that it has not become cost-effective or there is not enough demand yet for that option or more often than not, it is a legacy industry that <strong>has not caught up</strong> yet. The pandemic forced many companies to undergo a “Digital Transformation”. So, many are getting closer to the current expectation. This is good for them because the pandemic also forced a spread of the speed expectation as people broke out of their old habits. Whether because they were working from home, ordering online more or ordering food, etc.</p><h3>Mindset</h3><p>Another reason, that may seem silly, but is very common, is simply that the folks that are working on a system have <strong>not stepped back and thought about it</strong>. Seriously, how many things do we do just because we have been doing it that way?</p><p>Even in the days of the pervasive, high-speed internet, where it seems like everything has been done or made and you can have it delivered to your house for free in two days. Many of us don’t often step back and (re)think about <strong>why we are doing what we do</strong> and if there is <strong>a better way</strong>. If you made it this far, I am guessing you are not one of those people.</p><p>We can’t change physics, but if you are reading this, you likely have the right mindset. That leaves updating the tools to support another “new normal”. A normal where “real-time” is the default.</p><p>None of the systems can achieve “real-time” if the data it requires has not achieved it. So, we have to start there. This is where <a href="https://meroxa.io/">Meroxa</a> and <a href="https://www.conduit.io/">Conduit</a> come to the rescue.</p><p>At<a href="https://meroxa.io/"> Meroxa</a>, we believe there is a better way to work with real-time data. We have created a company around helping developers reap the benefits of this real-time data world. A platform to make the integration and use of real-time data easier for developers.<a href="https://docs.meroxa.com/getting-started/configure"> Come give us a try.</a> :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6afb02462f0b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/meroxa/real-time-is-becoming-the-default-expectation-what-is-holding-it-back-6afb02462f0b">“Real-time”is becoming the default expectation. What is holding it back?</a> was originally published in <a href="https://medium.com/meroxa">Meroxa</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Conduit: A leap forward for real-time data integration.]]></title>
            <link>https://medium.com/meroxa/conduit-a-leap-forward-for-real-time-data-integration-67272fe50a84?source=rss-6f8b4857c86b------2</link>
            <guid isPermaLink="false">https://medium.com/p/67272fe50a84</guid>
            <category><![CDATA[kafka-connect]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[real-time-data]]></category>
            <category><![CDATA[kafka]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Lyric Hartley]]></dc:creator>
            <pubDate>Fri, 11 Feb 2022 00:13:38 GMT</pubDate>
            <atom:updated>2022-02-11T00:13:38.453Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why Conduit? An evolutionary leap forward for real-time data integration.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6DpGsdnuTrKMdVTf7u0Vvg.jpeg" /></figure><h3>Who should read this?</h3><p>Developers who build and/or manage data integration systems. It will be of specific interest to those working with real-time data pipelines, Kafka Connect, and managed streaming services.</p><h3>Overview</h3><p><a href="https://github.com/conduitio/conduit">Conduit</a> is an open-source project to make real-time data integration easier for developers and operators. This article is broken into roughly the “Why” and the “How” behind Conduit.</p><p>· <a href="#e3eb">Why bother creating “yet another” data project?</a><br>· <a href="#20e0">Why should WE build it?</a><br>· <a href="#5268">How is Conduit different than Kafka Connect?</a></p><h3>Why bother creating “yet another” data project?</h3><p>We could have simply written another blog post about the many frustrations of working with Kafka Connect for data integration, but we felt it was better to be part of the solution. So, we built and <a href="https://github.com/ConduitIO/conduit">open-sourced a project</a>; a project that we use at <a href="https://meroxa.io/">Meroxa</a>, that embodies the software development principles we have learned and live by. I will get into some of those principles and the thoughts behind the project in this post.</p><p>The project is named <a href="https://www.conduit.io/">Conduit</a>. While Conduit is not simply a Kafka Connect replacement, many of its features were informed by frustrations with Kafka Connect.</p><p>Apache Kafka does a great job at being the backplane, but the business value and where more developers spend their time is with the connectors.</p><p>We believe the data connector space is in need of some rethinking and innovation. We want to make connector development better suited for developer velocity and operational best practices.</p><p>We are not alone in the belief that this space is ripe for innovation. Jay Kreps (co-creator of Apache Kafka) has mentioned the innovations still needed in the connector space in his recent Keynote and in tweets like this <a href="https://twitter.com/jaykreps/status/1454120042530938890">one</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*6zxXGsDXwEaiUTbpKAXDYw.png" /></figure><h3>Why should WE build it?</h3><p>We are a group of developers that have spent our careers developing software for large-scale deployments such as <a href="https://www.heroku.com/managed-data-services">Heroku</a>. Most of the software services/platforms we have worked on in the recent years have been in the context of building and managing data services such as Apache Kafka and Kafka connectors.</p><p>In that time, we have learned many things about what works well and what leads to issues when developing and supporting large-scale systems. The good news is that most aspects that make a large system easier to tame also cascade down to making a small system pleasant to work with as well. While the opposite is not true.</p><p>One benefit in the world of software is that developers have collectively spent a lot time working out effective methodologies. We have aspirations like “<strong>Optimized for Developer Happiness</strong>”. Many of those methodologies have influenced and helped us build better software at Meroxa. Such concepts as <a href="https://en.wikipedia.org/wiki/Agile_software_development"><strong>Agile</strong></a> and <a href="https://12factor.net/"><strong>12 Factor Apps</strong></a> have created certain expectations when working on projects and what a “good” project looks and feels like.</p><p>With those concepts as a background context, and years of working with Kafka Connect, we decided that we needed a better way to solve data integration problems. A way that adhered to our expectations of maintainable software services. While some concepts are just baked into the project because they are baked into the Meroxa DNA, below are some worth highlighting because they directly contrast with Kafka Connect.</p><h3>How is Conduit different than Kafka Connect?</h3><h3>Easy local development</h3><p>Kafka Connect requires a lot of setup (e.g. Apache Kafka, Zookeeper etc) to get to a point of doing development or even “kicking the tires”. It is a very time consuming development life cycle. Attempting to quickly iterate on code or test things in isolation is very frustrating or impossible. In addition to that, because of all the external dependencies, you may end up with a mismatch between your local setup and what is actually in production or another developer’s environment.</p><p>Conduit addresses these issues in a few ways.</p><ol><li>A <a href="https://github.com/ConduitIO/conduit/releases">single Go binary</a> with no external dependencies. Download, run it, get going. No additional infrastructure needed.</li><li>A <a href="https://github.com/ConduitIO/conduit#ui">built-in Web UI</a>. When you run that binary you can access the Web UI and try out configurations with very little upfront knowledge. Allowing you “play” with it out of the box.</li><li>SDK to simplify the connector development and testing. (Discussed later)</li><li>Easy, isolated local testing and test data generation. (Discussed later)</li></ol><p>🗣 <a href="https://github.com/ConduitIO/conduit#installation-guide">Conduit installation guide</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ez6TtY28JNJoz5YBCCl_YQ.png" /></figure><h3>SDK to speed up development</h3><p>Starting to develop connectors with Kafka Connect is confusing and complicated. You are not encouraged when at every turn the documentation implies that dragons are around the corner and you should just pay to have the connectors handled for you. Can’t we just have an SDK?</p><p>We are <a href="https://github.com/ConduitIO/conduit/issues/37">working on a SDK</a> to make it easy for you. Since our work is “in public”, you can keep an eye on what we are up to.</p><h3>Connector development is language agnostic</h3><p>Kafka Connectors are very Java-centric. While you can shoehorn other language support into working, it is not the suggested path and can be painful to maintain and not performant.</p><p>Conduit connectors are plugins that communicate with Conduit via a gRPC interface. This means that <strong>plugins can be written in any language</strong> as long as they conform to the standards based interface.</p><p><a href="https://www.conduit.io/docs/introduction/architecture">Conduit architecture diagram.</a></p><h3>Standard API Protocols</h3><p>Conduit supports <a href="https://grpc.io/docs/what-is-grpc/introduction/"><strong>gRPC</strong></a><strong> and REST for its management</strong>, making it easy to manage with software at scale. Plugins utilize <strong>gRPC for data movement</strong> and soon it will support the Kafka Connect API as well.</p><p>We believe gRPC is the best choice for streaming data APIs. In addition to the <a href="https://grpc.io/blog/principles/">benefits</a> of using gRPC for data movement, a large number of community members, projects, <a href="https://grpc.io/docs/languages/">programming languages</a> and <a href="https://grpc.io/docs/platforms/">platforms</a> supported make it a perfect choice for a data project such as Conduit.</p><p>In contrast, Kafka Connect uses a custom binary protocol for data and a REST API or java property file for configuration. What this means is that client libraries have to be built and maintained as separate projects that are only useful in the Kafka ecosystem. We will also support the Kafka Connect API to allow you to migrate over existing connectors.</p><p><a href="https://www.conduit.io/docs/introduction/architecture">Conduit architecture diagram.</a></p><p><a href="https://github.com/ConduitIO/conduit#api">Conduit API information</a></p><h3>Testing</h3><p>Testing a <strong>Kafka connector</strong> <strong>requires a lot of infrastructure</strong>, visibility is poor, is too prone to misleading errors and generating test data is a pain. Instead of iterating on your code, you feel like you are testing a whole collection of infrastructure you have cobbled together, that may not look like production anyway. So, what were you really testing?</p><p>Testing with Conduit — since the connector and the <strong>dependencies are decoupled</strong> you can test you changes in <a href="https://12factor.net/dependencies">isolation</a> from the environment. We have created a <a href="https://github.com/ConduitIO/conduit/tree/main/pkg/plugins/generator">test data generator</a> and data validator to save you from wasting time trying to create test data to verify your connector is working.</p><h3>Free and Open</h3><p>Many Kafka Connectors can not be used by us at all. The limitations on the licenses create situations where you are either <strong>locked-in</strong> <strong>to the Confluent platform</strong> to continue use or in other cases you may be compliant but then as your business grows and involves you unknowingly move into a violation. Many developers experienced the pain with the <a href="https://www.confluent.io/confluent-community-license-faq/">license shift</a> that Confluent made a few years ago. It sucks to find yourself in that situation. We don’t want that to happen to you.</p><p><strong>Conduit is free to use and open source</strong>. The <strong>license is permissible</strong> and encourages developers to utilize and get value from it in their projects. We are strong believers in the value of standards and open source and that we should not be creating situations for lock-in or crippling projects and use cases.</p><h3>Monitoring</h3><p>Kafka Connect uses <strong>JMX for metrics</strong>. We found this to be cumbersome to work with and required additional setup to get metrics into our metrics platform.</p><p>Conduit supports sending metrics to <a href="https://prometheus.io/"><strong>Prometheus</strong></a><strong> right out of the box</strong>. Prometheus is our preferred metrics platform as well most developers we have heard from.</p><p><a href="https://github.com/ConduitIO/conduit/blob/main/docs/metrics.md">Conduit metrics exposed</a></p><h3>Go vs Java</h3><p>Kafka Connect is built with Java. For our use case, building a multi-tenant platform that leverages Kafka Connect wasn’t economical. Each provisioned connector took up a ton of memory, sometimes in excess of 1GB. If the usage isn’t consistent, you end up with a bunch of provisioned resources that didn’t have a lot of utilization.</p><p>Go uses very little resources, compiles to a small deployable binary, has a fast startup/shutdown time, is very stable, very performant and has a <a href="https://go.dev/solutions/#case-studies">large community of projects</a> and support.</p><p>Conduit leverages Goroutines that are connected using Go channels. Goroutines can take up as little as 2kB of memory. These basic functions can run simultaneously and independently, making multiple processes very efficient on multi-core machines. Unlike Java threads that consume large amounts of memory, Goroutines, which are used instead of threads, require much less RAM lowering the risk of crashing due to lack of memory.</p><p>The small binary size and resource usage provide a variety of benefits. At the large scale, say, If you are building a managed service like us, small memory use, faster boot times, minimal dependencies, small file size etc translate into actual dollars saved on resources as well a better user experience. One the small side of the scale, it means you can deploy to even a Raspberry Pi or to places we have not yet considered. But, even for just local development, it means getting up and going and productive quickly.</p><p>There are good reasons for Go becoming the language of choice for infrastructure and operation services such as Kubernetes, Terraform, Docker and others. Conduit is built to fit well into that ecosystem, which means better integration and support going forward. The value of a strong community is hard to overstate.</p><h3>Easy Transformations</h3><p>Kafka Connect requires you to write <strong>transformations in Java</strong> and implement a pile of files and functions via a confusing process with little help. It is more complicated than it needs to be. Transformations are widely needed in data pipelines by people even if they don’t build connectors. Transformations should be approachable and easy.</p><p>In Conduit, <strong>transformations are written in JavaScript</strong>. JavaScript is one of the most widely known development languages. Most developers already have to know JavaScript even if they also use another language as well.</p><h3>Pipeline Centric</h3><p>Kafka Connect is connector-centric which puts data transformations etc in the background and ties them to the specific connectors, this is problematic because we want to build pipelines, not just connectors. The goal is easy pipelines for real-time data. When you think in terms of pipelines you also make different choices for things like transformations. For example, in the Kafka Connect world the transformation only sits between the source and destination.</p><p>Conduit decouples where the transformation sits allowing you transform from a source and or into a destination. Meaning that your pipeline can take into account how data enters and leaves it as different operations.</p><p>Conduit considers pipelines the primary goal and the <a href="https://www.conduit.io/docs/introduction/architecture">architecture</a> reflects that.</p><h3>Ready to get started with Conduit?</h3><p>Stay up to date with what we are working on, check out the <a href="https://github.com/ConduitIO/conduit/projects/1">Github Project board</a>.</p><p>Review the documentation at the main <a href="https://www.conduit.io/">website</a> as well as the <a href="https://github.com/ConduitIO/conduit">github repo</a>.</p><p>Find out <a href="https://github.com/ConduitIO/conduit#contributing">how to contribute</a>.</p><p>Install Conduit by following the <a href="https://github.com/ConduitIO/conduit#installation-guide">installation guide</a>.</p><h3>Easily migrate from Kafka Connect</h3><p>Conduit <a href="https://github.com/ConduitIO/conduit/projects/1">will support</a> the Kafka Connect API. This will allow you bring your existing connectors.</p><h3>Do you have feedback?</h3><p>What are your struggles with data integration?</p><p>What are we missing?</p><p>What would you add to the requirements list?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67272fe50a84" width="1" height="1" alt=""><hr><p><a href="https://medium.com/meroxa/conduit-a-leap-forward-for-real-time-data-integration-67272fe50a84">Conduit: A leap forward for real-time data integration.</a> was originally published in <a href="https://medium.com/meroxa">Meroxa</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Do You Need an Event Bus? A Quick Overview of Five Common Uses.]]></title>
            <link>https://medium.com/salesforce-architects/do-you-need-an-event-bus-a-quick-overview-of-five-common-uses-722ae9b50765?source=rss-6f8b4857c86b------2</link>
            <guid isPermaLink="false">https://medium.com/p/722ae9b50765</guid>
            <category><![CDATA[ask-an-architect]]></category>
            <category><![CDATA[steaming-data-connectors]]></category>
            <category><![CDATA[salesforce-architecture]]></category>
            <category><![CDATA[event-driven-architecture]]></category>
            <dc:creator><![CDATA[Lyric Hartley]]></dc:creator>
            <pubDate>Fri, 22 Jan 2021 23:51:34 GMT</pubDate>
            <atom:updated>2021-01-26T17:55:33.504Z</atom:updated>
            <content:encoded><![CDATA[<h3>Do You Need an Event Bus? A Quick Overview of Five Common Uses</h3><p><em>Events</em>, which is just another word for messages, are a great way to communicate information between different systems. Apache Kafka is designed for handling these communications at a large scale. It has become an industry standard, in part because it provides an efficient way to get the data that we all have coming in to the where it can best be utilized. <br> <br>In the same way that a language, like English, becomes valuable in large part because lots of people speak it, these messages are “understood” by most common systems and the ones that don’t can “be taught” without a ton of effort. <br> <br>Just like this blog post is out there and we don’t have to even know about each other to share information, Kafka becomes your way of broadcasting events/messages to interested parties. And just like any spoken language, the more people that speak it, the more valuable it becomes. In a similar way, a shared event bus, like Kafka, that enables disparate systems to exchange events is even more powerful.<br> <br> As an architect at Heroku <a href="https://help.heroku.com/enterprise">helping our top tier customers</a>, I have seen patterns that leave people and their companies trapped, and other patterns that make changes super easy. In this article I give a quick overview of five of the (many, many) patterns enabled by a standards-based event bus. While the patterns have different goals, down deep the implementation is basically the same, which keeps it easy, maintainable, and versatile. <br> <br>This post is part of the series discussing event-driven architectures. Other posts in this series describe how to use <a href="https://medium.com/salesforce-architects/extend-flows-with-heroku-compute-an-event-driven-pattern-a9840a91ce5b">Heroku compute to extend Flows</a>, <a href="https://medium.com/salesforce-architects/multi-org-visibility-for-work-com-9a618f73d003">multi-org visibility for </a><a href="http://work.com/">Work.com</a> organizations, and <a href="https://medium.com/salesforce-architects/heroku-pattern-cross-org-data-synchronization-addcaa2c970a">cross-org data synchronization</a>. <br> <br>Heroku and Apache Kafka connectors are central to these patterns. If you are not familiar with either of them, you can check out the resources at the end of the post. (Also, <a href="https://www.heroku.com/enterprise">Heroku Enterprise</a> customers can <a href="https://help.heroku.com/enterprise">request in-depth guidance</a> on these topics from the Customer Solutions Architecture team.)<br> <br>This post covers the following five patterns. <br> <br> <strong>Pattern #1: Hey, did something change? (Change Data Capture)</strong><br> <strong>Pattern #2: Better together! (Integration)</strong><br> <strong>Pattern #3: We need to know now! (Real-time processing and insights)</strong><br> <strong>Pattern #4: We might need that later. (Data archiving, batch processing)</strong><br> <strong>Pattern #5: It is going to be HUGE! (Scalability)</strong></p><h3>Pattern #1: Hey, did something change? (Change Data Capture)</h3><p>If your data never changes (which would be odd) you can skip this one, but you should probably go figure out why you can’t tell when it changes. In this pattern, the basic use case is that something changed in your Salesforce organization and lots of other services need to know about it. You don’t need to know what the services are or who owns them to enable the changes to propagate. (Of course, it’s important to keep security in mind.)<br> <br>For example, let’s say you have an online store and when the inventory is updated in one of your regional Salesforce organizations you need to update the search for the site, the recommendations graph database, and the CDN. Lightning Web Components can also be updated directly from a shared Kafka event bus so that even apps running in your Salesforce organizations can be updated immediately after a change is made.<br> <br>Timing is important to consider with this pattern as you don’t want to do something like recommending purchases for out-of-stock items. You will also want to make sure you have the ability to purge items too, also keeping in sync in the rollout. You have probably seen these types of issues when online shopping: An item is available but seems to disappear as you try to buy it. A more graceful way to handle it would be to mark the item as out of stock but offer a waitlist. It makes the customer feel like their time was not wasted and you don’t force them to go look elsewhere and lose the sale.<br> <br> You could end up with an architecture like this:</p><figure><img alt="Heroku Connect architecture" src="https://cdn-images-1.medium.com/max/990/1*cJhqPc95myqcK67W6ncY6g.png" /></figure><h3>Want to know more?</h3><p><a href="https://www.heroku.com/connect">Heroku Connect</a><br><a href="https://www.salesforce.com/events/conf/webinars/2775860">Using Apache Kafka on Heroku for syncing multiple Salesforce orgs (Webinar)</a><br><a href="https://blog.heroku.com/heroku-streaming-data-connectors">https://devcenter.heroku.com/articles/heroku-data-connectors</a><br><a href="https://elements.heroku.com/addons/bonsai">Elastic Search add-on</a><br><a href="https://elements.heroku.com/addons/fastly">CDN add-on</a><br><a href="https://www.fastly.com/blog/fastly-supports-new-logging-endpoints">Fastly + Kafka + Elasticsearch</a></p><h3>Pattern #2: Better together (Integration)</h3><p>Like peanut butter and jelly, coffee and donuts, or even copy and paste, many technologies go better together. The real strength of Apache Kafka is helping decouple systems while being able to share data between services or clouds. This is also another benefit of using a solution that is standards-based and open source. There are always new connectors and tools being built for Apache Kafka; you can use them as-is or use them to create your own. Ecosystems are stronger than products.<br> <br>Sending events to the shared bus means that when you want to add a new service you can just connect it to the shared bus and things start working. In this diagram we <a href="https://devcenter.heroku.com/articles/heroku-kafka-via-privatelink">connect to Kafka via PrivateLink</a>, which enables it to be accessed securely like just another IP in the <a href="https://aws.amazon.com/vpc/">AWS VPC</a>. We also have MuleSoft connected that then can be connected to many other services or APIs.</p><figure><img alt="Salesforce architecture including Mulesoft, Kafka, Postgres, AWS" src="https://cdn-images-1.medium.com/max/860/1*iYXvJ385PdKW-33A6AXyjQ.png" /></figure><h3>Want to know more?</h3><p><a href="https://devcenter.heroku.com/articles/heroku-kafka-via-privatelink#provisioning-the-amazon-vpc-endpoint">Creating a PrivateLink for Apache Kafka on Heroku</a><br><a href="https://elements.heroku.com/">Heroku Elements (Add-ons)</a><br><a href="https://github.com/dhavalthakkar93/MuleSoft-Kafka-Connector-with-Heroku-Kafka">Mulesoft and Kafka connection example</a><br><a href="https://www.mulesoft.com/exchange/?type=connector&amp;type=extension">Mulesoft connectors</a><br><a href="https://devcenter.heroku.com/articles/integrating-heroku-and-mulesoft">Connecting Mulesoft with Heroku Data services</a></p><h3>Pattern #3: We need to know right now! (Real-time processing and insights)</h3><p>Some changes are time sensitive and you need to know about them as soon as possible. For example, consider a security breach, an item being shipped (or delivered), a service going down, or any other issue that needs action <strong>right now</strong>. <br> <br>An architecture for analyzing real-time events and providing notifications or a dashboard might look like the diagram below. As the events come in on a <a href="https://jaceklaskowski.gitbooks.io/apache-kafka/content/kafka-topics.html">topic</a>, we process them and take action accordingly. We may be counting them and looking for an amount to trigger an action or simply showing those aggregates on a dashboard for monitoring. <br> <br> <a href="https://kafka.apache.org/documentation/streams/">Kafka Streams</a> would be a reasonable way to implement this type of approach (see links below) and the architecture might look like this:</p><figure><img alt="Salesforce and Heroku data architecture" src="https://cdn-images-1.medium.com/max/900/1*48LBgTOL6-JeGM5NQNIOLA.png" /></figure><h3>Want to know more?</h3><p><a href="https://devcenter.heroku.com/articles/kafka-streams-on-heroku">Kafka Streams on Heroku</a><br><a href="https://kafka.apache.org/26/documentation/streams/architecture">Kafka Streams architecture</a><br><a href="https://rockset.com/blog/fynd-e-commerce-portal-responds-to-consumer-behavior-in-real-time/">Real-time uses in retail</a><br><a href="https://blog.logrocket.com/real-time-data-streaming-app-apache-kafka/">Another real-time example</a><br><a href="https://blog.heroku.com/event-streams-kafka-redshift-metabase">Managing event streams</a></p><h3>Pattern #4: We might need that later. (Data archiving, batch processing)</h3><p>So, you have all this data, now, where to store it? <br> <br>Many companies have requirements to store data for a certain amount of time or store it offsite. Every company wants to know more about their customers and to gain insights from their data. This is a pattern for those folks (which is all of us, really)! Other than processing, another reason to store raw events somewhere is the ability to “replay” the events. You may need to replay them because of a bug or because you want to process the data in a new way. Whatever your use case, this is a pattern you will be glad to have implemented.</p><figure><img alt="Salesforce architecture including Tableau, Snowflake, and AWS" src="https://cdn-images-1.medium.com/max/860/1*bEoew1SFPKEYuKvULDEs3A.png" /></figure><h3>Want to know more?</h3><p><a href="https://elements.heroku.com/addons/remora-backup">Offsite database archiving</a><br><a href="https://help.tableau.com/current/pro/desktop/en-us/examples_snowflake.htm">Tableau and Snowflake connection</a><br><a href="https://docs.snowflake.com/en/user-guide/kafka-connector.html">Snowflake Kafka connector</a><br><a href="https://github.com/dhavalthakkar93/heroku-kafka-connect-source-heroku-postgres-sink-amazon-redshift-poc">Apache Kafka to Redshift Connector example app</a><br><a href="https://github.com/pinterest/secor">Apache Kafka to S3, Google Cloud Storage, and more!</a><br><a href="https://github.com/heroku-examples/analytics-with-kafka-redshift-metabase">Apache Kafka, Redshift, Metabase example app</a><br><a href="https://medium.com/@psinghal04/replaying-kafka-messages-an-implementation-in-golang-e5c6867cf084">Replaying Kafka events example</a></p><h3>Pattern #5: It is going to be HUGE (Scalability)</h3><p>This thing is going to be huge! <br>When services are decoupled they become less fragile and more agile (more rhymes!). One thing that always slows down teams as the organization grows is “collaboration costs”, which is just a way of saying how much time you spend talking to other teams in order to get your team’s work done. So, by decoupling you can scale the application <em>and</em> the organization. Large monolithic apps can be slowly split into decoupled microservices that can be scaled independently. In the pattern shown here we are also scaling globally with <a href="https://www.heroku.com/private-spaces">Private Spaces</a> in different geographic regions. We are taking the changes that come into Kafka and updating remote Redis caches in the other regions.</p><figure><img alt="Salesforce Microservice architecture" src="https://cdn-images-1.medium.com/max/894/1*v-Zk4FTwsMKxjqFQCtgB1A.png" /></figure><h3>Want to know more?</h3><p><a href="https://www.heroku.com/private-spaces">Heroku Private Spaces</a><br><a href="https://devcenter.heroku.com/articles/heroku-redis">Heroku Redis</a><br><a href="https://devcenter.heroku.com/articles/event-driven-microservices-with-apache-kafka">Event-Driven microservices with Apache Kafka</a><br><a href="https://github.com/jcustenborder/kafka-connect-redis">Kafka to Redis connector example</a></p><h3>Conclusion</h3><p>As you can see, these patterns are relevant for small companies connecting services as well as for large companies helping teams move faster (and not break things) as they scale up — or anywhere in-between. Once you have the pieces in place you will start seeing many other use cases. Kafka is a gateway to better architectures and after you get the basics wired up, the sky is the limit.<br> <br> <strong>More great resources</strong><br> <a href="https://www.pluralsight.com/courses/play-by-play-understanding-heroku-myths-magic">Heroku Myths and Magic (free video course)</a><br> <a href="https://kafka.apache.org/intro">What is Apache Kafka?</a><br> <a href="https://devcenter.heroku.com/articles/running-kafka-connectors-on-heroku">Running Kafka Connectors on Heroku</a><br> <a href="https://blog.heroku.com/heroku-streaming-data-connectors">Heroku Streaming Data Connectors launched!</a><br> <br> [ If you are already a Heroku Enterprise customer, you can <a href="https://help.heroku.com/enterprise">set up up a meeting here</a>. Tell them Lyric sent ya! ]</p><h3>About the Author:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/1*WQVUJItN0-_XzhiaWk4Pgg.png" /></figure><p>Lyric Hartley is a Customer Solution Architect at Heroku. He spends his days helping Heroku’s biggest customers solve their hard problems and reach the scale they require. He loves that there are always new and difficult problems to solve. Before his current role he was on a development team at <a href="http://salesforce.com/">Salesforce.com</a>. With an understanding from the inside of Salesforce, he helps many teams in Salesforce innovate faster with Heroku. He is passionate about the future of computing and enabling people to focus on what matters for their business instead of what is common to all businesses. He also loves music and beer!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=722ae9b50765" width="1" height="1" alt=""><hr><p><a href="https://medium.com/salesforce-architects/do-you-need-an-event-bus-a-quick-overview-of-five-common-uses-722ae9b50765">Do You Need an Event Bus? A Quick Overview of Five Common Uses.</a> was originally published in <a href="https://medium.com/salesforce-architects">Salesforce Architects</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>