<?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 Francisco Lima on Medium]]></title>
        <description><![CDATA[Stories by Francisco Lima on Medium]]></description>
        <link>https://medium.com/@limadelrey?source=rss-2961e4bb8fd2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*VeYSH2SJIkZFtSSM_KJOCg.jpeg</url>
            <title>Stories by Francisco Lima on Medium</title>
            <link>https://medium.com/@limadelrey?source=rss-2961e4bb8fd2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 04:19:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@limadelrey/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[Vert.x 4: How to build a reactive RESTful Web Service]]></title>
            <link>https://limadelrey.medium.com/vert-x-4-how-to-build-a-reactive-restful-web-service-dd845e3d0b66?source=rss-2961e4bb8fd2------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd845e3d0b66</guid>
            <category><![CDATA[vertx]]></category>
            <category><![CDATA[reactive]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Francisco Lima]]></dc:creator>
            <pubDate>Mon, 25 Jan 2021 10:02:57 GMT</pubDate>
            <atom:updated>2021-01-25T10:09:16.946Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RovqxSyUULpHDMxwYGXQPA.png" /></figure><p>Eclipse Vert.x is a tool-​kit for build­ing re­ac­tive ap­pli­ca­tions on the JVM. Re­ac­tive ap­pli­ca­tions are both scal­able as work­loads grow and re­silient when fail­ures arise, making them ideal for low-latency and high-throughput use cases. Its main advantage resides in the way it approaches multi-threading. Threads can live within a sin­gle process, per­form con­cur­rent work and share the same mem­ory space. However, as work­load grows, the OS ker­nel struggles when there is too much con­text switch­ing work with in-flight re­quests. Because of that, some threads are blocked while they are wait­ing on I/O op­er­a­tions to com­plete while others are ready to han­dle I/O re­sults. Vert.x takes a different approach to this problem by using event loops:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*fhQ96tDLMd_zonV_FuVwGA.png" /><figcaption>Event loop</figcaption></figure><p>In­stead of block­ing a thread when an I/O op­er­a­tion oc­curs, it moves on to the next event (which is ready to progress) and re­sumes the ini­tial event when it’s the appropriate callback’s turn in the queue. As long as the event loop is not blocked, there’s a significant performance improvement, making Vert.x <a href="https://www.techempower.com/benchmarks/">one of the fastest in the Java ecosystem</a>.</p><h3>What’s new in Vert.x 4?</h3><p>Vert.x is backed by a large ecosys­tem of re­ac­tive mod­ules that are useful to writ­e mod­ern applications: a com­pre­hen­sive web stack, re­ac­tive data­base dri­vers, mes­sag­ing, event streams, clus­ter­ing, met­rics, dis­trib­uted trac­ing and more. This release adds a significant number of new features and improvements on top of that:</p><ul><li><strong>Futurisation </strong>— Implementation of fu­ture/call­back hy­brid model;</li><li><strong>Monitoring</strong> — Vert.x Trac­ing sup­ports both Open­trac­ing and Zip­kin. It also com­ple­ments Vert.x Met­rics;</li><li><strong>Reactive SQL clients</strong> — High-​performance re­ac­tive SQL clients, fully in­te­grated with Vert.x Met­rics and Vert.x Trac­ing;</li><li><strong>Reactive Redis client</strong> — The re­vamped client API now sup­ports all Redis con­nec­tion modes with ex­ten­si­ble sup­port for Redis com­mands;</li><li><strong>SQL Templating</strong> — SQL Client Tem­plates is a li­brary de­signed to fa­cil­i­tate build­ing SQL queries;</li><li><strong>Web Validation </strong>— Ex­ten­si­ble sync/async HTTP re­quest val­ida­tor pro­vid­ing a DSL to de­scribe ex­pected HTTP re­quests;</li><li><strong>Web OpenAPI —</strong> New sup­port for Con­tract Dri­ven de­vel­op­ment based on Ope­nAPI;</li><li><strong>Authentication and Authorization</strong> — A set of new mod­ules are now avail­able (e.g. vertx-auth-ldap, vertx-auth-sql &amp; vertx-auth-webauth) and improvements were made to older modules (e.g. vertx-auth-oauth).</li></ul><h3><strong>Building our reactive RESTful Web Service</strong></h3><p>There’s a good amount of documentation on how to use Vert.x and its modules. However, most of the code examples are focused on a specific feature and presented as a single class Java application (usually MainVerticle). Personally, I feel that it doesn’t represent the full reach of its capabilities, so I decided to prepare an application that implements a fully-reactive web service capable of communicating with a relational database (e.g. PostgreSQL) and providing a CRUD API while addressing some production-ready requirements such as metrics, logging, health checks, database migrations, tests and so on. The codebase is organized in traditional N-Tier architecture and it uses some of the latest features such as SQL Templating and Web Validation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*AnNnl6EKV4BjjQlu1Nu94g.png" /><figcaption>Codebase package structure</figcaption></figure><h3>Router</h3><p>A router takes an HTTP request, finds the first matching route for that request and proxies the request to that route. Each route can have multiple handlers and each handler should be responsible for a different requirement. You can use this layer to define your API endpoints, your API versioning and even enable request validation. Below you’ll find several routes versioned by its URI path using three handlers: a Logger handler, a Web Validation handler and a custom business logic handler.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e24a9cdb1fe437c775ae16aacfb8e410/href">https://medium.com/media/e24a9cdb1fe437c775ae16aacfb8e410/href</a></iframe><h3>Handler</h3><p>As I mentioned before, handlers should be used for different requirements. Vert.x provides many of them out of the box. Logger handlers are used to log requests information, the new Web Validation handlers are used to perform request schema validation, Error handlers are used to customize error messages, the list goes on. You can also implement your own handlers, just like the one that you can find below. This handler provides all the operations necessary by the routes that were defined previously. They extract information from the request (query parameters, path parameters and body) initially and return a JSON response with an appropriate HTTP status code at the end, leaving all the business logic to the service layer.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/002f0e5f2afcd9c032082cbdb0432952/href">https://medium.com/media/002f0e5f2afcd9c032082cbdb0432952/href</a></iframe><h3>Service</h3><p>Services are a common abstraction to represent middleware. They are used to process data using some business logic and can be very useful to establish a set of available operations that coordinate the application’s response. Our service layer is able to create, read, update and delete data. It’s responsible for transactional control, for providing connections to the repository layer, for transforming entities into DTOs and for implementing specific features such as pagination. It uses the Reactive PostgreSQL client, which is non-blocking, allowing it to handle many database connections with a single thread.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/98b7cab3506787c0bc0590d87d36e375/href">https://medium.com/media/98b7cab3506787c0bc0590d87d36e375/href</a></iframe><h3>Repository</h3><p>Repositories are classes that encapsulate the logic required to access data sources. They centralize common data access functionality, providing better maintainability and decoupling the infrastructure or technology used to access databases from the domain model layer. Below you can find multiple SQL statements as well as the new SQL templating, which can be very useful to map structured data to our entities.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/851b64b374462bf948d140600764fdad/href">https://medium.com/media/851b64b374462bf948d140600764fdad/href</a></iframe><h3>Verticle</h3><p>Vert.x comes with a scalable concurrency model out of the box that you can use to save time writing your own. It shares similarities with the Actor model especially with respect to concurrency, scaling and deployment strategies. Instead of using actors, it uses verticles. There are two types of verticles:</p><ul><li><strong>Standard</strong> — Standard verticles are assigned an event loop thread when they are created and the start method is called with that event loop. This means you can write all the code in your application as single-threaded and let Vert.x worry about the threading and scaling;</li><li><strong>Worker</strong> — A worker verticle is just like a standard verticle, but it’s executed using a thread from the worker thread pool. They are designed for calling blocking code.</li></ul><p>Although the usage of verticles is entirely optional, it’s generally a good idea to do it concurrency-wise. Below you’ll find a verticle describing how to run an HTTP server with all of your configurations.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6db02c66750557f66894864e841e629a/href">https://medium.com/media/6db02c66750557f66894864e841e629a/href</a></iframe><h3>Database migrations</h3><p>Database management should be composed of incremental and reversible changes allowing us to control our relational database schema versions. By using a schema migration tool (e.g. Flyway) you should have the possibility to define your schema evolution and seed its initial data programmatically. This requirement has a blocking nature, so you should deploy a worker verticle.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f86fd382d2f5165d144a4d529b7eec36/href">https://medium.com/media/f86fd382d2f5165d144a4d529b7eec36/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*VxvHmbO49j1gbffT5LMSPg.png" /></figure><h3>Health checks</h3><p>Health check endpoints enable us to periodically test the health of our service. Sometimes, applications transition to broken states and cannot recover except by being restarted. Other times applications are temporarily unable to serve traffic (e.g. an application might need to load large data during startup) and, in such case, it shouldn’t restart the application and/or allow requests either. Providing liveness and readiness probes, respectively, allows us to detect and mitigate these situations. Below you’ll find a way to express the current state of the application and the information on whether a connection to the database can be established.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/561e3c4c4fd3c680b1ce60861c909ce7/href">https://medium.com/media/561e3c4c4fd3c680b1ce60861c909ce7/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/646/1*9fDnwHX0WwbPz3eUx_N9xg.png" /></figure><h3>Metrics</h3><p>Application monitoring provides detailed observability into the performance, availability and user experience of applications and their supporting infrastructure. By gathering statistics from the HTTP server, database, API or any existing module you’re better prepared to recover from failures and also able to get insights into what is happening inside the application. Vert.x provides a convenient integration with Micrometer whose data can become available through an endpoint that is scraped periodically by Prometheus and consequently by Grafana in order to produce proper dashboards.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/67a74136d03f71b209eadb29acab439c/href">https://medium.com/media/67a74136d03f71b209eadb29acab439c/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y54dunqhSasDvDidrLsGGA.png" /></figure><h3>Tests</h3><p>Finally, it’s very important to check whether the actual software matches the expected requirements and/or create an automated way of identifying errors, gaps or missing requirements. There are many types of tests: unit tests, integration tests, component tests, end-to-end tests and so on. Component tests are interesting in the way they allow us to test our web service using the consumer perspective (e.g. API) as the main driver. At the same time, it allows us to test the interaction of the web service with the database, all as one unit. The main challenge is to ensure that the local environment is the same as the production environment. For that reason, you could use Testcontainers in order to mimic PostgreSQL or any other technology.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d8345754fe9e0baf9ded5c229837d40c/href">https://medium.com/media/d8345754fe9e0baf9ded5c229837d40c/href</a></iframe><h3>Final thoughts</h3><p>Mod­ern ker­nels have very good sched­ulers, but we can­not ex­pect them to deal with 50k threads as eas­ily as they would do with 5k. It’s important to recognize that threads aren’t cheap: cre­at­ing a thread takes a few milliseconds and consumes about 1MB of mem­ory. Vert.x approach addresses these issues and provides a rich ecosystem that allows developers to build highly scalable and performant applications. There’s just one caveat: code that runs on event loops should not per­form block­ing I/O or lengthy pro­cess­ing. But don’t worry if you have such code: Vert.x has worker threads and APIs to process events back on the event loop. You can find the codebase and all the necessary configurations on the following <a href="https://github.com/limadelrey/vertx-4-reactive-rest-api.git">repository</a>.</p><h3>Sources</h3><p>[1] <a href="https://vertx.io/">https://vertx.io/</a><br>[2] <a href="https://vertx.io/blog/whats-new-in-vert-x-4/">https://vertx.io/blog/whats-new-in-vert-x-4/</a><br>[3] <a href="https://www.techempower.com/benchmarks/">https://www.techempower.com/benchmarks/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd845e3d0b66" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kafka Connect: How to create a real time data pipeline using Change Data Capture (CDC)]]></title>
            <link>https://limadelrey.medium.com/kafka-connect-how-to-create-a-real-time-data-pipeline-using-change-data-capture-cdc-c60e06e5306a?source=rss-2961e4bb8fd2------2</link>
            <guid isPermaLink="false">https://medium.com/p/c60e06e5306a</guid>
            <category><![CDATA[change-data-capture]]></category>
            <category><![CDATA[debezium]]></category>
            <category><![CDATA[kafka]]></category>
            <category><![CDATA[kafka-connect]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Francisco Lima]]></dc:creator>
            <pubDate>Mon, 06 Jul 2020 09:24:42 GMT</pubDate>
            <atom:updated>2020-07-06T09:24:42.655Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_XKnQJLfUh1TfO5UeJjCzQ.jpeg" /></figure><p>Microservices, Machine Learning &amp; Big Data are making waves among organizations. Curiously they all share the same biggest concern: <strong>data</strong>.</p><p>In today’s fast-moving world, where immediacy of information is no longer nice-to-have, but absolutely critical for business competitiveness and survival, ETL processes that run on periodic basis are no longer the best option. Real-time (or near real-time) alternatives such as streaming provide a way of processing big volumes of data while allowing to instantly react to changing conditions, but sometimes at an expense of having tons of people dedicated to build an infrastructure capable of doing so while addressing issues like fault tolerance, performance, scalability and reliability. Therefore we’ll go through a way of doing it without even having to write a single line of code.</p><h3>Introducing Kafka Connect</h3><p>You should know by now that most companies use databases to keep track of their data. What you may not know is that most database management systems manage an internal transaction log that records changes over time. By scanning and interpreting the transaction log, one can capture the changes made to the database in a non-intrusive manner. This is known as Change Data Capture (CDC) and can be useful for several purposes:</p><ul><li>ETL and Data Warehousing;</li><li>Data Lake Ingestion;</li><li>Streaming;</li><li>Data propagation, replication, synchronisation and/or migration;</li><li>Moving from monolithic applications to microservices;</li><li>Event-driven architecture.</li></ul><p>So, why use Kafka Connect? Basically, Kafka Connect allows to monitor a database, capture its changes and record them in one or more Kafka topics (typically one topic per database table). Plus, by saving it on Kafka it ensures that data is replicated, totally ordered and available in an asynchronous way to multiple consumers:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uSNNBxP3XPNcE-QfOJuQEw.png" /><figcaption>Change Data Capture (CDC) w/ Kafka &amp; Kafka Connect</figcaption></figure><h3>Building our pipeline</h3><p>The use case that we’ll be following consists in a small bike store that saves data about customers, products and orders in a relational database:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*YFzrU1ZXph6F7PeNedyMmg.png" /><figcaption>Entity Relationship Diagram (ERD)</figcaption></figure><p>Now, let’s imagine that, for some reason, this store needs to share part of its data to a third-party client which is operating on a bigger scale. Let’s also assume that this client doesn’t rely only on relational databases. Data is in fact being replicated in multiple instances and is supported by different technologies with distinct purposes (analytics, searching, machine learning, etc). This setup creates multiple challenges:</p><ul><li>How to share data without giving source access to third-parties?</li><li>How to share data without compromising performance?</li><li>How to share data to multiple consumers at the same time?</li><li>Most importantly, how to do it in real-time?</li></ul><p>So, let’s dig into it. The main goal is to capture database events and send them to Kafka so they can be consumed in real time or afterwards. This implies having the database populated and the infrastructure up and running. In order to do so we’ll use the following open-source technologies:</p><ul><li><a href="https://www.docker.com/">Docker</a> — Tool to create, deploy and run applications by using containers;</li><li><a href="https://kafka.apache.org/">Apache Kafka</a> — Distributed streaming platform which allows to publish and subscribe to streams of messages (similar to a message queue or enterprise messaging system) in a fault-tolerant durable way;</li><li><a href="https://kafka.apache.org/documentation/#connectapi">Apache Kafka Connect </a>— Kafka’s API that allows to implement connectors that continually pull from some source data system into Kafka or push from Kafka into some sink data system;</li><li><a href="https://zookeeper.apache.org/">Apache Zookeeper</a> — Centralised service which enables highly reliable distributed coordination between Kafka instances;</li><li><a href="https://www.postgresql.org/">PostgreSQL</a> — Relational database;</li><li><a href="https://debezium.io/documentation/reference/0.10/connectors/postgresql.html">Debezium’s PostgreSQL Connector</a> — Low latency data streaming connector that can monitor and record row-level changes in PostgreSQL.</li></ul><p>Since we’re going to use Docker, you won’t have to spend much time installing and configuring every piece of software on this list. This is specially important because it allows us to set up our infrastructure really fast in an isolated environment. However, if you don’t have Docker yet, you’ll have to <a href="https://docs.docker.com/get-docker/">download</a> it and follow install instructions depending on your operating system.</p><p>Moving on, we’ll start by creating a Docker Compose that manages two services. The first one is our database running an <a href="https://hub.docker.com/r/debezium/postgres">image</a> of PostgreSQL provided by <a href="https://debezium.io/">Debezium</a>. This image is based upon PostgreSQL 12 and adds a Debezium-specific logical decoding output plugin enabling to capture changes committed to the database. The second one is our message broker running an <a href="https://hub.docker.com/r/landoop/fast-data-dev">image</a> of Kafka provided by <a href="https://lenses.io/">Landoop</a>. This image allows to set a full fledged Kafka installation on top of Zookeeper which already includes Kafka Connect and Confluent Schema Registry. You can find the final YAML file below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8c53f82df4966a00bccffce923e614c3/href">https://medium.com/media/8c53f82df4966a00bccffce923e614c3/href</a></iframe><p>You may have noticed that we’re starting our database container with a volume. This volume is used to mount two files on this container which then are going to be used as initialization scripts. This is important, because not only it allows us to provide an initial state by creating and seeding our tables, but also it allows Debezium’s plugin to perform an initial snapshot of our database. Just don’t forget to <a href="https://github.com/limadelrey/kafka-connect-cdc-medium/tree/master/data">download</a> both files and change volume’s mount source to your local folder.</p><p>Next, just change your directory to the folder where you’ve downloaded your docker-compose.yml file and set everything up by running:</p><pre>$ docker-compose up -d</pre><p>After a few seconds, both containers should be running and our bike store database should be populated. You can ensure that by running:</p><pre>List running containers:<br>$ docker ps -f network=bike-store-network</pre><pre>Read logs from database container:<br>$ docker logs bike-store-postgres</pre><p>At this moment it should be possible to access <a href="http://localhost:3030/">Kafka Development Environment UI</a>. This UI allows to get relevant information about schemas (messages’ data model description), topics (place where messages are published) and connectors (components used to import/export data to/from Kafka). The main page should look as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f__HktdzpchIXGoYssEB0g.png" /><figcaption>Initial UI (<a href="http://localhost:3030/">Kafka Development Environment UI</a>)</figcaption></figure><p>By default, four system topics are created automatically. They are used to save not only schema and connector configurations, but also connector offsets and status, so no need to worry about managing this settings.</p><p>The next step is to create a Kafka Connect source connector. In order to do so just use <a href="http://localhost:3030/kafka-connect-ui">Kafka Connect UI</a>. After accessing it, press “New” and choose “PostgresConnector” from the available options. This connector is in fact Debezium’s PostgreSQL Connector, so just go ahead and copy and paste the following properties:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/649bf385e6e1d72d0b82edc097f6e492/href">https://medium.com/media/649bf385e6e1d72d0b82edc097f6e492/href</a></iframe><p>The source connector properties are pretty self-explanatory. Given a PostgreSQL instance and its credentials, the connector is able to consume every message generated from the whitelisted tables just by listening to the database transaction log. Since the database is already populated, the connector performs an initial snapshot of the database, creating a topic for each table automatically with every single message ever recorded:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B6FZjuivVz8zqV8MI4w-pA.png" /><figcaption>Kafka topics (<a href="http://localhost:3030/kafka-topics-ui">Kafka Topics UI</a>)</figcaption></figure><p>These topics are divided in partitions and each partition is placed on a separate broker. They keep data in the cluster until a configurable period has passed by and they are replicated for backup and high availability purposes. This is especially important because it allows to keep subscribing more consumers while maintaining data over time. Regarding data, every message produced by Debezium’s connector has a key and a value. The message’s key holds the value of the table’s primary key (which allows to track all changes made to a row as a sequence of events) while the message’s value holds the remaining fields in its previous and current state, plus additional metadata about the message generation following a format that is conveniently defined by Debezium with the following fields:</p><ul><li>before is an optional field that if present contains the state of the row before the event occurred;</li><li>after is also an optional field that if present contains the state of the row after the event occurred;</li><li>source is a mandatory field that contains a structure describing the source metadata for the event (e.g. Debezium’s version, connector name, the name of the affected database, schema, table, etc);</li><li>op is another mandatory field that describes the type of operation;</li><li>ts_ms is optional and if present contains the time at which the connector processed the event.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*99KTwnzyauQG_809nAlZ5g.png" /><figcaption>Message on customers topic (<a href="http://localhost:3030/kafka-topics-ui/#/cluster/fast-data-dev/topic/n/limadelrey.store.customers">Kafka Topics UI</a>)</figcaption></figure><p>Alongside with topic creation, the source connector also creates an AVRO schema for each message key and each message value which allows to enforce the format presented previously. AVRO schemas are very popular in data serialisation because they allow to adopt a data format and enforce rules that enable schema evolution while guaranteeing not to break downstream applications:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aPmupzxPMKwEOg8psu1EFA.png" /><figcaption>Bike store schemas (<a href="http://localhost:3030/schema-registry-ui">Schema Registry UI</a>)</figcaption></figure><p>Finally, <a href="http://localhost:3030/">Kafka Development Environment UI</a> should look as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y1PEuel5ZfJXnSuPWRn2XA.png" /><figcaption>Final UI (<a href="http://localhost:3030/">Kafka Development Environment UI</a>)</figcaption></figure><p>That’s it! With this setup you’re able to <a href="https://engineering.linkedin.com/kafka/benchmarking-apache-kafka-2-million-writes-second-three-cheap-machines">handle from few messages up to billions of messages per day</a>. It’s prepared to scale up horizontally or even to move to a different machine later on since it’s taking advantage of Kafka Connect’s distributed mode. Moreover, with Kafka acting as backbone, you can use it as a central integration point for numerous data sinks like Neo4j, MongoDB, ElasticSearch and so on:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DNt313A9_xR6UvjWA-MmUQ.png" /><figcaption>Kafka as central integration point</figcaption></figure><h3>Final thoughts</h3><p>As you could see, it can be easy to setup your data pipeline by choosing the right tools. You don’t need to have a deep knowledge about Kafka and Zookeeper configurations to start using Kafka Connect nor you need to spend hours and hours trying to understand how to put all of these tools working together. By following this approach you’ll be on the right path to provide a great infrastructure while focusing on your biggest concern: <strong>data</strong>.</p><p>You can find all the necessary configurations on the following <a href="https://github.com/limadelrey/kafka-connect-medium">repository</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c60e06e5306a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>