WEBVTT

00:00:01.240 --> 00:00:04.750
The amount of data produced is growing exponentially each year.

00:00:05.440 --> 00:00:08.460
In an era where almost everything happens digitally,

00:00:08.840 --> 00:00:12.240
we need really powerful protection mechanisms to guard our

00:00:12.240 --> 00:00:14.660
resources and protect them from intruders.

00:00:15.140 --> 00:00:15.620
Hi.

00:00:15.640 --> 00:00:18.230
My name is Bogdan Sucaciu, and welcome to my course,

00:00:18.330 --> 00:00:20.860
Protective Technology with Apache Kafka.

00:00:22.040 --> 00:00:24.110
You've probably heard the term Apache Kafka,

00:00:24.190 --> 00:00:27.160
but you don't really know what it is or what it does.

00:00:27.740 --> 00:00:30.460
Well, it's a long story, so let's start from the beginning.

00:00:31.440 --> 00:00:34.160
Apache Kafka, or shortly said Kafka,

00:00:34.260 --> 00:00:37.970
was originally developed in 2010 at LinkedIn and was

00:00:37.970 --> 00:00:40.660
subsequently open sourced in 2011.

00:00:41.440 --> 00:00:42.640
In 2012,

00:00:42.760 --> 00:00:46.300
the project graduated from the Apache incubator and became

00:00:46.310 --> 00:00:49.620
a top‑level Apache project allowing the users of the

00:00:49.620 --> 00:00:52.010
software to use it for any purpose,

00:00:52.020 --> 00:00:56.460
distribute it or modify it without concern for any royalties.

00:00:57.740 --> 00:01:02.670
Apache Kafka is an open source distributed event streaming platform used by

00:01:02.670 --> 00:01:06.300
thousands of companies for high performance data pipelines,

00:01:06.470 --> 00:01:11.360
streaming analytics, data integration, and mission critical applications.

00:01:12.540 --> 00:01:14.460
Wow, there are a lot of buzz words.

00:01:15.040 --> 00:01:18.140
So let's take a step back and see what a distributed

00:01:18.140 --> 00:01:20.160
streaming platform actually is.

00:01:21.240 --> 00:01:22.470
Well, first of all,

00:01:22.480 --> 00:01:26.960
it can be used as a messaging system by using the publish/subscribe pattern.

00:01:27.440 --> 00:01:31.760
In this pattern, there are two types of applications, producers and consumers.

00:01:32.240 --> 00:01:36.460
Producers create and publish events to the messaging system while

00:01:36.460 --> 00:01:39.760
consumers subscribe to those events and consume them.

00:01:40.640 --> 00:01:45.460
Popular alternative messaging systems are ActiveMQ and RabbitMQ.

00:01:46.640 --> 00:01:50.860
Kafka can also be used for storing data in a distributed way.

00:01:51.640 --> 00:01:56.160
It supports clustering so data will be uniformly spread across systems.

00:01:56.940 --> 00:01:59.960
It can also be replicated in case one system fails,

00:02:00.340 --> 00:02:02.460
thus ensuring data is not lost.

00:02:03.640 --> 00:02:07.000
The last process a distributed streaming platform can perform

00:02:07.150 --> 00:02:10.940
is taking benefit of the streaming model by processing events

00:02:10.949 --> 00:02:12.460
as they occur in the system.

00:02:13.240 --> 00:02:16.730
Companies should react as fast as possible to customers needs,

00:02:16.830 --> 00:02:22.260
and by using streaming, all incoming events are processed in almost real time.

00:02:23.640 --> 00:02:28.050
Apache Kafka is an ecosystem represented by a sum of different components.

00:02:28.540 --> 00:02:31.960
The centerpiece of the ecosystem is the Kafka broker.

00:02:32.540 --> 00:02:35.830
The Kafka broker is the most crucial component since it

00:02:35.830 --> 00:02:38.450
represents the backbone of the entire ecosystem.

00:02:39.140 --> 00:02:42.870
We then have the producer API which is the most basic unit

00:02:42.870 --> 00:02:45.260
for producing data to the Kafka broker.

00:02:46.140 --> 00:02:49.090
In order to retrieve data after it has been published,

00:02:49.280 --> 00:02:50.960
we will need the Consumer API.

00:02:52.040 --> 00:02:56.560
Next, we have the admin client we can perform different operational tasks.

00:02:57.740 --> 00:03:02.060
Creating producers and consumers can result in a lot of boilerplate code.

00:03:02.440 --> 00:03:05.560
To reduce the necessary effort to create these applications,

00:03:05.940 --> 00:03:10.560
two other APIs have been created, each with its own specific purposes.

00:03:11.440 --> 00:03:14.680
Kafka Streams API has been designed for building streaming

00:03:14.680 --> 00:03:17.760
applications within the Apache Kafka ecosystem.

00:03:18.740 --> 00:03:22.770
Kafka Connect is designed to transfer data in and out of the Apache Kafka

00:03:22.780 --> 00:03:27.770
ecosystem to and from some common data systems like databases,

00:03:27.780 --> 00:03:31.360
key value stores, search indexes, and file systems.

00:03:32.240 --> 00:03:35.660
Along with these components, we need one more element to make it work.

00:03:36.040 --> 00:03:38.460
This element is called Apache Zookeeper.

00:03:39.240 --> 00:03:42.440
Apache Zookeeper is not part of the Kafka ecosystem,

00:03:42.570 --> 00:03:47.850
but for now, it is required by Kafka in order to handle different kinds of tasks.
