Skip to Content
Kafka Connect
book

Kafka Connect

by Mickael Maison, Kate Stanley
September 2023
Beginner to intermediate content levelBeginner to intermediate
400 pages
10h 33m
English
O'Reilly Media, Inc.
Book available
Content preview from Kafka Connect

Chapter 5. Connectors in Action

After having covered how Kafka Connect works and how to use it, it’s time to put your knowledge into practice! In this chapter we look at, and run, some of the most popular connectors: a sink connector for Amazon Simple Storage Service (S3), a JDBC source connector, and a MySQL source connector. We explain the use cases they target and their most important configurations, and demonstrate how to use them in various scenarios.

These three connectors address common use cases and appear in many pipelines across all industries, so having a good understanding of them is valuable. Even if you don’t use these specific connectors, we expect many of the topics covered to be applicable to others.

All of the examples assume that you have a Kafka cluster running with a bootstrap server accessible at localhost:9092.

Confluent S3 Sink Connector

One of the most common use cases of Kafka Connect is to export data from Kafka into a storage system. Often, you need to keep data long after it has been processed; it could be for legal reasons, for preserving historical data, or simply for batch-oriented systems that only run periodically. While Kafka can store data indefinitely, if you handle very large amounts of data it can become costly to store it in Kafka forever.

Cloud storage systems like Amazon S3 are designed for storing large amounts of data for long durations at a low cost per gigabyte. In addition, storage services can be used as data lakes due to their ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Kafka in Action

Kafka in Action

Dylan Scott, VIKTOR GAMOV, Dave Klein

Publisher Resources

ISBN: 9781098126520Errata Page